OpenapiBilling
Fulfill_payment
POST
attemptId*stringPayment Attempt ID
Format
uuidapplication/json- body
completedAt*stringproviderStatus*stringproviderTransactionId*stringrealmId*stringRealm the caller intends to fulfill in. The attempt's own realm must match or the request is rejected — the internal key is global, so this binding is what stops a (leaked or mistyped) call from completing a payment attempt in an arbitrary other realm.
Fulfillment completed
application/json- response
grantedAt*stringpointGrants*array<>subscriptionId?|Format
uuidtype*stringcurl -X POST 'https://example.com/api/internal/bill/purchase/payment-attempts/497f6eca-6276-4993-bfeb-53cbbbba6f08/fulfill' \
-H 'Content-Type: application/json' \
-d '{
"completedAt": "string",
"providerStatus": "string",
"providerTransactionId": "string",
"realmId": "string"
}'Example Response
{
"grantedAt": "string",
"pointGrants": [
{
"bucketId": "1980377d-7926-47e0-9e64-a9d0c746404d",
"description": "string",
"points": 0,
"pointsType": "string",
"resultId": "bfb2617a-91d0-4d69-bd0f-b3c7d35c900b",
"ruleId": "70af3071-65d9-4ec3-b3cb-5283e8d55dac"
}
],
"subscriptionId": "d079718b-ff63-45dd-947b-4950c023750f",
"type": "string"
}