---
updatedAt: 2026-04-21T09:28:39.000Z
agentTools:
  projectIndex: https://customer-api.getpliant.com/llms.txt
---

# Callback: Add/Update

> 🔒 **Required scope:** `callbacks.setup:write`
>
> The API credential calling this endpoint must be granted the `callbacks.setup` category with `read & write` access.
> Scopes are assigned to the credential when it is created or edited in Pliant, not requested when obtaining the access token.
> A credential without this scope receives `403 Forbidden` with the error code `INSUFFICIENT_PERMISSION`.

Subscribe to callbacks for this entity or change an existing callback.


# OpenAPI definition

````json
{
  "openapi": "3.0.1",
  "info": {
    "contact": {
      "name": "API Support",
      "email": "support@getpliant.com",
      "url": "https://www.getpliant.com"
    },
    "title": "Pliant Customer API",
    "description": "Pliant Customer API",
    "version": "2.1.0",
    "license": {
      "name": "MIT",
      "url": "https://opensource.org/license/MIT"
    }
  },
  "servers": [
    {
      "url": "https://partner-api.getpliant.com/api",
      "description": "Pliant Production Server"
    },
    {
      "url": "https://sandbox.partner-api.getpliant.com/api",
      "description": "Pliant Sandbox Server"
    },
    {
      "url": "https://pci-api.getpliant.com",
      "description": "PCI Vault Production Server"
    },
    {
      "url": "https://pci-sandbox.partner-api.getpliant.com",
      "description": "PCI Vault Sandbox Server"
    }
  ],
  "x-readme": {
    "explorer-enabled": false,
    "samples-languages": [
      "curl",
      "java",
      "kotlin"
    ],
    "headers": [
      {
        "key": "Pliant-API-Version",
        "value": "2.1.0"
      }
    ]
  },
  "tags": [
    {
      "name": "Cards",
      "description": "This tag is for operations related to cards"
    },
    {
      "name": "Transactions",
      "description": "This tag is for operations related to transactions"
    }
  ],
  "paths": {
    "/transactions/details": {
      "post": {
        "summary": "Transaction Details",
        "description": "> 🔒 **Required scope:** `spend:read`\n>\n> The API credential calling this endpoint must be granted the `spend` category with `read` or `read & write` access.\n> Scopes are assigned to the credential when it is created or edited in Pliant, not requested when obtaining the access token.\n> A credential without this scope receives `403 Forbidden` with the error code `INSUFFICIENT_PERMISSION`.\n\nReturns all transaction details for the given IDs. You can also request transaction details per card(s), cardholder(s) or organization(s). \nThe API returns all transaction details to the given input which can be found in the system. So you can also combine the different input fields (OR relation). \nBe aware that the usage of card, [cardholder](/docs/cardholder-entity) or organizations IDs most likely add multiple transaction details themselves. \nAlso cardholders can be part of multiple organizations, thus when searching via [cardholder](/docs/cardholder-entity) IDs, it might return more data than it would for just one organization this [cardholder](/docs/cardholder-entity) is part of. \nAt least one parameter has to be set.\n\n**This endpoint has changed in comparison to the previous version of the API.** The following changes were made:\n- we removed the following data from the response body: `merchantId` (field), `merchantName` (field)\n- we added the following data to the response body: `merchantData` (object), `merchantRawData` (object), `authCode` (field)\n",
        "x-required-scopes": [
          "spend:read"
        ],
        "tags": [
          "Transactions"
        ],
        "operationId": "get-transactions-detail-batch",
        "requestBody": {
          "required": true,
          "description": "All fields are optional. At least one parameter has to be set.",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "transactionIds": {
                    "type": "array",
                    "description": "The unique identifiers of the transactions.",
                    "items": {
                      "type": "string",
                      "format": "uuid"
                    }
                  },
                  "cardIds": {
                    "type": "array",
                    "description": "The unique identifiers of the credit cards used for making the transaction(s).",
                    "items": {
                      "type": "string",
                      "format": "uuid"
                    }
                  },
                  "cardholderIds": {
                    "type": "array",
                    "description": "The unique identifiers of the cardholders.",
                    "items": {
                      "type": "string",
                      "format": "uuid"
                    }
                  },
                  "organizationIds": {
                    "type": "array",
                    "description": "The unique identifiers of the organizations.",
                    "items": {
                      "type": "string",
                      "format": "uuid"
                    }
                  },
                  "cardAccountIds": {
                    "type": "array",
                    "description": "The unique identifiers of the card accounts.",
                    "items": {
                      "type": "string",
                      "format": "uuid"
                    }
                  },
                  "pagination": {
                    "type": "object",
                    "properties": {
                      "page": {
                        "type": "integer",
                        "description": "The page number to return, starting with 0, this counts up to the total number of pages. The total number of pages is determined by the total number of records divided by the limit."
                      },
                      "limit": {
                        "type": "integer",
                        "description": "The number of records to return per page."
                      },
                      "sortBy": {
                        "type": "object",
                        "description": "The field to sort by and the direction to sort by.",
                        "properties": {
                          "field": {
                            "type": "string",
                            "description": "The field to sort by.",
                            "enum": [
                              "organizationId",
                              "status",
                              "type",
                              "cardholderId",
                              "cardId",
                              "merchantId",
                              "confirmedAt",
                              "createdAt"
                            ],
                            "default": "createdAt"
                          },
                          "direction": {
                            "description": "The direction to sort by.",
                            "type": "string",
                            "enum": [
                              "ASC",
                              "DESC"
                            ],
                            "default": "ASC"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "transactionId": {
                            "type": "string",
                            "format": "uuid",
                            "description": "The unique ID of the transaction."
                          },
                          "organizationId": {
                            "type": "string",
                            "format": "uuid",
                            "description": "The unique ID of the organization to which this transaction belongs to."
                          },
                          "cardAccountId": {
                            "type": "string",
                            "format": "uuid",
                            "description": "The unique ID of the [card account](/docs/card-account) to which this transaction belongs to."
                          },
                          "cardholderId": {
                            "type": "string",
                            "format": "uuid",
                            "description": "The unique ID of the [cardholder](/docs/cardholder-entity) to which this transaction belongs to."
                          },
                          "cardId": {
                            "type": "string",
                            "format": "uuid",
                            "description": "The unique ID of the card to which this transaction belongs to."
                          },
                          "status": {
                            "type": "string",
                            "description": "The status of the transaction.",
                            "enum": [
                              "DECLINED",
                              "PENDING",
                              "REVERSED",
                              "CONFIRMED",
                              "BOOKED"
                            ]
                          },
                          "type": {
                            "type": "string",
                            "description": "The type of the transaction.",
                            "enum": [
                              "PURCHASE",
                              "CASH_WITHDRAWAL",
                              "REFUND",
                              "CHARGEBACK",
                              "RECHARGE",
                              "STATUS_INQUIRY"
                            ]
                          },
                          "acceptanceMethod": {
                            "type": "string",
                            "nullable": true,
                            "description": "The method used to accept the transaction. Null indicates historical data without an acceptance method; NOT_AVAILABLE is an explicit value reported by the upstream provider.",
                            "enum": [
                              "ONLINE",
                              "MOBILE_WALLET",
                              "MANUAL_ENTRY",
                              "CONTACTLESS",
                              "CHIP_DIP",
                              "NOT_AVAILABLE",
                              "MAGNETIC_STRIPE",
                              "OTHER"
                            ]
                          },
                          "partnerSubmissionStatus": {
                            "type": "string",
                            "enum": [
                              "NOT_SYNCED",
                              "SYNCED",
                              "TEMP_LOCKED",
                              "LOCKED"
                            ],
                            "description": "This status can be driven by the partner to mark transactions on Pliant-side as consumed by the partner. `TEMP_LOCKED` makes transaction immutable for cardholders within Pliant apps. `LOCKED` makes them immutable for all users. `TEMP_LOCKED` can be changed to `SYNCED`. `LOCKED` is the final state that cannot be modified anymore"
                          },
                          "partnerSubmissionStatusSyncedAt": {
                            "type": "string",
                            "format": "date-time",
                            "nullable": true,
                            "description": "The date-time the `partnerSubmissionStatus` was changed to `SYNCED`."
                          },
                          "partnerSubmissionStatusTempLockedAt": {
                            "type": "string",
                            "format": "date-time",
                            "nullable": true,
                            "description": "The date-time the `partnerSubmissionStatus` was changed to `TEMP_LOCKED`."
                          },
                          "partnerSubmissionStatusLockedAt": {
                            "type": "string",
                            "format": "date-time",
                            "nullable": true,
                            "description": "The date-time the `partnerSubmissionStatus` was changed to `LOCKED`."
                          },
                          "category": {
                            "type": "string",
                            "description": "The category of the transaction. This groups together similar merchants into Pliant-defined categories.",
                            "enum": [
                              "ADVERTISING_AND_MARKETING",
                              "COMPUTING_AND_SOFTWARE",
                              "EDUCATION_AND_TRAINING",
                              "ELECTRONICS_AND_IT_EQUIPMENT",
                              "ENTERTAINMENT_AND_WELLNESS",
                              "FOOD_AND_DRINKS",
                              "GIFTS_AND_VOUCHERS",
                              "MATERIALS_AND_PACKAGING",
                              "OFFICE_SUPPLIES_AND_EQUIPMENT",
                              "SERVICES",
                              "TRAVEL_AND_ACCOMMODATION",
                              "HEALTHCARE",
                              "OTHER"
                            ]
                          },
                          "billingAmount": {
                            "type": "object",
                            "description": "The amount that was billed to the cardholder, in the currency of the card account.",
                            "properties": {
                              "value": {
                                "type": "number",
                                "description": "The value of the monetary amount, converted to minor units of the currency. For instance 1.00 EUR is 100 cents, thus the value here is `100`. See our [guides](/docs/monetary-values) for more details about how to handle monetary amounts."
                              },
                              "currency": {
                                "type": "string",
                                "description": "The currency of the monetary amount in ISO 4217 format, for example `EUR` for Euro or `USD` for US Dollar."
                              }
                            }
                          },
                          "transactionAmount": {
                            "type": "object",
                            "description": "The amount that was paid to the merchant via this transaction, in the local currency of the merchant.",
                            "properties": {
                              "value": {
                                "type": "number",
                                "description": "The value of the monetary amount, converted to minor units of the currency. For instance 1.00 EUR is 100 cents, thus the value here is `100`. See our [guides](/docs/monetary-values) for more details about how to handle monetary amounts."
                              },
                              "currency": {
                                "type": "string",
                                "description": "The currency of the monetary amount in ISO 4217 format, for example `EUR` for Euro or `USD` for US Dollar."
                              }
                            }
                          },
                          "transactionCountry": {
                            "type": "string",
                            "description": "ISO 3166-1 alpha-3 code of the country the transaction was made it, e.g. `DEU` for Germany or `NLD` for Netherlands. You can find a list of valid country code on [Wikipedia](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3).",
                            "minLength": 3,
                            "maxLength": 3
                          },
                          "transactionLocalTime": {
                            "type": "string",
                            "format": "date-time",
                            "nullable": true,
                            "description": "The date-time the transaction was made in the local time of the merchant."
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "description": "The date-time the transaction was first recognized by Pliant, e.g. `2023-09-15T11:55:34.527552Z`."
                          },
                          "authorizedAt": {
                            "type": "string",
                            "format": "date-time",
                            "nullable": true,
                            "description": "The date-time this transaction was authorized by the card network, e.g. `2023-09-15T11:55:34.527552Z`. Can be `null` for `DECLINED` or `REVERSED` transactions or for `STATUS_INQUIRY`, `REFUND`, `CHARGEBACK` or `RECHARGE` transactions."
                          },
                          "confirmedAt": {
                            "type": "string",
                            "format": "date-time",
                            "nullable": true,
                            "description": "The date-time this transaction was confirmed by the card network, e.g. `2023-09-19T07:24:52.707296Z`. Value is `null`, until the transaction is confirmed."
                          },
                          "bookedAt": {
                            "type": "string",
                            "format": "date",
                            "nullable": true,
                            "description": "The date this transaction was booked by Pliant against the internal bank account of the organization, e.g. `2023-09-19`. Value is `null`, until the transaction is booked."
                          },
                          "reversedAt": {
                            "type": "string",
                            "format": "date-time",
                            "nullable": true,
                            "description": "The date-time this transaction was reversed by the card network, e.g. `2023-09-15T11:55:34.527552Z`. Value is only filled, if the transaction is reversed."
                          },
                          "declineReason": {
                            "type": "object",
                            "nullable": true,
                            "description": "Filled, if the transaction was declined. The decline reason `type`, together with `title` and `description` in all supported languages. E.g.:\n```\n{\n  \"type\": \"LOCKED_CARD\",\n  \"title\": {\n    \"en\": \"Card locked\"\n  },\n  \"description\": {\n    \"en\": \"The card is locked. You can unlock the card in the Wallet section of the cardholder app.\"\n  }\n}\n```\nIf the transaction status is anything else but `DECLINED` the object `declineReason` returns `null`\n",
                            "properties": {
                              "type": {
                                "$ref": "#/paths/~1transactions~1{transactionId}/get/responses/200/content/application~1json/schema/properties/declineReason/properties/type"
                              },
                              "title": {
                                "type": "object",
                                "additionalProperties": {
                                  "type": "string"
                                },
                                "example": {
                                  "en": "Card locked",
                                  "de": "Karte ist gesperrt"
                                }
                              },
                              "description": {
                                "type": "object",
                                "additionalProperties": {
                                  "type": "string"
                                },
                                "example": {
                                  "en": "The card is locked. You can unlock the card in the Wallet section of the cardholder app."
                                }
                              }
                            }
                          },
                          "linkedTransactionId": {
                            "type": "string",
                            "format": "uuid",
                            "description": "Optional reference to any original transaction, used for recharges, chargebacks and chargeback reversals.",
                            "nullable": true
                          },
                          "receiptCount": {
                            "type": "integer",
                            "description": "Number of uploaded receipts to this transaction.",
                            "minLength": 0
                          },
                          "receiptIds": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "format": "uuid"
                            },
                            "description": "The receipts attached to this transaction, if any. Otherwise, the array is empty."
                          },
                          "receiptUploadEnabled": {
                            "type": "boolean",
                            "description": "This field describes if the transaction is waiting for a receipt, or if no receipt is expected for this transaction. If set to `true` its possible to upload receipts to the transaction, if set to `false` it is not possible to upload receipts to the transaction."
                          },
                          "comment": {
                            "type": "string",
                            "nullable": true,
                            "description": "A cardholder-defined comment for this transaction."
                          },
                          "merchantData": {
                            "type": "object",
                            "description": "Pliant's merchant data. If the merchant is not known to Pliant, the object is `null`.",
                            "properties": {
                              "pliantMerchantId": {
                                "type": "string",
                                "format": "uuid",
                                "description": "Pliant's merchant ID (can be specific for each organization)."
                              },
                              "displayName": {
                                "type": "string",
                                "description": "Display merchant name that can be used to show additionally next to the raw merchant description."
                              },
                              "logoPath": {
                                "type": "string",
                                "description": "The URL to the logo of the merchant, if there is any. It might be `null` for merchants we currently do not have in our database. The URL looks similar to this example `merchant-logos.getpliant.com/17e21b54-80d0-4843-9125-e522bb262ebb.png?v=3`. If you want to display the logo in your application, please make a copy of the logo and do not directly hotlink the logo. The static image should be served from your own infrastructure.",
                                "nullable": true
                              }
                            }
                          },
                          "merchantRawData": {
                            "type": "object",
                            "description": "Raw merchant data as received from the card network, thus the quality of those fields differ greatly between merchants. We do not control the information provided here.",
                            "properties": {
                              "mcc": {
                                "type": "string",
                                "nullable": true,
                                "description": "The merchant category code (MCC) is a four-digit number assigned to a business by an acquiring bank or institution. The MCC is used to classify the business by the type of goods or services it provides."
                              },
                              "mccDesc": {
                                "type": "string",
                                "nullable": true,
                                "description": "The merchant category code (MCC) description is a short description of the MCC."
                              },
                              "merchantStreet": {
                                "type": "string",
                                "nullable": true,
                                "description": "The street of the merchant."
                              },
                              "merchantCity": {
                                "type": "string",
                                "nullable": true,
                                "description": "The city of the merchant."
                              },
                              "merchantRegion": {
                                "type": "string",
                                "nullable": true,
                                "description": "The region of the merchant."
                              },
                              "merchantPostcode": {
                                "type": "string",
                                "nullable": true,
                                "description": "The postcode of the merchant."
                              },
                              "merchantCountry": {
                                "type": "string",
                                "nullable": true,
                                "description": "The country of the merchant, in ISO 3166-1 alpha-3 format.",
                                "minLength": 3,
                                "maxLength": 3
                              },
                              "merchantPhone": {
                                "type": "string",
                                "nullable": true,
                                "description": "The phone number of the merchant."
                              },
                              "merchantUrl": {
                                "type": "string",
                                "nullable": true,
                                "description": "The URL of the merchant."
                              },
                              "merchantNameOther": {
                                "type": "string",
                                "nullable": true,
                                "description": "The name of the merchant in the local language."
                              },
                              "merchantLegalName": {
                                "type": "string",
                                "nullable": true,
                                "description": "The legal name of the merchant."
                              },
                              "merchantTaxId": {
                                "type": "string",
                                "nullable": true,
                                "description": "The tax ID of the merchant."
                              },
                              "merchantContact": {
                                "type": "string",
                                "nullable": true,
                                "description": "The contact information of the merchant."
                              },
                              "merchantTerminalId": {
                                "type": "string",
                                "nullable": true,
                                "description": "The terminal ID of the merchant used to make this transaction."
                              },
                              "descriptionAuthorization": {
                                "type": "string",
                                "description": "Authorization message by the merchant.",
                                "nullable": true
                              },
                              "descriptionConfirmation": {
                                "type": "string",
                                "description": "Confirmation message by the merchant.",
                                "nullable": true
                              }
                            }
                          },
                          "authCode": {
                            "type": "string",
                            "description": "Authorization code used for this transaction.",
                            "nullable": true
                          },
                          "paymentDate": {
                            "type": "string",
                            "format": "date",
                            "description": "The date on which the outstanding amount of this transaction was paid back to Pliant. It basically is the date the bank settlement was received by Pliant. This field is only filled after the next payment frequency cycle of this organization. The format of the date is `YYYY-MM-DD`.",
                            "nullable": true
                          },
                          "paymentReference": {
                            "type": "string",
                            "format": "uuid",
                            "description": "The reference to the payment with which this transaction was paid to Pliant. Check the [payment API](getpaymentsdetail) to get details about the payment. This field is only filled after the next payment frequency cycle of this organization and also only if the organization is not solely using prefund accounts (where there are no regular payments).",
                            "nullable": true
                          },
                          "wallet": {
                            "type": "string",
                            "description": "If the transaction was made using a mobile wallet (`APPLE` or `ANDROID`), the respective wallet type is returned. Otherwise, the field is `OTHER`.",
                            "enum": [
                              "APPLE",
                              "ANDROID",
                              "OTHER"
                            ]
                          },
                          "fxFee": {
                            "type": "object",
                            "description": "The foreign exchange fee that was charged for this transaction, if any.",
                            "properties": {
                              "fxFeePercentage": {
                                "type": "number",
                                "description": "The per-organization fee (as a percentage of the transaction amount) that is charged for foreign exchange transactions. This value is specific to this organization. Example: `2.1`.",
                                "format": "float",
                                "example": 2.1,
                                "minimum": 0,
                                "maximum": 100,
                                "nullable": true
                              },
                              "fxFeeAmount": {
                                "type": "object",
                                "description": "The specific amount of the foreign exchange fee that was charged for this transaction. Example: `0.21 EUR`.",
                                "nullable": true,
                                "properties": {
                                  "value": {
                                    "type": "number",
                                    "description": "The value of the monetary amount, converted to minor units of the currency. For instance 1.00 EUR is 100 cents, thus the value here is `100`. See our [guides](/docs/monetary-values) for more details about how to handle monetary amounts.",
                                    "example": 21
                                  },
                                  "currency": {
                                    "type": "string",
                                    "description": "The currency of the monetary amount in ISO 4217 format, for example `EUR` for Euro or `USD` for US Dollar.",
                                    "example": "EUR"
                                  }
                                }
                              }
                            }
                          },
                          "personal": {
                            "type": "boolean",
                            "description": "Indicates transaction was done for personal purpose."
                          },
                          "acquirerReferenceNumber": {
                            "type": "string",
                            "description": "The acquirer reference number as provided by the card network for the transaction."
                          }
                        }
                      }
                    },
                    "hasNextPage": {
                      "type": "boolean",
                      "description": "Indicates whether there is a next page available."
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/paths/~1cards/get/responses/400"
          },
          "401": {
            "$ref": "#/paths/~1cards/get/responses/401"
          },
          "403": {
            "$ref": "#/paths/~1cards/get/responses/403"
          },
          "404": {
            "$ref": "#/paths/~1cards/post/responses/404"
          },
          "429": {
            "$ref": "#/paths/~1cards/get/responses/429"
          },
          "500": {
            "$ref": "#/paths/~1cards/get/responses/500"
          }
        }
      }
    },
    "/transactions/{transactionId}": {
      "get": {
        "summary": "Transaction Details (Single)",
        "deprecated": true,
        "description": "> 🔒 **Required scope:** `spend:read`\n>\n> The API credential calling this endpoint must be granted the `spend` category with `read` or `read & write` access.\n> Scopes are assigned to the credential when it is created or edited in Pliant, not requested when obtaining the access token.\n> A credential without this scope receives `403 Forbidden` with the error code `INSUFFICIENT_PERMISSION`.\n\nReturns the details of a single transaction by its ID.\n\n**This endpoint has changed in comparison to the previous version of the API.** The following changes were made:\n- we removed the following data from the response body: `merchantId` (field), `merchantName` (field)\n- we added the following data to the response body: `merchantData` (object), `merchantRawData` (object), `authCode` (field)\n",
        "x-required-scopes": [
          "spend:read"
        ],
        "tags": [
          "Transactions"
        ],
        "operationId": "get-transactions-detail",
        "parameters": [
          {
            "name": "transactionId",
            "in": "path",
            "required": true,
            "description": "The unique identifier of the transaction.",
            "schema": {
              "type": "string",
              "format": "uuid",
              "description": "The unique identifier of the transaction."
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "transactionId": {
                      "type": "string",
                      "format": "uuid",
                      "description": "The unique ID of the transaction."
                    },
                    "organizationId": {
                      "type": "string",
                      "format": "uuid",
                      "description": "The unique ID of the organization to which this transaction belongs to."
                    },
                    "cardholderId": {
                      "type": "string",
                      "format": "uuid",
                      "description": "The unique ID of the [cardholder](/docs/cardholder-entity) to which this transaction belongs to."
                    },
                    "cardId": {
                      "type": "string",
                      "format": "uuid",
                      "description": "The unique ID of the card to which this transaction belongs to."
                    },
                    "status": {
                      "type": "string",
                      "description": "The status of the transaction.",
                      "enum": [
                        "DECLINED",
                        "PENDING",
                        "REVERSED",
                        "CONFIRMED",
                        "BOOKED"
                      ]
                    },
                    "type": {
                      "type": "string",
                      "description": "The type of the transaction.",
                      "enum": [
                        "PURCHASE",
                        "CASH_WITHDRAWAL",
                        "REFUND",
                        "CHARGEBACK",
                        "RECHARGE",
                        "STATUS_INQUIRY"
                      ]
                    },
                    "partnerSubmissionStatus": {
                      "type": "string",
                      "enum": [
                        "NOT_SYNCED",
                        "SYNCED",
                        "TEMP_LOCKED",
                        "LOCKED"
                      ],
                      "description": "This status can be driven by the partner to mark transactions on Pliant-side as consumed by the partner. `TEMP_LOCKED` makes transaction immutable for cardholders within Pliant apps. `LOCKED` makes them immutable for all users. `TEMP_LOCKED` can be changed to `SYNCED`. `LOCKED` is the final state that cannot be modified anymore"
                    },
                    "partnerSubmissionStatusSyncedAt": {
                      "type": "string",
                      "format": "date-time",
                      "nullable": true,
                      "description": "The date-time the `partnerSubmissionStatus` was changed to `SYNCED`."
                    },
                    "partnerSubmissionStatusTempLockedAt": {
                      "type": "string",
                      "format": "date-time",
                      "nullable": true,
                      "description": "The date-time the `partnerSubmissionStatus` was changed to `TEMP_LOCKED`."
                    },
                    "partnerSubmissionStatusLockedAt": {
                      "type": "string",
                      "format": "date-time",
                      "nullable": true,
                      "description": "The date-time the `partnerSubmissionStatus` was changed to `LOCKED`."
                    },
                    "category": {
                      "type": "string",
                      "description": "The category of the transaction. This groups together similar merchants into Pliant-defined categories.",
                      "enum": [
                        "ADVERTISING_AND_MARKETING",
                        "COMPUTING_AND_SOFTWARE",
                        "EDUCATION_AND_TRAINING",
                        "ELECTRONICS_AND_IT_EQUIPMENT",
                        "ENTERTAINMENT_AND_WELLNESS",
                        "FOOD_AND_DRINKS",
                        "GIFTS_AND_VOUCHERS",
                        "MATERIALS_AND_PACKAGING",
                        "OFFICE_SUPPLIES_AND_EQUIPMENT",
                        "SERVICES",
                        "TRAVEL_AND_ACCOMMODATION",
                        "HEALTHCARE",
                        "OTHER"
                      ]
                    },
                    "billingAmount": {
                      "type": "object",
                      "description": "The amount that was billed to the cardholder, in the currency of the card account.",
                      "properties": {
                        "value": {
                          "type": "number",
                          "description": "The value of the amount, converted to minor units of the currency. E.g. 1 EUR is 100 cents, thus the value is 100."
                        },
                        "currency": {
                          "type": "string",
                          "description": "The currency of the amount, in ISO 4217 format. E.g. `EUR` for Euro."
                        }
                      }
                    },
                    "transactionAmount": {
                      "type": "object",
                      "description": "The amount that was paid to the merchant via this transaction, in the local currency of the merchant.",
                      "properties": {
                        "value": {
                          "type": "number",
                          "description": "The value of the amount, converted to minor units of the currency. E.g. 1 EUR is 100 cents, thus the value is 100."
                        },
                        "currency": {
                          "type": "string",
                          "description": "The currency of the amount, in ISO 4217 format. E.g. `EUR` for Euro."
                        }
                      }
                    },
                    "transactionCountry": {
                      "type": "string",
                      "description": "ISO 3166-1 alpha-3 code of the country the transaction was made it, e.g. `DEU` for Germany or `NLD` for Netherlands. You can find a list of valid country code on [Wikipedia](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3).",
                      "minLength": 3,
                      "maxLength": 3
                    },
                    "transactionLocalTime": {
                      "type": "string",
                      "format": "date-time",
                      "nullable": true,
                      "description": "The date-time the transaction was made in the local time of the merchant."
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "description": "The date-time the transaction was first recognized by Pliant, e.g. `2023-09-15T11:55:34.527552Z`."
                    },
                    "authorizedAt": {
                      "type": "string",
                      "format": "date-time",
                      "nullable": true,
                      "description": "The date-time this transaction was authorized by the card network, e.g. `2023-09-15T11:55:34.527552Z`. Can be null in cases of not successful transactions, like a declined one."
                    },
                    "confirmedAt": {
                      "type": "string",
                      "format": "date-time",
                      "nullable": true,
                      "description": "The date-time this transaction was confirmed by the card network, e.g. `2023-09-19T07:24:52.707296Z`. Value is null, until the transaction is confirmed."
                    },
                    "bookedAt": {
                      "type": "string",
                      "format": "date",
                      "nullable": true,
                      "description": "The date this transaction was booked by Pliant against the internal bank account of the organization, e.g. `2023-09-19`. Value is null, until the transaction is booked."
                    },
                    "reversedAt": {
                      "type": "string",
                      "format": "date-time",
                      "nullable": true,
                      "description": "The date-time this transaction was reversed by the card network, e.g. `2023-09-15T11:55:34.527552Z`. Value is only filled, if the transaction is reversed."
                    },
                    "declineReason": {
                      "type": "object",
                      "nullable": true,
                      "description": "Filled, if the transaction was declined. The decline reason `type`, together with `title` and `description` in all supported languages. E.g.:\n```\n{\n  \"type\": \"LOCKED_CARD\",\n  \"title\": {\n    \"en\": \"Card locked\",\n  },\n  \"description\": {\n    \"en\": \"The card is locked. You can unlock the card in the Wallet section of the cardholder app.\",\n  }\n}\n```\nIf the transaction status is anything else but `DECLINED` the object `declineReason` returns `NULL`\n",
                      "properties": {
                        "type": {
                          "type": "string",
                          "description": "Why the transaction was declined. Set only when the transaction status is `DECLINED`.\nOn the transaction details response, `title` and `description` carry the display text for this type.\n",
                          "example": "LOCKED_CARD",
                          "enum": [
                            "CARD_ACCEPTANCE_NOT_ALLOWED",
                            "CARD_CONTROLS_DATETIME_LOCKED",
                            "CREDIT_ORG_LIMIT_EXCEEDED",
                            "DECLINE_REASON_NOT_DETECTED",
                            "DISALLOWED_MCC",
                            "DO_NOT_HONOUR",
                            "EXCEED_AMOUNT_VELOCITY_LIMIT",
                            "EXCEED_FREQUENCY_VELOCITY_LIMIT",
                            "EXCEED_ATM_AMOUNT_VELOCITY_LIMIT",
                            "EXPIRED_CARD",
                            "INCORRECT_CVV2",
                            "INCORRECT_EXPIRY_DATE",
                            "INCORRECT_PIN",
                            "INSUFFICIENT_FUNDS",
                            "INSUFFICIENT_FUNDS_GPS",
                            "INVALID_AMOUNT",
                            "INVALID_CARD_NUMBER",
                            "ISSUER_INOPERATIVE",
                            "LOCKED_CARD",
                            "LOST_CARD",
                            "MONTHLY_CARD_LIMIT_EXCEEDED",
                            "PENDING_CARD",
                            "PIN_TRIES_EXCEEDED",
                            "PIN_VALIDATION_FAILURE",
                            "POSTAL_CODE_NOT_ALLOWED",
                            "PREFUND_ORG_LIMIT_EXCEEDED",
                            "SCA_REQUIRED_PHYSICAL",
                            "SCA_REQUIRED_PHYSICAL_OFFLINE",
                            "SCA_REQUIRED_PHYSICAL_ONLINE",
                            "SCA_REQUIRED_VIRTUAL",
                            "SINGLE_USE_CARD",
                            "STOLEN_CARD",
                            "TERMINATED_CARD",
                            "TRANSACTION_LIMIT_EXCEEDED",
                            "TRANSACTION_TYPE_NOT_ALLOWED",
                            "TRANSACTION_CATEGORY_NOT_ALLOWED",
                            "TRANSACTION_COUNT_EXCEEDED",
                            "TRANSACTION_MERCH_STRING_NOT_ALLOWED",
                            "TRANSACTION_MERCHIDDE42_NOT_ALLOWED",
                            "TRANSACTION_MCC_NOT_ALLOWED",
                            "ACCEPTANCE_METHOD_NOT_ALLOWED",
                            "MERCHANT_COUNTRY_NOT_ALLOWED_US",
                            "MERCHANT_COUNTRY_MISSING",
                            "MERCHANT_COUNTRY_NOT_ALLOWED",
                            "TRANSACTION_CURRENCY_NOT_ALLOWED",
                            "THREDD_FRAUD_ALERT",
                            "ADDITIONAL_LIMIT_EXCEEDED"
                          ]
                        },
                        "title": {
                          "type": "object",
                          "additionalProperties": {
                            "type": "string"
                          },
                          "example": {
                            "en": "Card locked"
                          }
                        },
                        "description": {
                          "type": "object",
                          "additionalProperties": {
                            "type": "string"
                          },
                          "example": {
                            "en": "The card is locked. You can unlock the card in the Wallet section of the cardholder app."
                          }
                        }
                      }
                    },
                    "linkedTransactionId": {
                      "type": "string",
                      "format": "uuid",
                      "description": "Optional reference to any original transaction, used for recharges, chargebacks and chargeback reversals.",
                      "nullable": true
                    },
                    "receiptCount": {
                      "type": "integer",
                      "description": "Number of uploaded receipts to this transaction.",
                      "minLength": 0
                    },
                    "receiptIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "format": "uuid"
                      },
                      "description": "The receipts attached to this transaction, if any. Otherwise, the array is empty."
                    },
                    "receiptUploadEnabled": {
                      "type": "boolean",
                      "description": "This field describes if the transaction is waiting for a receipt, or if no receipt is expected for this transaction. If set to `true` its possible to upload receipts to the transaction, if set to `false` it is not possible to upload receipts to the transaction."
                    },
                    "comment": {
                      "type": "string",
                      "nullable": true,
                      "description": "A cardholder-defined comment for this transaction."
                    },
                    "merchantData": {
                      "type": "object",
                      "description": "Pliant's merchant data. If the merchant is not known to Pliant, the object is `null`.",
                      "properties": {
                        "pliantMerchantId": {
                          "type": "string",
                          "format": "uuid",
                          "description": "Pliant's merchant ID (can be specific for each organization)."
                        },
                        "displayName": {
                          "type": "string",
                          "description": "Display merchant name that can be used to show additionally next to the raw merchant description."
                        },
                        "logoPath": {
                          "type": "string",
                          "description": "URL to the logo of the merchant, if there is any.",
                          "nullable": true
                        }
                      }
                    },
                    "merchantRawData": {
                      "type": "object",
                      "description": "Raw merchant data as received from the card network, thus the quality of those fields differ greatly between merchants. We do not control the information provided here.",
                      "properties": {
                        "mcc": {
                          "type": "string",
                          "nullable": true,
                          "description": "The merchant category code (MCC) is a four-digit number assigned to a business by an acquiring bank or institution. The MCC is used to classify the business by the type of goods or services it provides."
                        },
                        "mccDesc": {
                          "type": "string",
                          "nullable": true,
                          "description": "The merchant category code (MCC) description is a short description of the MCC."
                        },
                        "merchantStreet": {
                          "type": "string",
                          "nullable": true,
                          "description": "The street of the merchant."
                        },
                        "merchantCity": {
                          "type": "string",
                          "nullable": true,
                          "description": "The city of the merchant."
                        },
                        "merchantRegion": {
                          "type": "string",
                          "nullable": true,
                          "description": "The region of the merchant."
                        },
                        "merchantPostcode": {
                          "type": "string",
                          "nullable": true,
                          "description": "The postcode of the merchant."
                        },
                        "merchantCountry": {
                          "type": "string",
                          "nullable": true,
                          "description": "The country of the merchant, in ISO 3166-1 alpha-3 format.",
                          "minLength": 3,
                          "maxLength": 3
                        },
                        "merchantPhone": {
                          "type": "string",
                          "nullable": true,
                          "description": "The phone number of the merchant."
                        },
                        "merchantUrl": {
                          "type": "string",
                          "nullable": true,
                          "description": "The URL of the merchant."
                        },
                        "merchantNameOther": {
                          "type": "string",
                          "nullable": true,
                          "description": "The name of the merchant in the local language."
                        },
                        "merchantLegalName": {
                          "type": "string",
                          "nullable": true,
                          "description": "The legal name of the merchant."
                        },
                        "merchantTaxId": {
                          "type": "string",
                          "nullable": true,
                          "description": "The tax ID of the merchant."
                        },
                        "merchantContact": {
                          "type": "string",
                          "nullable": true,
                          "description": "The contact information of the merchant."
                        },
                        "merchantTerminalId": {
                          "type": "string",
                          "nullable": true,
                          "description": "The terminal ID of the merchant used to make this transaction."
                        },
                        "descriptionAuthorization": {
                          "type": "string",
                          "description": "Authorization message by the merchant.",
                          "nullable": true
                        },
                        "descriptionConfirmation": {
                          "type": "string",
                          "description": "Confirmation message by the merchant.",
                          "nullable": true
                        }
                      }
                    },
                    "authCode": {
                      "type": "string",
                      "description": "Authorization code used for this transaction.",
                      "nullable": true
                    },
                    "paymentDate": {
                      "type": "string",
                      "format": "date",
                      "description": "The date on which the outstanding amount of this transaction was paid back to Pliant. It basically is the date the bank settlement was received by Pliant. This field is only filled after the next payment frequency cycle of this organization.",
                      "nullable": true
                    },
                    "paymentReference": {
                      "type": "string",
                      "format": "uuid",
                      "description": "The reference to the payment itself. Check the [payment API](getpaymentsdetail) to get details about the payment. This field is only filled after the next payment frequency cycle of this organization.",
                      "nullable": true
                    },
                    "wallet": {
                      "type": "string",
                      "description": "If the transaction was made using a mobile wallet (`APPLE` or `ANDROID`), the respective wallet type is returned. Otherwise, the field is `OTHER`.",
                      "enum": [
                        "APPLE",
                        "ANDROID",
                        "OTHER"
                      ]
                    },
                    "fxFee": {
                      "type": "object",
                      "description": "The foreign exchange fee that was charged for this transaction, if any.",
                      "properties": {
                        "fxFeePercentage": {
                          "type": "number",
                          "description": "The per-organization fee (as a percentage of the transaction amount) that is charged for foreign exchange transactions. This value is specific to this organization. Example: `2.1`.",
                          "format": "float",
                          "example": 2.1,
                          "minimum": 0,
                          "maximum": 100,
                          "nullable": true
                        },
                        "fxFeeAmount": {
                          "type": "object",
                          "description": "The specific amount of the foreign exchange fee that was charged for this transaction. Example: `0.21 EUR`.",
                          "nullable": true,
                          "properties": {
                            "value": {
                              "type": "number",
                              "description": "The value of the monetary amount, converted to minor units of the currency. For instance 1.00 EUR is 100 cents, thus the value here is `100`. See our [guides](/docs/monetary-values) for more details about how to handle monetary amounts.",
                              "example": 21
                            },
                            "currency": {
                              "type": "string",
                              "description": "The currency of the monetary amount in ISO 4217 format, for example `EUR` for Euro or `USD` for US Dollar.",
                              "example": "EUR"
                            }
                          }
                        }
                      }
                    },
                    "personal": {
                      "type": "boolean",
                      "description": "Indicates transaction was done for personal purpose."
                    },
                    "acquirerReferenceNumber": {
                      "type": "string",
                      "description": "The acquirer reference number as provided by the card network for the transaction."
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/paths/~1cards/get/responses/400"
          },
          "401": {
            "$ref": "#/paths/~1cards/get/responses/401"
          },
          "403": {
            "$ref": "#/paths/~1cards/get/responses/403"
          },
          "404": {
            "$ref": "#/paths/~1cards/post/responses/404"
          },
          "500": {
            "$ref": "#/paths/~1cards/get/responses/500"
          }
        }
      }
    },
    "/cards/subscription": {
      "post": {
        "summary": "Callback: Add/Update",
        "description": "> 🔒 **Required scope:** `callbacks.setup:write`\n>\n> The API credential calling this endpoint must be granted the `callbacks.setup` category with `read & write` access.\n> Scopes are assigned to the credential when it is created or edited in Pliant, not requested when obtaining the access token.\n> A credential without this scope receives `403 Forbidden` with the error code `INSUFFICIENT_PERMISSION`.\n\nSubscribe to callbacks for this entity or change an existing callback.\n",
        "x-required-scopes": [
          "callbacks.setup:write"
        ],
        "tags": [
          "Cards"
        ],
        "operationId": "create-card-subscription",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "callbackUrl": {
                    "type": "string",
                    "format": "uri",
                    "example": "https://myserver.com/send/callback/here",
                    "description": "The URL to send the callback to. Must be a valid and reachable URL. We do some basic validation to ensure the URL is syntactically correct and reachable for Pliant. Only HTTPS URLs are supported."
                  },
                  "eventTypes": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "description": "The event types to subscribe to.\nThe initial flow of events for cards is: \n`CARD_CREATED` - as soon as the card is created within Pliant, \n`CARD_ISSUED` - when the card is issued with the card issuer, and \n`CARD_ACTIVATED` - when the card is activated by the system or [cardholder](/docs/cardholder-entity) (virtual cards get activated automatically by the system, physical card are activated by the cardholder).\nAll other callback types can occur later over the lifetime of the card.\n",
                      "enum": [
                        "CARD_CREATED",
                        "CARD_ISSUED",
                        "CARD_ACTIVATED",
                        "CARD_LOCKED",
                        "CARD_UNLOCKED",
                        "CARD_TERMINATED",
                        "CARD_EXPIRED",
                        "CARD_LIMIT_CHANGED",
                        "CARD_LIMIT_CHANGE_FAILED",
                        "CARD_DETAILS_CHANGED",
                        "CARD_BALANCE_UPDATED",
                        "CARD_AVAILABLE_BALANCE_CHANGED",
                        "CARD_STATUS_CHANGED",
                        "CARD_VALIDITY_UPDATED",
                        "CARD_SHIPPED",
                        "CARD_CLICK_TO_PAY_INFO_CHANGED",
                        "CARD_BENEFIT_LOADED",
                        "CARD_BENEFIT_UNLOADED",
                        "CARD_LIMITS_CHANGED",
                        "CARD_REASSIGNED"
                      ]
                    }
                  }
                },
                "required": [
                  "callbackUrl",
                  "eventTypes"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "500": {
            "description": "Internal Server Error"
          }
        },
        "callbacks": {
          "cardUpdated": {
            "{$request.body#/callbackUrl}": {
              "post": {
                "parameters": [
                  {
                    "in": "header",
                    "name": "X-Organization-Id",
                    "schema": {
                      "type": "string",
                      "format": "uuid",
                      "description": "Referencing the organization this callback was sent for. See [guides](/docs/callbacks) for more details. Example value: `54e6e7e7-0c23-4a54-bccb-2d3ff2fd02df`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Partner-Organization-Id",
                    "schema": {
                      "type": "string",
                      "description": "Filled, if the value `partnerOrganizationId` is [set](/reference/update-organization) by the partner on the organization itself. Referencing the organization identifier of the partner. Example value: `abc123`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Payment-Program-Id",
                    "schema": {
                      "type": "string",
                      "format": "uuid",
                      "description": "Referencing the payment program this callback was sent for. See [guides](/docs/callbacks) for more details. Example value: `54e6e7e7-0c23-4a54-bccb-2d3ff2fd02df`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Callback-Id",
                    "schema": {
                      "type": "string",
                      "format": "uuid",
                      "description": "A unique identifier for this callback. Can be used to deduplicate callbacks to achieve idempotent behavior. See [guides](/docs/callbacks) for more details. Example value: `12a03093-eaad-4ae5-9d8d-42e7f6f8b7c6`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Callback-Created-At",
                    "schema": {
                      "type": "string",
                      "format": "date-time",
                      "description": "The date and time when the callback was created. Can be used to reorder callbacks. See [guides](/docs/callbacks) for more details. Example value: `2024-03-15T15:55:58.623375258Z`."
                    }
                  }
                ],
                "requestBody": {
                  "description": "This callback object is used for the following event types: `CARD_CREATED`, `CARD_ISSUED`, `CARD_ACTIVATED`, `CARD_LOCKED`, `CARD_UNLOCKED`, `CARD_TERMINATED`, `CARD_LIMIT_CHANGED`, `CARD_DETAILS_CHANGED`, `CARD_SHIPPED`.",
                  "content": {
                    "application/json": {
                      "schema": {
                        "allOf": [
                          {
                            "type": "object",
                            "properties": {
                              "eventType": {
                                "type": "string",
                                "description": "The type of event."
                              }
                            }
                          },
                          {
                            "properties": {
                              "cardId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "organizationId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "cardholderId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "cardAccountId": {
                                "type": "string",
                                "format": "uuid",
                                "description": "The unique identifier of the [card account](/docs/card-account)."
                              },
                              "type": {
                                "type": "string",
                                "deprecated": true,
                                "nullable": true,
                                "description": "Deprecated, please use `cardConfig` instead.\n`BLACK` - Physical black premium credit card\n`PHYSICAL` - Physical credit card\n`VIRTUAL` - Virtual credit card\n`SINGLE_USE` - One-time virtual credit card (only one authorization allowed per card)\n`TRAVEL` - Virtual cards used specifically in travel industry related use cases\n",
                                "enum": [
                                  "BLACK",
                                  "PHYSICAL",
                                  "VIRTUAL",
                                  "SINGLE_USE",
                                  "TRAVEL"
                                ]
                              },
                              "cardConfig": {
                                "type": "string",
                                "description": "Please contact your Pliant contact person for details"
                              },
                              "cardDesignId": {
                                "type": "string",
                                "format": "uuid",
                                "nullable": true,
                                "description": "The unique identifier of the card design used for this card. Present only for virtual cards."
                              },
                              "status": {
                                "type": "string",
                                "description": "The status of the card.\n\n**Deprecation Notice:** The status values `PENDING_ACTIVATION`, `PENDING_ISSUANCE`, and `PENDING_REGISTRATION` are deprecated and will be mapped to `PENDING` with appropriate `pendingDetails` in the future. Use `PENDING` with the corresponding `pendingDetails` value instead.\n",
                                "enum": [
                                  "PENDING",
                                  "PENDING_ACTIVATION",
                                  "PENDING_ISSUANCE",
                                  "PENDING_REGISTRATION",
                                  "REQUEST_APPROVED",
                                  "REQUESTED",
                                  "REQUEST_CANCELLED",
                                  "REQUEST_REJECTED",
                                  "ACTIVE",
                                  "LOCKED",
                                  "LOCKED_PIN",
                                  "EXPIRED",
                                  "TERMINATED",
                                  "TERMINATED_LOST",
                                  "TERMINATED_STOLEN"
                                ],
                                "x-enumDescriptions": {
                                  "PENDING": "Card is in a pending state. Check `pendingDetails` for the specific reason.",
                                  "PENDING_ACTIVATION": "~~(Deprecated) Use `PENDING` with `pendingDetails: PENDING_ACTIVATION` instead.~~",
                                  "PENDING_ISSUANCE": "~~(Deprecated) Use `PENDING` with `pendingDetails: PENDING_ISSUANCE` instead.~~",
                                  "PENDING_REGISTRATION": "~~(Deprecated) Use `PENDING` with `pendingDetails: PENDING_REGISTRATION` instead.~~",
                                  "REQUEST_APPROVED": "Card request has been approved.",
                                  "REQUESTED": "Card has been requested.",
                                  "REQUEST_CANCELLED": "Card request has been cancelled.",
                                  "REQUEST_REJECTED": "Card request has been rejected.",
                                  "ACTIVE": "Card is active and can be used.",
                                  "LOCKED": "Card is locked.",
                                  "LOCKED_PIN": "Card is locked due to PIN issues.",
                                  "EXPIRED": "Card has expired.",
                                  "TERMINATED": "Card has been terminated.",
                                  "TERMINATED_LOST": "Card has been terminated because it was lost.",
                                  "TERMINATED_STOLEN": "Card has been terminated because it was stolen."
                                }
                              },
                              "pendingDetails": {
                                "type": "string",
                                "nullable": true,
                                "description": "The internal reason for a card's pending state. This field is only populated when `status` is `PENDING` or one of the deprecated `PENDING_...` statuses, and will be `null` for all non-pending statuses.\n",
                                "enum": [
                                  "PENDING_ACTIVATION",
                                  "PENDING_ISSUANCE",
                                  "PENDING_REGISTRATION",
                                  "PENDING_VALIDITY",
                                  "PENDING_SANCTION_SCREEN",
                                  "PENDING_INFORMATION"
                                ],
                                "x-enumDescriptions": {
                                  "PENDING_ACTIVATION": "Card is pending activation.",
                                  "PENDING_ISSUANCE": "Card is pending issuance.",
                                  "PENDING_REGISTRATION": "Card is pending registration.",
                                  "PENDING_VALIDITY": "Card is pending validity period.",
                                  "PENDING_SANCTION_SCREEN": "Card is pending sanction screening.",
                                  "PENDING_INFORMATION": "Card is pending additional information."
                                }
                              },
                              "label": {
                                "type": "string",
                                "description": "Available only for virtual cards with a `cardConfig` containing `VIRTUAL` or `TRAVEL`. The maximum length is 40 characters.",
                                "maxLength": 40,
                                "nullable": true
                              },
                              "purpose": {
                                "type": "string",
                                "description": "Available only for virtual cards with type `SINGLE_USE`",
                                "nullable": true
                              },
                              "limitChange": {
                                "type": "object",
                                "description": "Filled only for events of type CARD_LIMIT_CHANGED",
                                "nullable": true,
                                "properties": {
                                  "beforeChange": {
                                    "type": "object",
                                    "nullable": true,
                                    "properties": {
                                      "limit": {
                                        "type": "object",
                                        "properties": {
                                          "value": {
                                            "type": "number"
                                          },
                                          "currency": {
                                            "type": "string"
                                          }
                                        }
                                      },
                                      "limitRenewFrequency": {
                                        "type": "string",
                                        "enum": [
                                          "DAILY",
                                          "WEEKLY",
                                          "MONTHLY",
                                          "QUARTERLY",
                                          "ANNUAL",
                                          "TOTAL"
                                        ],
                                        "description": "* `DAILY` - The card limit is renewed every day\n* `WEEKLY` - The card limit is renewed every week\n* `MONTHLY` - The card limit is renewed every calendar month\n* `QUARTERLY` - The card limit is renewed every calendar quarter\n* `ANNUAL` - The card limit is renewed every year\n* `TOTAL` - The card limit is never going to be renewed. After the limit is spent the card cannot be used anymore.\n"
                                      },
                                      "transactionLimit": {
                                        "type": "object",
                                        "properties": {
                                          "value": {
                                            "type": "number"
                                          },
                                          "currency": {
                                            "type": "string"
                                          }
                                        }
                                      }
                                    }
                                  },
                                  "afterChange": {
                                    "type": "object",
                                    "nullable": true,
                                    "properties": {
                                      "limit": {
                                        "type": "object",
                                        "properties": {
                                          "value": {
                                            "type": "number"
                                          },
                                          "currency": {
                                            "type": "string"
                                          }
                                        }
                                      },
                                      "limitRenewFrequency": {
                                        "type": "string",
                                        "enum": [
                                          "DAILY",
                                          "WEEKLY",
                                          "MONTHLY",
                                          "QUARTERLY",
                                          "ANNUAL",
                                          "TOTAL"
                                        ],
                                        "description": "* `DAILY` - The card limit is renewed every day\n* `WEEKLY` - The card limit is renewed every week\n* `MONTHLY` - The card limit is renewed every calendar month\n* `QUARTERLY` - The card limit is renewed every calendar quarter\n* `ANNUAL` - The card limit is renewed every year\n* `TOTAL` - The card limit is never going to be renewed. After the limit is spent the card cannot be used anymore.\n"
                                      },
                                      "transactionLimit": {
                                        "type": "object",
                                        "properties": {
                                          "value": {
                                            "type": "number"
                                          },
                                          "currency": {
                                            "type": "string"
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              },
                              "isBenefit": {
                                "type": "boolean",
                                "description": "Indicates that the card was issued as an employee benefit.",
                                "nullable": true
                              },
                              "clickToPayInfo": {
                                "$ref": "#/paths/~1cards/post/responses/200/content/application~1json/schema/properties/clickToPayInfo"
                              },
                              "fundingType": {
                                "type": "string",
                                "description": "* `CHARGE` - normal (non-benefit) credit card\n* `LOAD_BASED_ACCRUING` - benefit card where money not spent is transferred to the next month\n* `LOAD_BASED_NON_ACCRUING` - benefit card where money not spent is lost end of month\n* `BALANCE_BASED` - benefit card with a standing balance that persists across months and is spent down until depleted (no monthly reset).\n",
                                "enum": [
                                  "CHARGE",
                                  "LOAD_BASED_ACCRUING",
                                  "LOAD_BASED_NON_ACCRUING",
                                  "BALANCE_BASED"
                                ]
                              },
                              "nextLoadDate": {
                                "type": "string",
                                "format": "date",
                                "description": "For cards that are loaded periodically, indicates the date when the card will be loaded the next time.",
                                "nullable": true
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "We expect the partner to return a HTTP 200 status code if the callback was successfully received. On 4xx and 5xx status codes, we will [retry](/docs/callbacks#retries) the callback."
                  }
                }
              }
            }
          },
          "cardBalanceUpdated": {
            "{$request.body#/callbackUrl}": {
              "post": {
                "parameters": [
                  {
                    "in": "header",
                    "name": "X-Organization-Id",
                    "schema": {
                      "type": "string",
                      "format": "uuid",
                      "description": "Referencing the organization this callback was sent for. See [guides](/docs/callbacks) for more details. Example value: `54e6e7e7-0c23-4a54-bccb-2d3ff2fd02df`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Partner-Organization-Id",
                    "schema": {
                      "type": "string",
                      "description": "Filled, if the value `partnerOrganizationId` is [set](/reference/update-organization) by the partner on the organization itself. Referencing the organization identifier of the partner. Example value: `abc123`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Payment-Program-Id",
                    "schema": {
                      "type": "string",
                      "format": "uuid",
                      "description": "Referencing the payment program this callback was sent for. See [guides](/docs/callbacks) for more details. Example value: `54e6e7e7-0c23-4a54-bccb-2d3ff2fd02df`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Callback-Id",
                    "schema": {
                      "type": "string",
                      "format": "uuid",
                      "description": "A unique identifier for this callback. Can be used to deduplicate callbacks to achieve idempotent behavior. See [guides](/docs/callbacks) for more details. Example value: `12a03093-eaad-4ae5-9d8d-42e7f6f8b7c6`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Callback-Created-At",
                    "schema": {
                      "type": "string",
                      "format": "date-time",
                      "description": "The date and time when the callback was created. Can be used to reorder callbacks. See [guides](/docs/callbacks) for more details. Example value: `2024-03-15T15:55:58.623375258Z`."
                    }
                  }
                ],
                "requestBody": {
                  "description": "This callback object is used for the following event types: `CARD_BALANCE_UPDATED`. Hint: all cards are issued with zero limit until they are activated. The limit is updated to the desired amount when the card is activated.",
                  "content": {
                    "application/json": {
                      "schema": {
                        "allOf": [
                          {
                            "$ref": "#/paths/~1cards~1subscription/post/callbacks/cardUpdated/{$request.body#~1callbackUrl}/post/requestBody/content/application~1json/schema/allOf/0"
                          },
                          {
                            "properties": {
                              "organizationId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "cardholderId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "cardId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "cardAccountId": {
                                "type": "string",
                                "format": "uuid",
                                "description": "The card account to which the card belongs."
                              },
                              "availableBalance": {
                                "type": "object",
                                "description": "The available balance of the card.",
                                "properties": {
                                  "value": {
                                    "type": "number",
                                    "description": "The value of the monetary amount, converted to minor units of the currency. For instance 1.00 EUR is 100 cents, thus the value here is `100`. See our [guides](/docs/monetary-values) for more details about how to handle monetary amounts."
                                  },
                                  "currency": {
                                    "type": "string",
                                    "description": "The currency of the monetary amount in ISO 4217 format, for example `EUR` for Euro or `USD` for US Dollar."
                                  }
                                }
                              },
                              "spendingBalance": {
                                "type": "object",
                                "description": "The spending balance of the card.",
                                "properties": {
                                  "value": {
                                    "type": "number",
                                    "description": "The value of the monetary amount, converted to minor units of the currency. For instance 1.00 EUR is 100 cents, thus the value here is `100`. See our [guides](/docs/monetary-values) for more details about how to handle monetary amounts."
                                  },
                                  "currency": {
                                    "type": "string",
                                    "description": "The currency of the monetary amount in ISO 4217 format, for example `EUR` for Euro or `USD` for US Dollar."
                                  }
                                }
                              },
                              "transactionLimit": {
                                "type": "object",
                                "description": "The transaction limit of the card, describing the maximum amount a single transaction can have on this card.",
                                "properties": {
                                  "value": {
                                    "type": "number",
                                    "description": "The value of the monetary amount, converted to minor units of the currency. For instance 1.00 EUR is 100 cents, thus the value here is `100`. See our [guides](/docs/monetary-values) for more details about how to handle monetary amounts."
                                  },
                                  "currency": {
                                    "type": "string",
                                    "description": "The currency of the monetary amount in ISO 4217 format, for example `EUR` for Euro or `USD` for US Dollar."
                                  }
                                }
                              },
                              "limit": {
                                "type": "object",
                                "description": "The limit of the card, describing the overall limit of this card.",
                                "properties": {
                                  "value": {
                                    "type": "number",
                                    "description": "The value of the monetary amount, converted to minor units of the currency. For instance 1.00 EUR is 100 cents, thus the value here is `100`. See our [guides](/docs/monetary-values) for more details about how to handle monetary amounts."
                                  },
                                  "currency": {
                                    "type": "string",
                                    "description": "The currency of the monetary amount in ISO 4217 format, for example `EUR` for Euro or `USD` for US Dollar."
                                  }
                                }
                              },
                              "isBenefit": {
                                "type": "boolean",
                                "nullable": true,
                                "description": "Indicates that the card was issued as an employee benefit."
                              },
                              "fundingType": {
                                "type": "string",
                                "description": "* `CHARGE` - normal (non-benefit) credit card\n* `LOAD_BASED_ACCRUING` - benefit card where money not spent is transferred to the next month\n* `LOAD_BASED_NON_ACCRUING` - benefit card where money not spent is lost end of month\n* `BALANCE_BASED` - benefit card with a standing balance that persists across months and is spent down until depleted (no monthly reset).\n",
                                "enum": [
                                  "CHARGE",
                                  "LOAD_BASED_ACCRUING",
                                  "LOAD_BASED_NON_ACCRUING",
                                  "BALANCE_BASED"
                                ]
                              },
                              "nextLoadDate": {
                                "type": "string",
                                "format": "date",
                                "nullable": true,
                                "description": "For cards that are loaded periodically, indicates the date when the card will be loaded the next time."
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "We expect the partner to return a HTTP 200 status code if the callback was successfully received. On 4xx and 5xx status codes, we will [retry](/docs/callbacks#retries) the callback."
                  }
                }
              }
            }
          },
          "cardAvailableBalanceChanged": {
            "{$request.body#/callbackUrl}": {
              "post": {
                "parameters": [
                  {
                    "$ref": "#/paths/~1cards~1subscription/post/callbacks/cardReassigned/{$request.body#~1callbackUrl}/post/parameters/0"
                  },
                  {
                    "$ref": "#/paths/~1cards~1subscription/post/callbacks/cardReassigned/{$request.body#~1callbackUrl}/post/parameters/1"
                  },
                  {
                    "$ref": "#/paths/~1cards~1subscription/post/callbacks/cardReassigned/{$request.body#~1callbackUrl}/post/parameters/2"
                  },
                  {
                    "$ref": "#/paths/~1cards~1subscription/post/callbacks/cardReassigned/{$request.body#~1callbackUrl}/post/parameters/3"
                  },
                  {
                    "$ref": "#/paths/~1cards~1subscription/post/callbacks/cardReassigned/{$request.body#~1callbackUrl}/post/parameters/4"
                  }
                ],
                "requestBody": {
                  "description": "This callback object is used for the following event types: `CARD_AVAILABLE_BALANCE_CHANGED`.\nFired whenever the card's available balance is set or changes (value or currency), including the initial population when the card balance is first established.\n",
                  "content": {
                    "application/json": {
                      "schema": {
                        "allOf": [
                          {
                            "$ref": "#/paths/~1cards~1subscription/post/callbacks/cardUpdated/{$request.body#~1callbackUrl}/post/requestBody/content/application~1json/schema/allOf/0"
                          },
                          {
                            "properties": {
                              "organizationId": {
                                "type": "string",
                                "format": "uuid",
                                "description": "The unique identifier of the organization this card belongs to."
                              },
                              "cardholderId": {
                                "type": "string",
                                "format": "uuid",
                                "description": "The unique identifier of the cardholder this card belongs to."
                              },
                              "cardId": {
                                "type": "string",
                                "format": "uuid",
                                "description": "The unique identifier of the card whose available balance changed."
                              },
                              "cardAccountId": {
                                "type": "string",
                                "format": "uuid",
                                "description": "The unique identifier of the [card account](/docs/card-account) this card belongs to."
                              },
                              "availableBalance": {
                                "type": "object",
                                "nullable": true,
                                "description": "The available balance of the card after the change.",
                                "properties": {
                                  "value": {
                                    "type": "number",
                                    "description": "The value of the monetary amount, converted to minor units of the currency. For instance 1.00 EUR is 100 cents, thus the value here is `100`. See our [guides](/docs/monetary-values) for more details about how to handle monetary amounts."
                                  },
                                  "currency": {
                                    "type": "string",
                                    "description": "The currency of the monetary amount in ISO 4217 format, for example `EUR` for Euro or `USD` for US Dollar."
                                  }
                                }
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "We expect the partner to return a HTTP 200 status code if the callback was successfully received. On 4xx and 5xx status codes, we will [retry](/docs/callbacks#retries) the callback."
                  }
                }
              }
            }
          },
          "cardExpired": {
            "{$request.body#/callbackUrl}": {
              "post": {
                "parameters": [
                  {
                    "in": "header",
                    "name": "X-Organization-Id",
                    "schema": {
                      "type": "string",
                      "format": "uuid",
                      "description": "Referencing the organization this callback was sent for. See [guides](/docs/callbacks) for more details. Example value: `54e6e7e7-0c23-4a54-bccb-2d3ff2fd02df`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Partner-Organization-Id",
                    "schema": {
                      "type": "string",
                      "description": "Filled, if the value `partnerOrganizationId` is [set](/reference/update-organization) by the partner on the organization itself. Referencing the organization identifier of the partner. Example value: `abc123`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Payment-Program-Id",
                    "schema": {
                      "type": "string",
                      "format": "uuid",
                      "description": "Referencing the payment program this callback was sent for. See [guides](/docs/callbacks) for more details. Example value: `54e6e7e7-0c23-4a54-bccb-2d3ff2fd02df`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Callback-Id",
                    "schema": {
                      "type": "string",
                      "format": "uuid",
                      "description": "A unique identifier for this callback. Can be used to deduplicate callbacks to achieve idempotent behavior. See [guides](/docs/callbacks) for more details. Example value: `12a03093-eaad-4ae5-9d8d-42e7f6f8b7c6`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Callback-Created-At",
                    "schema": {
                      "type": "string",
                      "format": "date-time",
                      "description": "The date and time when the callback was created. Can be used to reorder callbacks. See [guides](/docs/callbacks) for more details. Example value: `2024-03-15T15:55:58.623375258Z`."
                    }
                  }
                ],
                "requestBody": {
                  "description": "This callback object is used for the following event types: `CARD_EXPIRED`.",
                  "content": {
                    "application/json": {
                      "schema": {
                        "allOf": [
                          {
                            "$ref": "#/paths/~1cards~1subscription/post/callbacks/cardUpdated/{$request.body#~1callbackUrl}/post/requestBody/content/application~1json/schema/allOf/0"
                          },
                          {
                            "properties": {
                              "organizationId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "cardholderId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "cardId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "cardAccountId": {
                                "type": "string",
                                "format": "uuid",
                                "description": "The card account to which this card belongs to."
                              },
                              "expirationDate": {
                                "type": "string",
                                "description": "Date when card expires. For cards with type `SINGLE_USE` this is set to 12 months automatically and every value put here is ignored.",
                                "format": "date-time"
                              },
                              "label": {
                                "type": "string",
                                "description": "Available only for virtual cards with a `cardConfig` containing `VIRTUAL` or `TRAVEL`. The maximum length is 40 characters.",
                                "maxLength": 40,
                                "nullable": true
                              },
                              "isBenefit": {
                                "type": "boolean",
                                "description": "Indicates that the card was issued as an employee benefit.",
                                "nullable": true
                              },
                              "fundingType": {
                                "type": "string",
                                "description": "* `CHARGE` - normal (non-benefit) credit card\n* `LOAD_BASED_ACCRUING` - benefit card where money not spent is transferred to the next month\n* `LOAD_BASED_NON_ACCRUING` - benefit card where money not spent is lost end of month\n* `BALANCE_BASED` - benefit card with a standing balance that persists across months and is spent down until depleted (no monthly reset).\n",
                                "enum": [
                                  "CHARGE",
                                  "LOAD_BASED_ACCRUING",
                                  "LOAD_BASED_NON_ACCRUING",
                                  "BALANCE_BASED"
                                ]
                              },
                              "nextLoadDate": {
                                "type": "string",
                                "format": "date",
                                "description": "For cards that are loaded periodically, indicates the date when the card will be loaded the next time.",
                                "nullable": true
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "We expect the partner to return a HTTP 200 status code if the callback was successfully received. On 4xx and 5xx status codes, we will [retry](/docs/callbacks#retries) the callback."
                  }
                }
              }
            }
          },
          "cardStatusChanged": {
            "{$request.body#/callbackUrl}": {
              "post": {
                "parameters": [
                  {
                    "in": "header",
                    "name": "X-Organization-Id",
                    "schema": {
                      "type": "string",
                      "format": "uuid",
                      "description": "Referencing the organization this callback was sent for. See [guides](/docs/callbacks) for more details. Example value: `54e6e7e7-0c23-4a54-bccb-2d3ff2fd02df`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Partner-Organization-Id",
                    "schema": {
                      "type": "string",
                      "description": "Filled, if the value `partnerOrganizationId` is [set](/reference/update-organization) by the partner on the organization itself. Referencing the organization identifier of the partner. Example value: `abc123`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Payment-Program-Id",
                    "schema": {
                      "type": "string",
                      "format": "uuid",
                      "description": "Referencing the payment program this callback was sent for. See [guides](/docs/callbacks) for more details. Example value: `54e6e7e7-0c23-4a54-bccb-2d3ff2fd02df`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Callback-Id",
                    "schema": {
                      "type": "string",
                      "format": "uuid",
                      "description": "A unique identifier for this callback. Can be used to deduplicate callbacks to achieve idempotent behavior. See [guides](/docs/callbacks) for more details. Example value: `12a03093-eaad-4ae5-9d8d-42e7f6f8b7c6`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Callback-Created-At",
                    "schema": {
                      "type": "string",
                      "format": "date-time",
                      "description": "The date and time when the callback was created. Can be used to reorder callbacks. See [guides](/docs/callbacks) for more details. Example value: `2024-03-15T15:55:58.623375258Z`."
                    }
                  }
                ],
                "requestBody": {
                  "description": "This callback object is used for the following event types: `CARD_STATUS_CHANGED`.",
                  "content": {
                    "application/json": {
                      "schema": {
                        "allOf": [
                          {
                            "$ref": "#/paths/~1cards~1subscription/post/callbacks/cardUpdated/{$request.body#~1callbackUrl}/post/requestBody/content/application~1json/schema/allOf/0"
                          },
                          {
                            "properties": {
                              "cardId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "organizationId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "cardholderId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "cardAccountId": {
                                "type": "string",
                                "format": "uuid",
                                "description": "The unique identifier of the [card account](/docs/card-account)."
                              },
                              "cardConfig": {
                                "type": "string",
                                "description": "The Pliant card configuration of this card. This describes all feature of this card in one single configuration, e.g. the type of the card and also the design of the card etc. Please refer to the [guide section](/docs/card-entity) to learn more about this. Please contact your Pliant contact person for details"
                              },
                              "status": {
                                "type": "string",
                                "description": "The current status of the card.\n\n**Deprecation Notice:** The status values `PENDING_ACTIVATION`, `PENDING_ISSUANCE`, and `PENDING_REGISTRATION` are deprecated and will be mapped to `PENDING` with appropriate `pendingDetails` in the future. Use `PENDING` with the corresponding `pendingDetails` value instead.\n",
                                "enum": [
                                  "PENDING",
                                  "PENDING_ACTIVATION",
                                  "PENDING_ISSUANCE",
                                  "PENDING_REGISTRATION",
                                  "REQUEST_APPROVED",
                                  "REQUESTED",
                                  "REQUEST_CANCELLED",
                                  "REQUEST_REJECTED",
                                  "ACTIVE",
                                  "LOCKED",
                                  "LOCKED_PIN",
                                  "EXPIRED",
                                  "TERMINATED",
                                  "TERMINATED_LOST",
                                  "TERMINATED_STOLEN"
                                ],
                                "x-enumDescriptions": {
                                  "PENDING": "Card is in a pending state. Check `pendingDetails` for the specific reason.",
                                  "PENDING_ACTIVATION": "~~(Deprecated) Use `PENDING` with `pendingDetails: PENDING_ACTIVATION` instead.~~",
                                  "PENDING_ISSUANCE": "~~(Deprecated) Use `PENDING` with `pendingDetails: PENDING_ISSUANCE` instead.~~",
                                  "PENDING_REGISTRATION": "~~(Deprecated) Use `PENDING` with `pendingDetails: PENDING_REGISTRATION` instead.~~",
                                  "REQUEST_APPROVED": "Card request has been approved.",
                                  "REQUESTED": "Card has been requested.",
                                  "REQUEST_CANCELLED": "Card request has been cancelled.",
                                  "REQUEST_REJECTED": "Card request has been rejected.",
                                  "ACTIVE": "Card is active and can be used.",
                                  "LOCKED": "Card is locked.",
                                  "LOCKED_PIN": "Card is locked due to PIN issues.",
                                  "EXPIRED": "Card has expired.",
                                  "TERMINATED": "Card has been terminated.",
                                  "TERMINATED_LOST": "Card has been terminated because it was lost.",
                                  "TERMINATED_STOLEN": "Card has been terminated because it was stolen."
                                }
                              },
                              "pendingDetails": {
                                "type": "string",
                                "nullable": true,
                                "description": "The internal reason for a card's pending state. This field is only populated when `status` is `PENDING` or one of the deprecated `PENDING_...` statuses, and will be `null` for all non-pending statuses.\n",
                                "enum": [
                                  "PENDING_ACTIVATION",
                                  "PENDING_ISSUANCE",
                                  "PENDING_REGISTRATION",
                                  "PENDING_VALIDITY",
                                  "PENDING_SANCTION_SCREEN",
                                  "PENDING_INFORMATION"
                                ],
                                "x-enumDescriptions": {
                                  "PENDING_ACTIVATION": "Card is pending activation.",
                                  "PENDING_ISSUANCE": "Card is pending issuance.",
                                  "PENDING_REGISTRATION": "Card is pending registration.",
                                  "PENDING_VALIDITY": "Card is pending validity period.",
                                  "PENDING_SANCTION_SCREEN": "Card is pending sanction screening.",
                                  "PENDING_INFORMATION": "Card is pending additional information."
                                }
                              },
                              "clickToPayInfo": {
                                "$ref": "#/paths/~1cards/post/responses/200/content/application~1json/schema/properties/clickToPayInfo"
                              },
                              "statusBeforeChange": {
                                "type": "string",
                                "description": "The previous status of the card before the change.\n\n**Deprecation Notice:** The status values `PENDING_ACTIVATION`, `PENDING_ISSUANCE`, and `PENDING_REGISTRATION` are deprecated and will be mapped to `PENDING` with appropriate `pendingDetails` in the future. Use `PENDING` with the corresponding `pendingDetails` value instead.\n",
                                "enum": [
                                  "PENDING",
                                  "PENDING_ACTIVATION",
                                  "PENDING_ISSUANCE",
                                  "PENDING_REGISTRATION",
                                  "REQUEST_APPROVED",
                                  "REQUESTED",
                                  "REQUEST_CANCELLED",
                                  "REQUEST_REJECTED",
                                  "ACTIVE",
                                  "LOCKED",
                                  "LOCKED_PIN",
                                  "EXPIRED",
                                  "TERMINATED",
                                  "TERMINATED_LOST",
                                  "TERMINATED_STOLEN"
                                ],
                                "x-enumDescriptions": {
                                  "PENDING": "Card was in a pending state. Check `pendingDetails` for the specific reason.",
                                  "PENDING_ACTIVATION": "~~(Deprecated) Use `PENDING` with `pendingDetails: PENDING_ACTIVATION` instead.~~",
                                  "PENDING_ISSUANCE": "~~(Deprecated) Use `PENDING` with `pendingDetails: PENDING_ISSUANCE` instead.~~",
                                  "PENDING_REGISTRATION": "~~(Deprecated) Use `PENDING` with `pendingDetails: PENDING_REGISTRATION` instead.~~",
                                  "REQUEST_APPROVED": "Card request was approved.",
                                  "REQUESTED": "Card was requested.",
                                  "REQUEST_CANCELLED": "Card request was cancelled.",
                                  "REQUEST_REJECTED": "Card request was rejected.",
                                  "ACTIVE": "Card was active and could be used.",
                                  "LOCKED": "Card was locked.",
                                  "LOCKED_PIN": "Card was locked due to PIN issues.",
                                  "EXPIRED": "Card expired.",
                                  "TERMINATED": "Card was terminated.",
                                  "TERMINATED_LOST": "Card was terminated because it was lost.",
                                  "TERMINATED_STOLEN": "Card was terminated because it was stolen."
                                }
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "We expect the partner to return a HTTP 200 status code if the callback was successfully received. On 4xx and 5xx status codes, we will [retry](/docs/callbacks#retries) the callback."
                  }
                }
              }
            }
          },
          "cardValidityUpdated": {
            "{$request.body#/callbackUrl}": {
              "post": {
                "parameters": [
                  {
                    "in": "header",
                    "name": "X-Organization-Id",
                    "schema": {
                      "type": "string",
                      "format": "uuid",
                      "description": "Referencing the organization this callback was sent for. See [guides](/docs/callbacks) for more details. Example value: `54e6e7e7-0c23-4a54-bccb-2d3ff2fd02df`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Partner-Organization-Id",
                    "schema": {
                      "type": "string",
                      "description": "Filled, if the value `partnerOrganizationId` is [set](/reference/update-organization) by the partner on the organization itself. Referencing the organization identifier of the partner. Example value: `abc123`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Payment-Program-Id",
                    "schema": {
                      "type": "string",
                      "format": "uuid",
                      "description": "Referencing the payment program this callback was sent for. See [guides](/docs/callbacks) for more details. Example value: `54e6e7e7-0c23-4a54-bccb-2d3ff2fd02df`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Callback-Id",
                    "schema": {
                      "type": "string",
                      "format": "uuid",
                      "description": "A unique identifier for this callback. Can be used to deduplicate callbacks to achieve idempotent behavior. See [guides](/docs/callbacks) for more details. Example value: `12a03093-eaad-4ae5-9d8d-42e7f6f8b7c6`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Callback-Created-At",
                    "schema": {
                      "type": "string",
                      "format": "date-time",
                      "description": "The date and time when the callback was created. Can be used to reorder callbacks. See [guides](/docs/callbacks) for more details. Example value: `2024-03-15T15:55:58.623375258Z`."
                    }
                  }
                ],
                "requestBody": {
                  "description": "This callback object is used for the following event types: `CARD_VALIDITY_UPDATED`.",
                  "content": {
                    "application/json": {
                      "schema": {
                        "allOf": [
                          {
                            "$ref": "#/paths/~1cards~1subscription/post/callbacks/cardUpdated/{$request.body#~1callbackUrl}/post/requestBody/content/application~1json/schema/allOf/0"
                          },
                          {
                            "properties": {
                              "cardId": {
                                "type": "string",
                                "format": "uuid",
                                "description": "The unique identifier of the card."
                              },
                              "organizationId": {
                                "type": "string",
                                "format": "uuid",
                                "description": "The unique identifier of the organization."
                              },
                              "cardholderId": {
                                "type": "string",
                                "format": "uuid",
                                "description": "The unique identifier of the cardholder."
                              },
                              "cardAccountId": {
                                "type": "string",
                                "format": "uuid",
                                "description": "The unique identifier of the [card account](/docs/card-account)."
                              },
                              "validFrom": {
                                "type": "string",
                                "format": "date",
                                "nullable": true,
                                "description": "The start date of the validity period in which the card is usable for purchases.",
                                "example": "2024-01-30"
                              },
                              "validTo": {
                                "type": "string",
                                "format": "date",
                                "nullable": true,
                                "description": "The end date of the validity period in which the card is usable for purchases.",
                                "example": "2024-12-31"
                              },
                              "timezone": {
                                "type": "string",
                                "nullable": true,
                                "description": "The timezone for the validity period.",
                                "example": "Europe/Berlin"
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "We expect the partner to return a HTTP 200 status code if the callback was successfully received. On 4xx and 5xx status codes, we will [retry](/docs/callbacks#retries) the callback."
                  }
                }
              }
            }
          },
          "cardLimitChangeFailed": {
            "{$request.body#/callbackUrl}": {
              "post": {
                "parameters": [
                  {
                    "in": "header",
                    "name": "X-Organization-Id",
                    "schema": {
                      "type": "string",
                      "format": "uuid",
                      "description": "Referencing the organization this callback was sent for. See [guides](/docs/callbacks) for more details. Example value: `54e6e7e7-0c23-4a54-bccb-2d3ff2fd02df`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Partner-Organization-Id",
                    "schema": {
                      "type": "string",
                      "description": "Filled, if the value `partnerOrganizationId` is [set](/reference/update-organization) by the partner on the organization itself. Referencing the organization identifier of the partner. Example value: `abc123`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Payment-Program-Id",
                    "schema": {
                      "type": "string",
                      "format": "uuid",
                      "description": "Referencing the payment program this callback was sent for. See [guides](/docs/callbacks) for more details. Example value: `54e6e7e7-0c23-4a54-bccb-2d3ff2fd02df`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Callback-Id",
                    "schema": {
                      "type": "string",
                      "format": "uuid",
                      "description": "A unique identifier for this callback. Can be used to deduplicate callbacks to achieve idempotent behavior. See [guides](/docs/callbacks) for more details. Example value: `12a03093-eaad-4ae5-9d8d-42e7f6f8b7c6`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Callback-Created-At",
                    "schema": {
                      "type": "string",
                      "format": "date-time",
                      "description": "The date and time when the callback was created. Can be used to reorder callbacks. See [guides](/docs/callbacks) for more details. Example value: `2024-03-15T15:55:58.623375258Z`."
                    }
                  }
                ],
                "requestBody": {
                  "description": "This callback object is used for the following event types: `CARD_LIMIT_CHANGE_FAILED`.",
                  "content": {
                    "application/json": {
                      "schema": {
                        "allOf": [
                          {
                            "$ref": "#/paths/~1cards~1subscription/post/callbacks/cardUpdated/{$request.body#~1callbackUrl}/post/requestBody/content/application~1json/schema/allOf/0"
                          },
                          {
                            "properties": {
                              "cardId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "organizationId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "limitChangeFailure": {
                                "type": "string",
                                "description": "Description of why the limit change failed."
                              },
                              "attemptedLimitChange": {
                                "type": "object",
                                "properties": {
                                  "limit": {
                                    "type": "object",
                                    "description": "The limit that was attempted to set. See [card](/docs/card-entity).",
                                    "properties": {
                                      "value": {
                                        "type": "number",
                                        "description": "The value of the monetary amount, converted to minor units of the currency. For instance 1.00 EUR is 100 cents, thus the value here is `100`. See our [guides](/docs/monetary-values) for more details about how to handle monetary amounts."
                                      },
                                      "currency": {
                                        "type": "string",
                                        "description": "The currency of the monetary amount in ISO 4217 format, for example `EUR` for Euro or `USD` for US Dollar. This has to match the currency of the respective [card account](/docs/card-account)!"
                                      }
                                    }
                                  },
                                  "transactionLimit": {
                                    "type": "object",
                                    "description": "The transaction limit that was attempted to set. See [card](/docs/card-entity).",
                                    "properties": {
                                      "value": {
                                        "type": "number",
                                        "description": "The value of the monetary amount, converted to minor units of the currency. For instance 1.00 EUR is 100 cents, thus the value here is `100`. See our [guides](/docs/monetary-values) for more details about how to handle monetary amounts."
                                      },
                                      "currency": {
                                        "type": "string",
                                        "description": "The currency of the monetary amount in ISO 4217 format, for example `EUR` for Euro or `USD` for US Dollar. This has to match the currency of the respective [card account](/docs/card-account)!"
                                      }
                                    }
                                  },
                                  "limitRenewFrequency": {
                                    "type": "string",
                                    "enum": [
                                      "DAILY",
                                      "WEEKLY",
                                      "MONTHLY",
                                      "QUARTERLY",
                                      "ANNUAL",
                                      "TOTAL"
                                    ],
                                    "description": "The limit that was attempted to set. See [card](/docs/card-entity).\n* `DAILY` - The card limit is renewed every day\n* `WEEKLY` - The card limit is renewed every week\n* `MONTHLY` - The card limit is renewed every calendar month\n* `QUARTERLY` - The card limit is renewed every calendar quarter\n* `ANNUAL` - The card limit is renewed every year\n* `TOTAL` - The card limit is never going to be renewed. After the limit is spent the card cannot be used anymore.\n"
                                  },
                                  "maxTransactionCount": {
                                    "type": "number",
                                    "minimum": 1,
                                    "maximum": 999999999,
                                    "description": "The maximum number of transactions that was attempted to set. See [card](/docs/card-entity). Optional field to describe the maximum number of transactions within the range of `1..999999999` that can be performed with this card. If not provided, the card can be used for an unlimited number of transactions until the card expires."
                                  }
                                }
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "We expect the partner to return a HTTP 200 status code if the callback was successfully received. On 4xx and 5xx status codes, we will [retry](/docs/callbacks#retries) the callback."
                  }
                }
              }
            }
          },
          "cardClickToPayInfoChanged": {
            "{$request.body#/callbackUrl}": {
              "post": {
                "parameters": [
                  {
                    "$ref": "#/paths/~1cards~1subscription/post/callbacks/cardReassigned/{$request.body#~1callbackUrl}/post/parameters/0"
                  },
                  {
                    "$ref": "#/paths/~1cards~1subscription/post/callbacks/cardReassigned/{$request.body#~1callbackUrl}/post/parameters/1"
                  },
                  {
                    "$ref": "#/paths/~1cards~1subscription/post/callbacks/cardReassigned/{$request.body#~1callbackUrl}/post/parameters/2"
                  },
                  {
                    "$ref": "#/paths/~1cards~1subscription/post/callbacks/cardReassigned/{$request.body#~1callbackUrl}/post/parameters/3"
                  },
                  {
                    "$ref": "#/paths/~1cards~1subscription/post/callbacks/cardReassigned/{$request.body#~1callbackUrl}/post/parameters/4"
                  }
                ],
                "requestBody": {
                  "description": "This callback object is used for the following event types: `CARD_CLICK_TO_PAY_INFO_CHANGED`.",
                  "content": {
                    "application/json": {
                      "schema": {
                        "allOf": [
                          {
                            "$ref": "#/paths/~1cards~1subscription/post/callbacks/cardUpdated/{$request.body#~1callbackUrl}/post/requestBody/content/application~1json/schema/allOf/0"
                          },
                          {
                            "properties": {
                              "cardId": {
                                "type": "string",
                                "format": "uuid",
                                "description": "The unique identifier of the card."
                              },
                              "organizationId": {
                                "type": "string",
                                "format": "uuid",
                                "description": "The unique identifier of the organization."
                              },
                              "cardholderId": {
                                "type": "string",
                                "format": "uuid",
                                "description": "The unique identifier of the cardholder."
                              },
                              "cardAccountId": {
                                "type": "string",
                                "format": "uuid",
                                "description": "The unique identifier of the [card account](/docs/card-account)."
                              },
                              "clickToPayInfo": {
                                "$ref": "#/paths/~1cards/post/responses/200/content/application~1json/schema/properties/clickToPayInfo"
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "We expect the partner to return a HTTP 200 status code if the callback was successfully received. On 4xx and 5xx status codes, we will [retry](/docs/callbacks#retries) the callback."
                  }
                }
              }
            }
          },
          "cardBenefitLoaded": {
            "{$request.body#/callbackUrl}": {
              "post": {
                "parameters": [
                  {
                    "$ref": "#/paths/~1cards~1subscription/post/callbacks/cardReassigned/{$request.body#~1callbackUrl}/post/parameters/0"
                  },
                  {
                    "$ref": "#/paths/~1cards~1subscription/post/callbacks/cardReassigned/{$request.body#~1callbackUrl}/post/parameters/1"
                  },
                  {
                    "$ref": "#/paths/~1cards~1subscription/post/callbacks/cardReassigned/{$request.body#~1callbackUrl}/post/parameters/2"
                  },
                  {
                    "$ref": "#/paths/~1cards~1subscription/post/callbacks/cardReassigned/{$request.body#~1callbackUrl}/post/parameters/3"
                  },
                  {
                    "$ref": "#/paths/~1cards~1subscription/post/callbacks/cardReassigned/{$request.body#~1callbackUrl}/post/parameters/4"
                  }
                ],
                "requestBody": {
                  "description": "This callback object is used for the following event types: `CARD_BENEFIT_LOADED`.",
                  "content": {
                    "application/json": {
                      "schema": {
                        "allOf": [
                          {
                            "$ref": "#/paths/~1cards~1subscription/post/callbacks/cardUpdated/{$request.body#~1callbackUrl}/post/requestBody/content/application~1json/schema/allOf/0"
                          },
                          {
                            "type": "object",
                            "required": [
                              "organizationId",
                              "cardId",
                              "cardAccountId",
                              "loadAmount"
                            ],
                            "properties": {
                              "organizationId": {
                                "type": "string",
                                "format": "uuid",
                                "description": "The ID of the organization.",
                                "example": "54e6e7e7-0c23-4a54-bccb-2d3ff2fd02df"
                              },
                              "cardId": {
                                "type": "string",
                                "format": "uuid",
                                "description": "The ID of the card that was loaded.",
                                "example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
                              },
                              "cardAccountId": {
                                "type": "string",
                                "format": "uuid",
                                "description": "The ID of the card account associated with the card.",
                                "example": "b2c3d4e5-f6a7-8901-bcde-f12345678901"
                              },
                              "loadAmount": {
                                "type": "object",
                                "description": "The amount loaded onto the card.",
                                "properties": {
                                  "value": {
                                    "type": "number",
                                    "description": "The value of the monetary amount, converted to minor units of the currency. For instance 1.00 EUR is 100 cents, thus the value here is `100`. See our [guides](/docs/monetary-values) for more details about how to handle monetary amounts.",
                                    "example": 5000
                                  },
                                  "currency": {
                                    "type": "string",
                                    "description": "The currency of the monetary amount in ISO 4217 format, for example `EUR` for Euro or `USD` for US Dollar.",
                                    "example": "EUR"
                                  }
                                }
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "We expect the partner to return a HTTP 200 status code if the callback was successfully received. On 4xx and 5xx status codes, we will [retry](/docs/callbacks#retries) the callback."
                  }
                }
              }
            }
          },
          "cardBenefitUnloaded": {
            "{$request.body#/callbackUrl}": {
              "post": {
                "parameters": [
                  {
                    "$ref": "#/paths/~1cards~1subscription/post/callbacks/cardReassigned/{$request.body#~1callbackUrl}/post/parameters/0"
                  },
                  {
                    "$ref": "#/paths/~1cards~1subscription/post/callbacks/cardReassigned/{$request.body#~1callbackUrl}/post/parameters/1"
                  },
                  {
                    "$ref": "#/paths/~1cards~1subscription/post/callbacks/cardReassigned/{$request.body#~1callbackUrl}/post/parameters/2"
                  },
                  {
                    "$ref": "#/paths/~1cards~1subscription/post/callbacks/cardReassigned/{$request.body#~1callbackUrl}/post/parameters/3"
                  },
                  {
                    "$ref": "#/paths/~1cards~1subscription/post/callbacks/cardReassigned/{$request.body#~1callbackUrl}/post/parameters/4"
                  }
                ],
                "requestBody": {
                  "description": "This callback object is used for the following event types: `CARD_BENEFIT_UNLOADED`.",
                  "content": {
                    "application/json": {
                      "schema": {
                        "allOf": [
                          {
                            "$ref": "#/paths/~1cards~1subscription/post/callbacks/cardUpdated/{$request.body#~1callbackUrl}/post/requestBody/content/application~1json/schema/allOf/0"
                          },
                          {
                            "type": "object",
                            "required": [
                              "organizationId",
                              "cardId",
                              "cardAccountId",
                              "unloadAmount"
                            ],
                            "properties": {
                              "organizationId": {
                                "type": "string",
                                "format": "uuid",
                                "description": "The ID of the organization.",
                                "example": "54e6e7e7-0c23-4a54-bccb-2d3ff2fd02df"
                              },
                              "cardId": {
                                "type": "string",
                                "format": "uuid",
                                "description": "The ID of the card that was unloaded.",
                                "example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
                              },
                              "cardAccountId": {
                                "type": "string",
                                "format": "uuid",
                                "description": "The ID of the card account associated with the card.",
                                "example": "b2c3d4e5-f6a7-8901-bcde-f12345678901"
                              },
                              "unloadAmount": {
                                "type": "object",
                                "description": "The amount unloaded from the card.",
                                "properties": {
                                  "value": {
                                    "type": "number",
                                    "description": "The value of the monetary amount, converted to minor units of the currency. For instance 1.00 EUR is 100 cents, thus the value here is `100`. See our [guides](/docs/monetary-values) for more details about how to handle monetary amounts.",
                                    "example": 5000
                                  },
                                  "currency": {
                                    "type": "string",
                                    "description": "The currency of the monetary amount in ISO 4217 format, for example `EUR` for Euro or `USD` for US Dollar.",
                                    "example": "EUR"
                                  }
                                }
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "We expect the partner to return a HTTP 200 status code if the callback was successfully received. On 4xx and 5xx status codes, we will [retry](/docs/callbacks#retries) the callback."
                  }
                }
              }
            }
          },
          "cardLimitsChanged": {
            "{$request.body#/callbackUrl}": {
              "post": {
                "parameters": [
                  {
                    "$ref": "#/paths/~1cards~1subscription/post/callbacks/cardReassigned/{$request.body#~1callbackUrl}/post/parameters/0"
                  },
                  {
                    "$ref": "#/paths/~1cards~1subscription/post/callbacks/cardReassigned/{$request.body#~1callbackUrl}/post/parameters/1"
                  },
                  {
                    "$ref": "#/paths/~1cards~1subscription/post/callbacks/cardReassigned/{$request.body#~1callbackUrl}/post/parameters/2"
                  },
                  {
                    "$ref": "#/paths/~1cards~1subscription/post/callbacks/cardReassigned/{$request.body#~1callbackUrl}/post/parameters/3"
                  },
                  {
                    "$ref": "#/paths/~1cards~1subscription/post/callbacks/cardReassigned/{$request.body#~1callbackUrl}/post/parameters/4"
                  }
                ],
                "requestBody": {
                  "description": "This callback object is used for the following event types: `CARD_LIMITS_CHANGED`.\nFired when additional limits are created, updated, or removed on a card. The payload includes the full updated `additionalLimits[]` array and the `cardAccountId`.\n",
                  "content": {
                    "application/json": {
                      "schema": {
                        "allOf": [
                          {
                            "$ref": "#/paths/~1cards~1subscription/post/callbacks/cardUpdated/{$request.body#~1callbackUrl}/post/requestBody/content/application~1json/schema/allOf/0"
                          },
                          {
                            "properties": {
                              "cardId": {
                                "type": "string",
                                "format": "uuid",
                                "description": "The unique identifier of the card whose additional limits changed."
                              },
                              "cardAccountId": {
                                "type": "string",
                                "format": "uuid",
                                "nullable": true,
                                "description": "The unique identifier of the card account this card belongs to."
                              },
                              "organizationId": {
                                "type": "string",
                                "format": "uuid",
                                "description": "The unique identifier of the organization this card belongs to."
                              },
                              "cardholderId": {
                                "type": "string",
                                "format": "uuid",
                                "description": "The unique identifier of the cardholder this card belongs to."
                              },
                              "additionalLimits": {
                                "type": "array",
                                "description": "The full current set of additional limits on the card after the change. An empty array indicates all additional limits were removed.",
                                "items": {
                                  "type": "object",
                                  "description": "An additional limit entry in the CARD_LIMITS_CHANGED callback payload. This shape differs from the GET card response — it includes `limitRenewDate` directly and does not include `balanceInfo`.",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "format": "uuid",
                                      "description": "The unique identifier of this additional limit."
                                    },
                                    "limitRenewFrequency": {
                                      "type": "string",
                                      "nullable": true,
                                      "enum": [
                                        "PER_TRANSACTION",
                                        "DAILY",
                                        "WEEKLY",
                                        "MONTHLY",
                                        "QUARTERLY",
                                        "ANNUAL",
                                        "TOTAL"
                                      ],
                                      "description": "The renewal frequency of this additional limit.\n* `PER_TRANSACTION` - Limit applies to each individual transaction.\n* `DAILY` - The limit is renewed every day.\n* `WEEKLY` - The limit is renewed every week.\n* `MONTHLY` - The limit is renewed every calendar month.\n* `QUARTERLY` - The limit is renewed every calendar quarter.\n* `ANNUAL` - The limit is renewed every year.\n* `TOTAL` - The limit is never renewed.\n"
                                    },
                                    "limitRenewDate": {
                                      "type": "string",
                                      "format": "date",
                                      "nullable": true,
                                      "description": "Date when this additional limit's balance will next be renewed, e.g. `2026-06-01`. Null for `TOTAL` frequency limits."
                                    },
                                    "limit": {
                                      "type": "object",
                                      "nullable": true,
                                      "description": "The monetary cap for this additional limit.",
                                      "properties": {
                                        "value": {
                                          "type": "number",
                                          "description": "The value of the monetary amount, converted to minor units of the currency. For instance 1.00 EUR is 100 cents, thus the value here is `100`. See our [guides](/docs/monetary-values) for more details about how to handle monetary amounts."
                                        },
                                        "currency": {
                                          "type": "string",
                                          "description": "The currency of the monetary amount in ISO 4217 format, for example `EUR` for Euro or `USD` for US Dollar."
                                        }
                                      }
                                    },
                                    "maxTransactionCount": {
                                      "type": "number",
                                      "nullable": true,
                                      "minimum": 1,
                                      "maximum": 999999999,
                                      "description": "Maximum number of transactions allowed under this additional limit within its renewal period. Null if no transaction-count cap is configured."
                                    },
                                    "scope": {
                                      "type": "object",
                                      "nullable": true,
                                      "description": "The scope restriction of this additional limit. Null when no scope is defined.",
                                      "properties": {
                                        "categories": {
                                          "type": "array",
                                          "description": "Merchant category types this limit applies to.",
                                          "items": {
                                            "type": "string",
                                            "enum": [
                                              "ADVERTISING_AND_MARKETING",
                                              "COMPUTING_AND_SOFTWARE",
                                              "EDUCATION_AND_TRAINING",
                                              "ELECTRONICS_AND_IT_EQUIPMENT",
                                              "ENTERTAINMENT_AND_WELLNESS",
                                              "FOOD_AND_DRINKS",
                                              "GIFTS_AND_VOUCHERS",
                                              "HEALTHCARE",
                                              "MATERIALS_AND_PACKAGING",
                                              "OFFICE_SUPPLIES_AND_EQUIPMENT",
                                              "SERVICES",
                                              "TRAVEL_AND_ACCOMMODATION",
                                              "OTHER"
                                            ]
                                          }
                                        },
                                        "acceptanceMethods": {
                                          "type": "array",
                                          "description": "The card acceptance methods this limit applies to.",
                                          "items": {
                                            "type": "string",
                                            "enum": [
                                              "ONLINE",
                                              "MOBILE_WALLET",
                                              "MANUAL_ENTRY",
                                              "CONTACTLESS",
                                              "CHIP_DIP",
                                              "NOT_AVAILABLE",
                                              "MAGNETIC_STRIPE",
                                              "OTHER"
                                            ]
                                          }
                                        },
                                        "atmWithdrawal": {
                                          "type": "boolean",
                                          "description": "When `true`, this additional limit applies to ATM withdrawal transactions."
                                        },
                                        "currency": {
                                          "type": "string",
                                          "nullable": true,
                                          "description": "ISO 4217 currency code this limit is scoped to, e.g. `PLN`. Null when no currency scope is defined."
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "We expect the partner to return a HTTP 200 status code if the callback was successfully received. On 4xx and 5xx status codes, we will [retry](/docs/callbacks#retries) the callback."
                  }
                }
              }
            }
          },
          "cardReassigned": {
            "{$request.body#/callbackUrl}": {
              "post": {
                "parameters": [
                  {
                    "in": "header",
                    "name": "X-Organization-Id",
                    "schema": {
                      "type": "string",
                      "format": "uuid",
                      "description": "Referencing the organization this callback was sent for. See [guides](/docs/callbacks) for more details. Example value: `54e6e7e7-0c23-4a54-bccb-2d3ff2fd02df`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Partner-Organization-Id",
                    "schema": {
                      "type": "string",
                      "description": "Filled, if the value `partnerOrganizationId` is [set](/reference/update-organization) by the partner on the organization itself. Referencing the organization identifier of the partner. Example value: `abc123`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Payment-Program-Id",
                    "schema": {
                      "type": "string",
                      "format": "uuid",
                      "description": "Referencing the payment program this callback was sent for. See [guides](/docs/callbacks) for more details. Example value: `54e6e7e7-0c23-4a54-bccb-2d3ff2fd02df`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Callback-Id",
                    "schema": {
                      "type": "string",
                      "format": "uuid",
                      "description": "A unique identifier for this callback. Can be used to deduplicate callbacks to achieve idempotent behavior. See [guides](/docs/callbacks) for more details. Example value: `12a03093-eaad-4ae5-9d8d-42e7f6f8b7c6`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Callback-Created-At",
                    "schema": {
                      "type": "string",
                      "format": "date-time",
                      "description": "The date and time when the callback was created. Can be used to reorder callbacks. See [guides](/docs/callbacks) for more details. Example value: `2024-03-15T15:55:58.623375258Z`."
                    }
                  }
                ],
                "requestBody": {
                  "description": "This callback object is used for the following event types: `CARD_REASSIGNED`.\nFired once per card when the card is moved from one [card account](/docs/card-account) to another, for example when a card account is superseded by a successor card account.\nThe card itself is unchanged - card number, expiry date, limits and status stay the same - only the card account the card belongs to changes.\nPartners that store a card to card account mapping should update it to `cardAccountId` when receiving this event.\n",
                  "content": {
                    "application/json": {
                      "schema": {
                        "allOf": [
                          {
                            "$ref": "#/paths/~1cards~1subscription/post/callbacks/cardUpdated/{$request.body#~1callbackUrl}/post/requestBody/content/application~1json/schema/allOf/0"
                          },
                          {
                            "properties": {
                              "cardId": {
                                "type": "string",
                                "format": "uuid",
                                "description": "The Pliant card id (UUIDv4) of the card that was reassigned."
                              },
                              "organizationId": {
                                "type": "string",
                                "format": "uuid",
                                "description": "The id (UUIDv4) of the organization this card belongs to."
                              },
                              "previousCardAccountId": {
                                "type": "string",
                                "format": "uuid",
                                "description": "The id of the [card account](/docs/card-account) the card was assigned to before the reassignment. This card account is `SUPERSEDED` from this point on and keeps the history of the card, e.g. its past transactions, statements and account entries."
                              },
                              "cardAccountId": {
                                "type": "string",
                                "format": "uuid",
                                "description": "The id of the [card account](/docs/card-account) the card is assigned to now. This is the successor card account, referenced as `supersededBy` on the previous card account. Balance, limits and bank account information of the card are served from this card account from now on."
                              },
                              "reassignedAt": {
                                "type": "string",
                                "format": "date-time",
                                "description": "The point in time the card was reassigned to the new card account.",
                                "example": "2026-01-01T00:00:00Z"
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "We expect the partner to return a HTTP 200 status code if the callback was successfully received. On 4xx and 5xx status codes, we will [retry](/docs/callbacks#retries) the callback."
                  }
                }
              }
            }
          }
        }
      }
    },
    "/transactions/subscription": {
      "post": {
        "summary": "Callback: Add/Update",
        "description": "> 🔒 **Required scope:** `callbacks.setup:write`\n>\n> The API credential calling this endpoint must be granted the `callbacks.setup` category with `read & write` access.\n> Scopes are assigned to the credential when it is created or edited in Pliant, not requested when obtaining the access token.\n> A credential without this scope receives `403 Forbidden` with the error code `INSUFFICIENT_PERMISSION`.\n\nSubscribe to callbacks for this entity or change an existing callback.\n",
        "x-required-scopes": [
          "callbacks.setup:write"
        ],
        "tags": [
          "Transactions"
        ],
        "operationId": "create-transaction-subscription",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "callbackUrl": {
                    "type": "string",
                    "format": "uri",
                    "example": "https://myserver.com/send/callback/here",
                    "description": "The URL to send the callback to. Must be a valid and reachable URL. We do some basic validation to ensure the URL is syntactically correct and reachable for Pliant. Only HTTPS URLs are supported."
                  },
                  "eventTypes": {
                    "type": "array",
                    "description": "The event types to subscribe to.",
                    "items": {
                      "type": "string",
                      "enum": [
                        "TRANSACTION_CREATED",
                        "TRANSACTION_UPDATED",
                        "TRANSACTION_TYPE_UPDATED",
                        "TRANSACTION_STATUS_CHANGED",
                        "TRANSACTION_AMOUNT_CHANGED",
                        "TRANSACTION_MERCHANT_UPDATED",
                        "TRANSACTION_AUTH_CODE",
                        "TRANSACTION_AUTHORIZED",
                        "TRANSACTION_CONFIRMED",
                        "TRANSACTION_COMMENT_UPDATED",
                        "TRANSACTION_RECEIPT_UPLOAD_ENABLED_UPDATED"
                      ]
                    }
                  }
                },
                "required": [
                  "callbackUrl",
                  "eventTypes"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "500": {
            "description": "Internal Server Error"
          }
        },
        "callbacks": {
          "transactionUpdated": {
            "{$request.body#/callbackUrl}": {
              "description": "Callback structure for transaction creation and changed events (TRANSACTION_CREATED, TRANSACTION_UPDATED, TRANSACTION_TYPE_UPDATED, TRANSACTION_AMOUNT_CHANGED). If you need more detailed data about the transaction, please refer to our [transaction details endpoint](./get-transactions-detail-batch).",
              "post": {
                "parameters": [
                  {
                    "in": "header",
                    "name": "X-Organization-Id",
                    "schema": {
                      "type": "string",
                      "format": "uuid",
                      "description": "Referencing the organization this callback was sent for. See [guides](/docs/callbacks) for more details. Example value: `54e6e7e7-0c23-4a54-bccb-2d3ff2fd02df`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Partner-Organization-Id",
                    "schema": {
                      "type": "string",
                      "description": "Filled, if the value `partnerOrganizationId` is [set](/reference/update-organization) by the partner on the organization itself. Referencing the organization identifier of the partner. Example value: `abc123`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Payment-Program-Id",
                    "schema": {
                      "type": "string",
                      "format": "uuid",
                      "description": "Referencing the payment program this callback was sent for. See [guides](/docs/callbacks) for more details. Example value: `54e6e7e7-0c23-4a54-bccb-2d3ff2fd02df`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Callback-Id",
                    "schema": {
                      "type": "string",
                      "format": "uuid",
                      "description": "A unique identifier for this callback. Can be used to deduplicate callbacks to achieve idempotent behavior. See [guides](/docs/callbacks) for more details. Example value: `12a03093-eaad-4ae5-9d8d-42e7f6f8b7c6`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Callback-Created-At",
                    "schema": {
                      "type": "string",
                      "format": "date-time",
                      "description": "The date and time when the callback was created. Can be used to reorder callbacks. See [guides](/docs/callbacks) for more details. Example value: `2024-03-15T15:55:58.623375258Z`."
                    }
                  }
                ],
                "requestBody": {
                  "content": {
                    "application/json": {
                      "schema": {
                        "allOf": [
                          {
                            "$ref": "#/paths/~1cards~1subscription/post/callbacks/cardUpdated/{$request.body#~1callbackUrl}/post/requestBody/content/application~1json/schema/allOf/0"
                          },
                          {
                            "type": "object",
                            "properties": {
                              "transactionId": {
                                "type": "string",
                                "format": "uuid",
                                "description": "The unique identifier of the transaction."
                              },
                              "organizationId": {
                                "type": "string",
                                "format": "uuid",
                                "description": "The unique identifier of the organization."
                              },
                              "cardholderId": {
                                "type": "string",
                                "format": "uuid",
                                "description": "The unique identifier of the cardholder."
                              },
                              "cardId": {
                                "type": "string",
                                "format": "uuid",
                                "description": "The unique identifier of the credit card used for making the transaction."
                              },
                              "cardAccountId": {
                                "type": "string",
                                "format": "uuid",
                                "description": "The unique identifier of the [card account](/docs/card-account) this transaction belongs to."
                              },
                              "status": {
                                "type": "string",
                                "description": "The status of the transaction.",
                                "enum": [
                                  "DECLINED",
                                  "PENDING",
                                  "REVERSED",
                                  "CONFIRMED",
                                  "BOOKED"
                                ]
                              },
                              "type": {
                                "type": "string",
                                "description": "The type of the transaction.",
                                "enum": [
                                  "PURCHASE",
                                  "CASH_WITHDRAWAL",
                                  "REFUND",
                                  "CHARGEBACK",
                                  "RECHARGE",
                                  "STATUS_INQUIRY"
                                ]
                              },
                              "merchantRawData": {
                                "type": "object",
                                "description": "Raw merchant data as received from the card network, thus the quality of those fields differ greatly between merchants. We do not control the information provided here. More details via the [transaction details endpoint](./get-transactions-detail-batch).",
                                "properties": {
                                  "mcc": {
                                    "type": "string",
                                    "nullable": true,
                                    "description": "The merchant category code (MCC) is a four-digit number assigned to a business by an acquiring bank or institution. The MCC is used to classify the business by the type of goods or services it provides."
                                  },
                                  "merchantCountry": {
                                    "type": "string",
                                    "nullable": true,
                                    "description": "The country of the merchant, in ISO 3166-1 alpha-3 format.",
                                    "minLength": 3,
                                    "maxLength": 3
                                  },
                                  "merchantName": {
                                    "type": "string",
                                    "nullable": true,
                                    "description": "The name of the merchant as provided by the card network."
                                  }
                                }
                              },
                              "billingAmount": {
                                "type": "object",
                                "description": "The amount that was billed to the cardholder, in the currency of the card account.",
                                "properties": {
                                  "value": {
                                    "type": "number",
                                    "description": "The value of the amount, converted to minor units of the currency. E.g. 1 EUR is 100 cents, thus the value is 100."
                                  },
                                  "currency": {
                                    "type": "string",
                                    "description": "The currency of the amount, in ISO 4217 format. E.g. `EUR` for Euro."
                                  }
                                }
                              },
                              "transactionAmount": {
                                "type": "object",
                                "description": "The amount that was paid to the merchant via this transaction, in the local currency of the merchant.",
                                "properties": {
                                  "value": {
                                    "type": "number",
                                    "description": "The value of the amount, converted to minor units of the currency. E.g. 1 EUR is 100 cents, thus the value is 100."
                                  },
                                  "currency": {
                                    "type": "string",
                                    "description": "The currency of the amount, in ISO 4217 format. E.g. `EUR` for Euro."
                                  }
                                }
                              },
                              "authCode": {
                                "type": "string",
                                "description": "Authorization code used for this transaction.",
                                "nullable": true
                              },
                              "declineReasonType": {
                                "$ref": "#/paths/~1transactions~1{transactionId}/get/responses/200/content/application~1json/schema/properties/declineReason/properties/type"
                              },
                              "createdAt": {
                                "type": "string",
                                "format": "date-time",
                                "nullable": true,
                                "description": "The date and time when the transaction was created in Pliant's system."
                              },
                              "personal": {
                                "type": "boolean",
                                "nullable": true,
                                "description": "Indicates the transaction was done for personal purpose."
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "We expect the partner to return a HTTP 200 status code if the callback was successfully received. On 4xx and 5xx status codes, we will [retry](/docs/callbacks#retries) the callback."
                  }
                }
              }
            }
          },
          "transactionStatusChanged": {
            "{$request.body#/callbackUrl}": {
              "description": "Callback structure for transaction status change (TRANSACTION_STATUS_CHANGED) events. This event is fired when the status of a transaction changes. Unlike other transaction events, this callback includes the `bookedAt` field, which is set when the transaction is booked by Pliant against the internal bank account of the organization. If you need more detailed data about the transaction, please refer to our [transaction details endpoint](./get-transactions-detail-batch).",
              "post": {
                "parameters": [
                  {
                    "in": "header",
                    "name": "X-Organization-Id",
                    "schema": {
                      "type": "string",
                      "format": "uuid",
                      "description": "Referencing the organization this callback was sent for. See [guides](/docs/callbacks) for more details. Example value: `54e6e7e7-0c23-4a54-bccb-2d3ff2fd02df`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Partner-Organization-Id",
                    "schema": {
                      "type": "string",
                      "description": "Filled, if the value `partnerOrganizationId` is [set](/reference/update-organization) by the partner on the organization itself. Referencing the organization identifier of the partner. Example value: `abc123`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Payment-Program-Id",
                    "schema": {
                      "type": "string",
                      "format": "uuid",
                      "description": "Referencing the payment program this callback was sent for. See [guides](/docs/callbacks) for more details. Example value: `54e6e7e7-0c23-4a54-bccb-2d3ff2fd02df`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Callback-Id",
                    "schema": {
                      "type": "string",
                      "format": "uuid",
                      "description": "A unique identifier for this callback. Can be used to deduplicate callbacks to achieve idempotent behavior. See [guides](/docs/callbacks) for more details. Example value: `12a03093-eaad-4ae5-9d8d-42e7f6f8b7c6`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Callback-Created-At",
                    "schema": {
                      "type": "string",
                      "format": "date-time",
                      "description": "The date and time when the callback was created. Can be used to reorder callbacks. See [guides](/docs/callbacks) for more details. Example value: `2024-03-15T15:55:58.623375258Z`."
                    }
                  }
                ],
                "requestBody": {
                  "content": {
                    "application/json": {
                      "schema": {
                        "allOf": [
                          {
                            "$ref": "#/paths/~1cards~1subscription/post/callbacks/cardUpdated/{$request.body#~1callbackUrl}/post/requestBody/content/application~1json/schema/allOf/0"
                          },
                          {
                            "type": "object",
                            "properties": {
                              "transactionId": {
                                "type": "string",
                                "format": "uuid",
                                "description": "The unique identifier of the transaction."
                              },
                              "organizationId": {
                                "type": "string",
                                "format": "uuid",
                                "description": "The unique identifier of the organization."
                              },
                              "cardholderId": {
                                "type": "string",
                                "format": "uuid",
                                "description": "The unique identifier of the cardholder."
                              },
                              "cardId": {
                                "type": "string",
                                "format": "uuid",
                                "description": "The unique identifier of the credit card used for making the transaction."
                              },
                              "cardAccountId": {
                                "type": "string",
                                "format": "uuid",
                                "description": "The unique identifier of the [card account](/docs/card-account) this transaction belongs to."
                              },
                              "status": {
                                "type": "string",
                                "description": "The status of the transaction.",
                                "enum": [
                                  "DECLINED",
                                  "PENDING",
                                  "REVERSED",
                                  "CONFIRMED",
                                  "BOOKED"
                                ]
                              },
                              "type": {
                                "type": "string",
                                "description": "The type of the transaction.",
                                "enum": [
                                  "PURCHASE",
                                  "CASH_WITHDRAWAL",
                                  "REFUND",
                                  "CHARGEBACK",
                                  "RECHARGE",
                                  "STATUS_INQUIRY"
                                ]
                              },
                              "acceptanceMethod": {
                                "$ref": "#/paths/~1transactions~1details/post/responses/200/content/application~1json/schema/properties/data/items/properties/acceptanceMethod"
                              },
                              "merchantRawData": {
                                "type": "object",
                                "description": "Raw merchant data as received from the card network, thus the quality of those fields differ greatly between merchants. We do not control the information provided here. More details via the [transaction details endpoint](./get-transactions-detail-batch).",
                                "properties": {
                                  "mcc": {
                                    "type": "string",
                                    "nullable": true,
                                    "description": "The merchant category code (MCC) is a four-digit number assigned to a business by an acquiring bank or institution. The MCC is used to classify the business by the type of goods or services it provides."
                                  },
                                  "merchantCountry": {
                                    "type": "string",
                                    "nullable": true,
                                    "description": "The country of the merchant, in ISO 3166-1 alpha-3 format.",
                                    "minLength": 3,
                                    "maxLength": 3
                                  },
                                  "merchantName": {
                                    "type": "string",
                                    "nullable": true,
                                    "description": "The name of the merchant as provided by the card network."
                                  }
                                }
                              },
                              "billingAmount": {
                                "type": "object",
                                "description": "The amount that was billed to the cardholder, in the currency of the card account.",
                                "properties": {
                                  "value": {
                                    "type": "number",
                                    "description": "The value of the amount, converted to minor units of the currency. E.g. 1 EUR is 100 cents, thus the value is 100."
                                  },
                                  "currency": {
                                    "type": "string",
                                    "description": "The currency of the amount, in ISO 4217 format. E.g. `EUR` for Euro."
                                  }
                                }
                              },
                              "transactionAmount": {
                                "type": "object",
                                "description": "The amount that was paid to the merchant via this transaction, in the local currency of the merchant.",
                                "properties": {
                                  "value": {
                                    "type": "number",
                                    "description": "The value of the amount, converted to minor units of the currency. E.g. 1 EUR is 100 cents, thus the value is 100."
                                  },
                                  "currency": {
                                    "type": "string",
                                    "description": "The currency of the amount, in ISO 4217 format. E.g. `EUR` for Euro."
                                  }
                                }
                              },
                              "authCode": {
                                "type": "string",
                                "description": "Authorization code used for this transaction.",
                                "nullable": true
                              },
                              "declineReasonType": {
                                "$ref": "#/paths/~1transactions~1{transactionId}/get/responses/200/content/application~1json/schema/properties/declineReason/properties/type"
                              },
                              "createdAt": {
                                "type": "string",
                                "format": "date-time",
                                "nullable": true,
                                "description": "The date and time when the transaction was created in Pliant's system."
                              },
                              "bookedAt": {
                                "type": "string",
                                "format": "date",
                                "nullable": true,
                                "description": "The date this transaction was booked by Pliant against the internal bank account of the organization, e.g. `2023-09-19`. Value is null, until the transaction is booked."
                              },
                              "personal": {
                                "type": "boolean",
                                "nullable": true,
                                "description": "Indicates the transaction was done for personal purpose."
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "We expect the partner to return a HTTP 200 status code if the callback was successfully received. On 4xx and 5xx status codes, we will [retry](/docs/callbacks#retries) the callback."
                  }
                }
              }
            }
          },
          "transactionMerchantUpdated": {
            "{$request.body#/callbackUrl}": {
              "description": "Callback structure for transaction merchant update (TRANSACTION_MERCHANT_UPDATED) events. This event is fired when the merchant of a transaction is updated due to Pliant's internal merchant features. It can also happen if the card network sends more information about the merchant after the transaction was created.",
              "post": {
                "parameters": [
                  {
                    "in": "header",
                    "name": "X-Organization-Id",
                    "schema": {
                      "type": "string",
                      "format": "uuid",
                      "description": "Referencing the organization this callback was sent for. See [guides](/docs/callbacks) for more details. Example value: `54e6e7e7-0c23-4a54-bccb-2d3ff2fd02df`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Partner-Organization-Id",
                    "schema": {
                      "type": "string",
                      "description": "Filled, if the value `partnerOrganizationId` is [set](/reference/update-organization) by the partner on the organization itself. Referencing the organization identifier of the partner. Example value: `abc123`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Payment-Program-Id",
                    "schema": {
                      "type": "string",
                      "format": "uuid",
                      "description": "Referencing the payment program this callback was sent for. See [guides](/docs/callbacks) for more details. Example value: `54e6e7e7-0c23-4a54-bccb-2d3ff2fd02df`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Callback-Id",
                    "schema": {
                      "type": "string",
                      "format": "uuid",
                      "description": "A unique identifier for this callback. Can be used to deduplicate callbacks to achieve idempotent behavior. See [guides](/docs/callbacks) for more details. Example value: `12a03093-eaad-4ae5-9d8d-42e7f6f8b7c6`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Callback-Created-At",
                    "schema": {
                      "type": "string",
                      "format": "date-time",
                      "description": "The date and time when the callback was created. Can be used to reorder callbacks. See [guides](/docs/callbacks) for more details. Example value: `2024-03-15T15:55:58.623375258Z`."
                    }
                  }
                ],
                "requestBody": {
                  "content": {
                    "application/json": {
                      "schema": {
                        "allOf": [
                          {
                            "$ref": "#/paths/~1cards~1subscription/post/callbacks/cardUpdated/{$request.body#~1callbackUrl}/post/requestBody/content/application~1json/schema/allOf/0"
                          },
                          {
                            "type": "object",
                            "properties": {
                              "transactionId": {
                                "type": "string",
                                "format": "uuid",
                                "description": "The unique identifier of the transaction."
                              },
                              "organizationId": {
                                "type": "string",
                                "format": "uuid",
                                "description": "The unique identifier of the organization."
                              },
                              "cardAccountId": {
                                "type": "string",
                                "format": "uuid",
                                "description": "The card account to which this transaction belongs to."
                              },
                              "merchantId": {
                                "type": "string",
                                "format": "uuid",
                                "description": "The unique identifier of the merchant."
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "We expect the partner to return a HTTP 200 status code if the callback was successfully received. On 4xx and 5xx status codes, we will [retry](/docs/callbacks#retries) the callback."
                  }
                }
              }
            }
          },
          "transactionAuthCode": {
            "{$request.body#/callbackUrl}": {
              "description": "Callback structure for transaction auth code (TRANSACTION_AUTH_CODE) events. This event is fired when the authorization code generated by Thredd (Pliant's credit card processor) for approved requests is set or changed.",
              "post": {
                "parameters": [
                  {
                    "in": "header",
                    "name": "X-Organization-Id",
                    "schema": {
                      "type": "string",
                      "format": "uuid",
                      "description": "Referencing the organization this callback was sent for. See [guides](/docs/callbacks) for more details. Example value: `54e6e7e7-0c23-4a54-bccb-2d3ff2fd02df`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Partner-Organization-Id",
                    "schema": {
                      "type": "string",
                      "description": "Filled, if the value `partnerOrganizationId` is [set](/reference/update-organization) by the partner on the organization itself. Referencing the organization identifier of the partner. Example value: `abc123`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Payment-Program-Id",
                    "schema": {
                      "type": "string",
                      "format": "uuid",
                      "description": "Referencing the payment program this callback was sent for. See [guides](/docs/callbacks) for more details. Example value: `54e6e7e7-0c23-4a54-bccb-2d3ff2fd02df`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Callback-Id",
                    "schema": {
                      "type": "string",
                      "format": "uuid",
                      "description": "A unique identifier for this callback. Can be used to deduplicate callbacks to achieve idempotent behavior. See [guides](/docs/callbacks) for more details. Example value: `12a03093-eaad-4ae5-9d8d-42e7f6f8b7c6`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Callback-Created-At",
                    "schema": {
                      "type": "string",
                      "format": "date-time",
                      "description": "The date and time when the callback was created. Can be used to reorder callbacks. See [guides](/docs/callbacks) for more details. Example value: `2024-03-15T15:55:58.623375258Z`."
                    }
                  }
                ],
                "requestBody": {
                  "content": {
                    "application/json": {
                      "schema": {
                        "allOf": [
                          {
                            "$ref": "#/paths/~1cards~1subscription/post/callbacks/cardUpdated/{$request.body#~1callbackUrl}/post/requestBody/content/application~1json/schema/allOf/0"
                          },
                          {
                            "type": "object",
                            "properties": {
                              "transactionId": {
                                "type": "string",
                                "format": "uuid",
                                "description": "The unique identifier of the transaction."
                              },
                              "organizationId": {
                                "type": "string",
                                "format": "uuid",
                                "description": "The unique identifier of the organization."
                              },
                              "cardAccountId": {
                                "type": "string",
                                "format": "uuid",
                                "nullable": true,
                                "description": "The card account to which the transaction's card belongs. Null if it cannot be resolved."
                              },
                              "authCode": {
                                "type": "string",
                                "description": "The authorization code of the transaction."
                              },
                              "createdAt": {
                                "type": "string",
                                "format": "date-time",
                                "nullable": true,
                                "description": "The date and time when the transaction was created."
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "We expect the partner to return a HTTP 200 status code if the callback was successfully received. On 4xx and 5xx status codes, we will [retry](/docs/callbacks#retries) the callback."
                  }
                }
              }
            }
          },
          "transactionAuthorized": {
            "{$request.body#/callbackUrl}": {
              "description": "Callback structure for transaction authorization (TRANSACTION_AUTHORIZED) event. This events are fired when the a transaction is authorized or confirmed.",
              "post": {
                "parameters": [
                  {
                    "in": "header",
                    "name": "X-Organization-Id",
                    "schema": {
                      "type": "string",
                      "format": "uuid",
                      "description": "Referencing the organization this callback was sent for. See [guides](/docs/callbacks) for more details. Example value: `54e6e7e7-0c23-4a54-bccb-2d3ff2fd02df`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Partner-Organization-Id",
                    "schema": {
                      "type": "string",
                      "description": "Filled, if the value `partnerOrganizationId` is [set](/reference/update-organization) by the partner on the organization itself. Referencing the organization identifier of the partner. Example value: `abc123`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Payment-Program-Id",
                    "schema": {
                      "type": "string",
                      "format": "uuid",
                      "description": "Referencing the payment program this callback was sent for. See [guides](/docs/callbacks) for more details. Example value: `54e6e7e7-0c23-4a54-bccb-2d3ff2fd02df`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Callback-Id",
                    "schema": {
                      "type": "string",
                      "format": "uuid",
                      "description": "A unique identifier for this callback. Can be used to deduplicate callbacks to achieve idempotent behavior. See [guides](/docs/callbacks) for more details. Example value: `12a03093-eaad-4ae5-9d8d-42e7f6f8b7c6`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Callback-Created-At",
                    "schema": {
                      "type": "string",
                      "format": "date-time",
                      "description": "The date and time when the callback was created. Can be used to reorder callbacks. See [guides](/docs/callbacks) for more details. Example value: `2024-03-15T15:55:58.623375258Z`."
                    }
                  }
                ],
                "requestBody": {
                  "$ref": "#/paths/~1transactions~1subscription/post/callbacks/transactionConfirmed/{$request.body#~1callbackUrl}/post/requestBody"
                },
                "responses": {
                  "200": {
                    "description": "We expect the partner to return a HTTP 200 status code if the callback was successfully received. On 4xx and 5xx status codes, we will [retry](/docs/callbacks#retries) the callback."
                  }
                }
              }
            }
          },
          "transactionConfirmed": {
            "{$request.body#/callbackUrl}": {
              "description": "Callback structure for the transaction confirmation (TRANSACTION_CONFIRMED) event. This event fires when the card network confirms a previously authorized transaction. Unlike TRANSACTION_AUTHORIZED, this payload includes the network confirmation timestamp and the merchant's confirmation message.",
              "post": {
                "parameters": [
                  {
                    "in": "header",
                    "name": "X-Organization-Id",
                    "schema": {
                      "type": "string",
                      "format": "uuid",
                      "description": "Referencing the organization this callback was sent for. See [guides](/docs/callbacks) for more details. Example value: `54e6e7e7-0c23-4a54-bccb-2d3ff2fd02df`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Partner-Organization-Id",
                    "schema": {
                      "type": "string",
                      "description": "Filled, if the value `partnerOrganizationId` is [set](/reference/update-organization) by the partner on the organization itself. Referencing the organization identifier of the partner. Example value: `abc123`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Payment-Program-Id",
                    "schema": {
                      "type": "string",
                      "format": "uuid",
                      "description": "Referencing the payment program this callback was sent for. See [guides](/docs/callbacks) for more details. Example value: `54e6e7e7-0c23-4a54-bccb-2d3ff2fd02df`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Callback-Id",
                    "schema": {
                      "type": "string",
                      "format": "uuid",
                      "description": "A unique identifier for this callback. Can be used to deduplicate callbacks to achieve idempotent behavior. See [guides](/docs/callbacks) for more details. Example value: `12a03093-eaad-4ae5-9d8d-42e7f6f8b7c6`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Callback-Created-At",
                    "schema": {
                      "type": "string",
                      "format": "date-time",
                      "description": "The date and time when the callback was created. Can be used to reorder callbacks. See [guides](/docs/callbacks) for more details. Example value: `2024-03-15T15:55:58.623375258Z`."
                    }
                  }
                ],
                "requestBody": {
                  "content": {
                    "application/json": {
                      "schema": {
                        "allOf": [
                          {
                            "$ref": "#/paths/~1cards~1subscription/post/callbacks/cardUpdated/{$request.body#~1callbackUrl}/post/requestBody/content/application~1json/schema/allOf/0"
                          },
                          {
                            "type": "object",
                            "properties": {
                              "transactionId": {
                                "type": "string",
                                "format": "uuid",
                                "description": "The unique ID of the transaction."
                              },
                              "organizationId": {
                                "type": "string",
                                "format": "uuid",
                                "description": "The unique ID of the organization to which this transaction belongs to."
                              },
                              "cardholderId": {
                                "type": "string",
                                "format": "uuid",
                                "description": "The unique ID of the [cardholder](/docs/cardholder-entity) to which this transaction belongs to."
                              },
                              "cardAccountId": {
                                "type": "string",
                                "format": "uuid",
                                "description": "The card account to which this transaction belongs to."
                              },
                              "card": {
                                "type": "object",
                                "description": "Details about the card used for this transaction.",
                                "properties": {
                                  "cardId": {
                                    "type": "string",
                                    "format": "uuid",
                                    "description": "The unique ID of the card to which this transaction belongs to."
                                  },
                                  "label": {
                                    "type": "string",
                                    "description": "A short text describing the card. Available only for virtual cards with a `cardConfig` containing `VIRTUAL` or `TRAVEL`. The maximum length is 40 characters.",
                                    "maxLength": 40,
                                    "nullable": true
                                  },
                                  "purpose": {
                                    "type": "string",
                                    "description": "A short text describing the card. Available only for virtual cards with a `cardConfig` containing `SINGLE_USE`, the maximum length is 40 characters.",
                                    "maxLength": 40,
                                    "nullable": true
                                  },
                                  "customFirstName": {
                                    "type": "string",
                                    "description": "Optional first name on `TRAVEL` cards which is used on the card, instead of the regular [cardholder](/docs/cardholder-entity) name. If empty, the regular [cardholder](/docs/cardholder-entity) name is used.",
                                    "nullable": true
                                  },
                                  "customLastName": {
                                    "type": "string",
                                    "description": "Optional last name on `TRAVEL` cards which is used on the card, instead of the regular [cardholder](/docs/cardholder-entity) name. If empty, the regular [cardholder](/docs/cardholder-entity) name is used.",
                                    "nullable": true
                                  }
                                }
                              },
                              "customFields": {
                                "type": "array",
                                "nullable": true,
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "format": "uuid",
                                      "description": "The id of the custom field used on this transaction."
                                    },
                                    "label": {
                                      "type": "string",
                                      "description": "The label of the custom field on this transaction."
                                    },
                                    "value": {
                                      "type": "string",
                                      "description": "The value of the custom field on this transaction."
                                    }
                                  }
                                }
                              },
                              "type": {
                                "type": "string",
                                "description": "The type of the transaction. For TRANSACTION_CONFIRMED the type STATUS_INQUIRY will not occur.",
                                "enum": [
                                  "PURCHASE",
                                  "CASH_WITHDRAWAL",
                                  "REFUND",
                                  "CHARGEBACK",
                                  "RECHARGE",
                                  "STATUS_INQUIRY"
                                ]
                              },
                              "acceptanceMethod": {
                                "$ref": "#/paths/~1transactions~1details/post/responses/200/content/application~1json/schema/properties/data/items/properties/acceptanceMethod"
                              },
                              "transactionDate": {
                                "type": "string",
                                "format": "date-time",
                                "description": "The date-time this transaction was authorized by the card network, e.g. `2023-09-15T11:55:34.527552Z`. Can be null in cases of not successful transactions, like a declined one."
                              },
                              "confirmationDate": {
                                "type": "string",
                                "format": "date-time",
                                "nullable": true,
                                "description": "The date-time this transaction was confirmed by the card network, e.g. `2023-09-19T07:24:52.707296Z`. This property is only available in the response of TRANSACTION_CONFIRMED event and not in the response of TRANSACTION_AUTHORIZED event."
                              },
                              "billingAmount": {
                                "type": "object",
                                "description": "The amount that was billed to the cardholder, in the currency of the card account.",
                                "properties": {
                                  "value": {
                                    "type": "number",
                                    "description": "The value of the amount, converted to minor units of the currency. E.g. 1 EUR is 100 cents, thus the value is 100."
                                  },
                                  "currency": {
                                    "type": "string",
                                    "description": "The currency of the amount, in ISO 4217 format. E.g. `EUR` for Euro."
                                  }
                                }
                              },
                              "transactionAmount": {
                                "type": "object",
                                "description": "The amount that was paid to the merchant via this transaction, in the local currency of the merchant.",
                                "properties": {
                                  "value": {
                                    "type": "number",
                                    "description": "The value of the amount, converted to minor units of the currency. E.g. 1 EUR is 100 cents, thus the value is 100."
                                  },
                                  "currency": {
                                    "type": "string",
                                    "description": "The currency of the amount, in ISO 4217 format. E.g. `EUR` for Euro."
                                  }
                                }
                              },
                              "merchantRawData": {
                                "type": "object",
                                "description": "Raw merchant data as received from the card network, thus the quality of those fields differ greatly between merchants. We do not control the information provided here.",
                                "properties": {
                                  "merchantName": {
                                    "type": "string",
                                    "nullable": true,
                                    "description": "The merchant category code (MCC) description is a short description of the MCC."
                                  },
                                  "merchantCountry": {
                                    "type": "string",
                                    "nullable": true,
                                    "description": "The country of the merchant, in ISO 3166-1 alpha-3 format.",
                                    "minLength": 3,
                                    "maxLength": 3
                                  },
                                  "mcc": {
                                    "type": "string",
                                    "nullable": true,
                                    "description": "The merchant category code (MCC) is a four-digit number assigned to a business by an acquiring bank or institution. The MCC is used to classify the business by the type of goods or services it provides."
                                  },
                                  "merchantNameConfirmation": {
                                    "type": "string",
                                    "description": "Confirmation message by the merchant. This property is only available in the response of TRANSACTION_CONFIRMED event and not in the response of TRANSACTION_AUTHORIZED event.",
                                    "nullable": true
                                  }
                                }
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "We expect the partner to return a HTTP 200 status code if the callback was successfully received. On 4xx and 5xx status codes, we will [retry](/docs/callbacks#retries) the callback."
                  }
                }
              }
            }
          },
          "transactionCommentUpdated": {
            "{$request.body#/callbackUrl}": {
              "description": "Callback structure for transaction merchant update (TRANSACTION_COMMENT_UPDATED) events. This event is fired when the `comment` (note) field of transaction is updated.",
              "post": {
                "parameters": [
                  {
                    "in": "header",
                    "name": "X-Organization-Id",
                    "schema": {
                      "type": "string",
                      "format": "uuid",
                      "description": "Referencing the organization this callback was sent for. See [guides](/docs/callbacks) for more details. Example value: `54e6e7e7-0c23-4a54-bccb-2d3ff2fd02df`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Partner-Organization-Id",
                    "schema": {
                      "type": "string",
                      "description": "Filled, if the value `partnerOrganizationId` is [set](/reference/update-organization) by the partner on the organization itself. Referencing the organization identifier of the partner. Example value: `abc123`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Payment-Program-Id",
                    "schema": {
                      "type": "string",
                      "format": "uuid",
                      "description": "Referencing the payment program this callback was sent for. See [guides](/docs/callbacks) for more details. Example value: `54e6e7e7-0c23-4a54-bccb-2d3ff2fd02df`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Callback-Id",
                    "schema": {
                      "type": "string",
                      "format": "uuid",
                      "description": "A unique identifier for this callback. Can be used to deduplicate callbacks to achieve idempotent behavior. See [guides](/docs/callbacks) for more details. Example value: `12a03093-eaad-4ae5-9d8d-42e7f6f8b7c6`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Callback-Created-At",
                    "schema": {
                      "type": "string",
                      "format": "date-time",
                      "description": "The date and time when the callback was created. Can be used to reorder callbacks. See [guides](/docs/callbacks) for more details. Example value: `2024-03-15T15:55:58.623375258Z`."
                    }
                  }
                ],
                "requestBody": {
                  "content": {
                    "application/json": {
                      "schema": {
                        "allOf": [
                          {
                            "$ref": "#/paths/~1cards~1subscription/post/callbacks/cardUpdated/{$request.body#~1callbackUrl}/post/requestBody/content/application~1json/schema/allOf/0"
                          },
                          {
                            "type": "object",
                            "properties": {
                              "transactionId": {
                                "type": "string",
                                "format": "uuid",
                                "description": "The unique ID of the transaction."
                              },
                              "organizationId": {
                                "type": "string",
                                "format": "uuid",
                                "description": "The unique ID of the organization to which this transaction belongs to."
                              },
                              "cardAccountId": {
                                "type": "string",
                                "format": "uuid",
                                "description": "The card account to which this transaction belongs to."
                              },
                              "commentBefore": {
                                "type": "string",
                                "nullable": true,
                                "description": "The comment before the update happened."
                              },
                              "commentAfter": {
                                "type": "string",
                                "nullable": true,
                                "description": "The new comment after the update."
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "We expect the partner to return a HTTP 200 status code if the callback was successfully received. On 4xx and 5xx status codes, we will [retry](/docs/callbacks#retries) the callback."
                  }
                }
              }
            }
          },
          "transactionReceiptUploadEnabledUpdated": {
            "{$request.body#/callbackUrl}": {
              "description": "Callback structure for transaction receiptUploadEnabled update (TRANSACTION_RECEIPT_UPLOAD_ENABLED_UPDATED) events. This event is fired when the `receiptUploadEnabled` field of transaction is updated. On Pliant UI, this value is updatable via the `Receipt Needed` toggle on transaction details modal.",
              "post": {
                "parameters": [
                  {
                    "in": "header",
                    "name": "X-Organization-Id",
                    "schema": {
                      "type": "string",
                      "format": "uuid",
                      "description": "Referencing the organization this callback was sent for. See [guides](/docs/callbacks) for more details. Example value: `54e6e7e7-0c23-4a54-bccb-2d3ff2fd02df`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Partner-Organization-Id",
                    "schema": {
                      "type": "string",
                      "description": "Filled, if the value `partnerOrganizationId` is [set](/reference/update-organization) by the partner on the organization itself. Referencing the organization identifier of the partner. Example value: `abc123`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Payment-Program-Id",
                    "schema": {
                      "type": "string",
                      "format": "uuid",
                      "description": "Referencing the payment program this callback was sent for. See [guides](/docs/callbacks) for more details. Example value: `54e6e7e7-0c23-4a54-bccb-2d3ff2fd02df`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Callback-Id",
                    "schema": {
                      "type": "string",
                      "format": "uuid",
                      "description": "A unique identifier for this callback. Can be used to deduplicate callbacks to achieve idempotent behavior. See [guides](/docs/callbacks) for more details. Example value: `12a03093-eaad-4ae5-9d8d-42e7f6f8b7c6`."
                    }
                  },
                  {
                    "in": "header",
                    "name": "X-Callback-Created-At",
                    "schema": {
                      "type": "string",
                      "format": "date-time",
                      "description": "The date and time when the callback was created. Can be used to reorder callbacks. See [guides](/docs/callbacks) for more details. Example value: `2024-03-15T15:55:58.623375258Z`."
                    }
                  }
                ],
                "requestBody": {
                  "content": {
                    "application/json": {
                      "schema": {
                        "allOf": [
                          {
                            "$ref": "#/paths/~1cards~1subscription/post/callbacks/cardUpdated/{$request.body#~1callbackUrl}/post/requestBody/content/application~1json/schema/allOf/0"
                          },
                          {
                            "type": "object",
                            "properties": {
                              "transactionId": {
                                "type": "string",
                                "format": "uuid",
                                "description": "The unique ID of the transaction."
                              },
                              "organizationId": {
                                "type": "string",
                                "format": "uuid",
                                "description": "The unique ID of the organization to which this transaction belongs to."
                              },
                              "cardAccountId": {
                                "type": "string",
                                "format": "uuid",
                                "description": "The card account to which this transaction belongs to."
                              },
                              "receiptUploadEnabled": {
                                "type": "boolean",
                                "description": "Describes if receipts can be added to the transaction."
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "We expect the partner to return a HTTP 200 status code if the callback was successfully received. On 4xx and 5xx status codes, we will [retry](/docs/callbacks#retries) the callback."
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "This API uses oAuth2 with client credentials flow to [obtain the Bearer Token](/docs/authenticated-api-usage).",
        "bearerFormat": "JWT"
      }
    }
  },
  "security": [
    {
      "bearerAuth": []
    }
  ]
}
````