---
updatedAt: 2026-04-21T09:29:18.000Z
agentTools:
  projectIndex: https://partner.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 Partner API",
    "description": "Pliant Partner 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": "Card Accounts",
      "description": "This tag is for operations related to card accounts"
    }
  ],
  "paths": {
    "/card-accounts/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": [
          "Card Accounts"
        ],
        "operationId": "create-card-account-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": [
                        "CARD_ACCOUNT_ADDED",
                        "CARD_ACCOUNT_STATUS_CHANGED",
                        "CARD_ACCOUNT_DETAILS_CHANGED",
                        "CARD_ACCOUNT_BALANCE_CHANGED",
                        "CARD_ACCOUNT_LIMIT_CHANGED",
                        "CARD_ACCOUNT_TRANSFER_COMPLETED",
                        "CARD_ACCOUNT_TRANSFER_FAILED",
                        "CARD_ACCOUNT_BLOCKED",
                        "CARD_ACCOUNT_UNBLOCKED"
                      ]
                    }
                  }
                },
                "required": [
                  "callbackUrl",
                  "eventTypes"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "500": {
            "description": "Internal Server Error"
          }
        },
        "callbacks": {
          "cardAccountUpdated": {
            "{$request.body#/callbackUrl}": {
              "post": {
                "description": "Callback structure for card account events (`CARD_ACCOUNT_ADDED`, `CARD_ACCOUNT_STATUS_CHANGED`, `CARD_ACCOUNT_DETAILS_CHANGED`, `CARD_ACCOUNT_BALANCE_CHANGED`, `CARD_ACCOUNT_LIMIT_CHANGED`, `CARD_ACCOUNT_BLOCKED`, `CARD_ACCOUNT_UNBLOCKED`). `CARD_ACCOUNT_BLOCKED` and `CARD_ACCOUNT_UNBLOCKED` are sent when Pliant blocks or unblocks the card account; card transactions on a blocked card account are declined. Blocked and unblocked callbacks are not guaranteed to arrive in order, so the last change is not necessarily the last callback you receive.",
                "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": {
                  "required": true,
                  "content": {
                    "application/json": {
                      "schema": {
                        "type": "object",
                        "required": [
                          "eventType"
                        ],
                        "properties": {
                          "eventType": {
                            "type": "string",
                            "description": "The type of event.",
                            "enum": [
                              "CARD_ACCOUNT_ADDED",
                              "CARD_ACCOUNT_STATUS_CHANGED",
                              "CARD_ACCOUNT_DETAILS_CHANGED",
                              "CARD_ACCOUNT_BALANCE_CHANGED",
                              "CARD_ACCOUNT_LIMIT_CHANGED",
                              "CARD_ACCOUNT_BLOCKED",
                              "CARD_ACCOUNT_UNBLOCKED"
                            ]
                          },
                          "organizationId": {
                            "type": "string",
                            "format": "uuid",
                            "description": "The id of the organization."
                          },
                          "cardAccountId": {
                            "type": "string",
                            "format": "uuid",
                            "description": "The id of the card account."
                          },
                          "name": {
                            "type": "string",
                            "description": "The name of the card account."
                          },
                          "status": {
                            "type": "string",
                            "description": "The status of the card account. Potential values are `ACTIVE`, `PENDING`, `DEACTIVATED`, `CANCELLED`, `SUPERSEDED`. A change to `SUPERSEDED` is delivered as a `CARD_ACCOUNT_STATUS_CHANGED` event and carries `supersededBy` and `supersededAt`.",
                            "enum": [
                              "ACTIVE",
                              "PENDING",
                              "DEACTIVATED",
                              "CANCELLED",
                              "SUPERSEDED"
                            ]
                          },
                          "supersededBy": {
                            "type": "string",
                            "format": "uuid",
                            "nullable": true,
                            "description": "The id of the card account that took over from this one. Only set if `status` is `SUPERSEDED`, `null` otherwise. Follow this id to find the card account that holds the current balance, limits and bank account information."
                          },
                          "supersedes": {
                            "type": "string",
                            "format": "uuid",
                            "nullable": true,
                            "description": "The id of the card account this one took over from. Only set if this card account is the successor of a superseded card account, `null` otherwise."
                          },
                          "supersededAt": {
                            "type": "string",
                            "format": "date-time",
                            "nullable": true,
                            "description": "The date and time when this card account was superseded. Only set together with `supersededBy`, `null` otherwise."
                          },
                          "defaultAccount": {
                            "type": "boolean",
                            "description": "Indicates whether this is the default card account. There is always one active default card account."
                          },
                          "bankAccountInformation": {
                            "type": "array",
                            "description": "The bank account information of the card account. This is the bank account where the balance of the card account is kept. This bank account is also used for adding top-up payments to the card account, if it is a prefund or hybrid card account. One card account can have multiple bank accounts. Non-active organizations might not have bank account information.",
                            "items": {
                              "type": "object",
                              "properties": {
                                "transferType": {
                                  "type": "string",
                                  "description": "Flag that indicates which payment rail the processing account is configured for.\n  - `SWIFT` - transfers routed through the SWIFT network.\n  - `LOCAL` - domestic rails such as UK's Faster Payments.\nDepending on this flag, other fields are set or not, e.g. `bic` and `iban` for `SWIFT`, `sortCode` and `accountNumber` for `LOCAL` in case of UK Faster Payments.\nThe field might be `null` or empty, in which case `SWIFT` should be assumed.\n"
                                },
                                "beneficiary": {
                                  "type": "string",
                                  "description": "The beneficiary of the bank account. This is the name of the account holder."
                                },
                                "bankName": {
                                  "type": "string",
                                  "description": "The name of the bank of the bank account."
                                },
                                "bic": {
                                  "type": "string",
                                  "description": "The BIC of the bank account. This is the bank identifier code. For backward compatibility reasons this field is never `null`, but depending on `transferType` it can be empty. In future iterations it will become optional."
                                },
                                "iban": {
                                  "type": "string",
                                  "description": "The IBAN of the bank account. This is the international bank account number. For backward compatibility reasons this field is never `null`, but depending on `transferType` it can be empty. In future iterations it will become optional."
                                },
                                "sortCode": {
                                  "type": "string",
                                  "description": "Bank identifier that accompanies the beneficiary account. Only set for certain `transferType` values, e.g. UK Faster Payments."
                                },
                                "accountNumber": {
                                  "type": "string",
                                  "description": "Account identifier for the beneficiary account. Only set for certain `transferType` values, e.g. UK Faster Payments."
                                }
                              }
                            }
                          },
                          "creditLimit": {
                            "type": "object",
                            "nullable": true,
                            "description": "The credit limit of the card account. The credit limit is the maximum amount of money that can be spent with all cards of this card account. It is always less or equal to the overall credit limit of the organization. Meaning all card accounts share the same organization credit limit. This organization credit limit can be distributed among the card accounts. Only relevant for `CREDIT`-based card accounts.",
                            "properties": {
                              "value": {
                                "type": "number"
                              },
                              "currency": {
                                "type": "string"
                              }
                            }
                          },
                          "availableLimit": {
                            "type": "object",
                            "nullable": true,
                            "description": "The remaining available credit limit of the card account. The available credit limit is the maximum amount of money that can be spent with all cards of this card account. For `PREFUNDED` card accounts, the available credit limit is the remaining balance of the card account.",
                            "properties": {
                              "value": {
                                "type": "number"
                              },
                              "currency": {
                                "type": "string"
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "Ok"
                  }
                }
              }
            }
          },
          "cardAccountTransferFinished": {
            "{$request.body#/callbackUrl}": {
              "post": {
                "description": "Callback structure for card account transfer events (`CARD_ACCOUNT_TRANSFER_COMPLETED`, `CARD_ACCOUNT_TRANSFER_FAILED`). Sent once a [transfer between two card accounts](/reference/create-card-account-transfer) reaches a final status.",
                "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": {
                  "required": true,
                  "content": {
                    "application/json": {
                      "schema": {
                        "type": "object",
                        "required": [
                          "eventType",
                          "internalTransferId",
                          "sourceCardAccountId",
                          "targetCardAccountId",
                          "organizationId",
                          "status",
                          "createdAt"
                        ],
                        "properties": {
                          "eventType": {
                            "type": "string",
                            "description": "The type of event.",
                            "enum": [
                              "CARD_ACCOUNT_TRANSFER_COMPLETED",
                              "CARD_ACCOUNT_TRANSFER_FAILED"
                            ]
                          },
                          "internalTransferId": {
                            "type": "string",
                            "format": "uuid",
                            "description": "The id of the transfer, as returned when the transfer was requested."
                          },
                          "sourceCardAccountId": {
                            "type": "string",
                            "format": "uuid",
                            "description": "The id of the source card account of the transfer. It is debited only if the transfer completes."
                          },
                          "targetCardAccountId": {
                            "type": "string",
                            "format": "uuid",
                            "description": "The id of the target card account of the transfer. It is credited only if the transfer completes."
                          },
                          "organizationId": {
                            "type": "string",
                            "format": "uuid",
                            "description": "The id of the organization."
                          },
                          "amount": {
                            "type": "object",
                            "nullable": true,
                            "description": "The amount to be credited to the target card account. Credited only if the transfer completes.",
                            "required": [
                              "value",
                              "currency"
                            ],
                            "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`."
                              },
                              "currency": {
                                "type": "string",
                                "description": "The currency of the monetary amount in ISO 4217 format, for example `EUR`."
                              }
                            }
                          },
                          "status": {
                            "type": "string",
                            "description": "The final status of the transfer. Always `COMPLETED` for `CARD_ACCOUNT_TRANSFER_COMPLETED` and `FAILED` for `CARD_ACCOUNT_TRANSFER_FAILED`.",
                            "enum": [
                              "COMPLETED",
                              "FAILED"
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "description": "The date and time when the transfer was created."
                          }
                        }
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "Ok"
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "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": []
    }
  ]
}
```