Herald
OpenapiBilling

Fulfill_payment

POST
/api/internal/bill/purchase/payment-attempts/{attemptId}/fulfill

Path Parameters

attemptId*string

Payment Attempt ID

Formatuuid

Request Body

application/json
  1. body
completedAt*string
providerStatus*string
providerTransactionId*string
realmId*string

Realm 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.

Response Body

Fulfillment completed

application/json
  1. response
grantedAt*string
pointGrants*array<>
subscriptionId?|
Formatuuid
type*string
Example Request
curl -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"
}