POST
/
v1
/
receipts
/
{orderNumber}
/
redeem
Redeem Receipt
curl --request POST \
  --url https://api.monime.io/v1/receipts/{orderNumber}/redeem \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'Idempotency-Key: <idempotency-key>' \
  --header 'Monime-Space-Id: <monime-space-id>' \
  --data '{
  "redeemAll": true,
  "entitlements": [
    {
      "key": "<string>",
      "units": 1
    }
  ],
  "metadata": {}
}'
{
  "success": true,
  "messages": [
    "<any>"
  ],
  "result": {
    "redeem": true,
    "receipt": {
      "status": "not_redeemed",
      "orderName": "<string>",
      "orderNumber": "<string>",
      "orderAmount": {
        "currency": "<string>",
        "value": 123
      },
      "createTime": "2023-11-07T05:31:56Z",
      "updateTime": "2023-11-07T05:31:56Z",
      "entitlements": [
        {
          "key": "<string>",
          "name": "<string>",
          "limit": 1,
          "current": 1,
          "remaining": 1,
          "exhausted": true
        }
      ],
      "metadata": {}
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer HTTP authentication specified with the header Authorization: Bearer <access_token>

Headers

Idempotency-Key
string
required

This header is used to uniquely identify a logical request, ensuring that it is not processed more than once during retries.

Maximum length: 64
Monime-Version
enum<string> | null

Specifies which version of the Monime API will handle this request.

Available options:
caph.2025-08-23,
caph.2025-06-20
Monime-Space-Id
string
required

The value is the tenancy parameter that Monime uses to determine which space the request is intended for.

Maximum length: 64

Path Parameters

orderNumber
string
required

The order number of the receipt to be redeemed.

Maximum length: 20

Body

application/json

Redeem one or more entitlements from a receipt. When processing a bulk redemption, if any entitlement is already exhausted, the entire operation is rejected.

Response

200 - application/json

OK

The response is of type object.