---
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": "Beneficiaries",
      "description": "This tag is for operations related to beneficiaries"
    }
  ],
  "paths": {
    "/beneficiaries/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": [
          "Beneficiaries"
        ],
        "operationId": "create-beneficiary-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": [
                        "BENEFICIARY_CREATED",
                        "BENEFICIARY_UPDATED",
                        "BENEFICIARY_ACTIVATION_CHANGED",
                        "BENEFICIARY_PAYMENT_DETAILS_CREATED",
                        "BENEFICIARY_PAYMENT_DETAILS_UPDATED"
                      ]
                    }
                  }
                },
                "required": [
                  "callbackUrl",
                  "eventTypes"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "500": {
            "description": "Internal Server Error"
          }
        },
        "callbacks": {
          "beneficiaryCreated": {
            "{$request.body#/callbackUrl}": {
              "description": "Callback structure for beneficiary creation (BENEFICIARY_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": {
                  "$ref": "#/components/requestBodies/BeneficiaryCreatedCallback"
                },
                "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."
                  }
                }
              }
            }
          },
          "beneficiaryUpdated": {
            "{$request.body#/callbackUrl}": {
              "description": "Callback structure for beneficiary updates (BENEFICIARY_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": {
                  "$ref": "#/components/requestBodies/BeneficiaryUpdatedCallback"
                },
                "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."
                  }
                }
              }
            }
          },
          "beneficiaryActivationChanged": {
            "{$request.body#/callbackUrl}": {
              "description": "Callback structure for beneficiary activation changes (BENEFICIARY_ACTIVATION_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": {
                  "$ref": "#/components/requestBodies/BeneficiaryActivationChangedCallback"
                },
                "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."
                  }
                }
              }
            }
          },
          "beneficiaryPaymentDetailsCreated": {
            "{$request.body#/callbackUrl}": {
              "description": "Callback structure for beneficiary payment details creation (BENEFICIARY_PAYMENT_DETAILS_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": {
                  "$ref": "#/components/requestBodies/BeneficiaryPaymentDetailsCreatedCallback"
                },
                "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."
                  }
                }
              }
            }
          },
          "beneficiaryPaymentDetailsUpdated": {
            "{$request.body#/callbackUrl}": {
              "description": "Callback structure for beneficiary payment details updates (BENEFICIARY_PAYMENT_DETAILS_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": {
                  "$ref": "#/components/requestBodies/BeneficiaryPaymentDetailsUpdatedCallback"
                },
                "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"
      }
    },
    "schemas": {
      "BeneficiaryCallback": {
        "type": "object",
        "properties": {
          "beneficiaryId": {
            "type": "string",
            "format": "uuid",
            "description": "The unique identifier of the beneficiary."
          },
          "organizationId": {
            "type": "string",
            "format": "uuid",
            "description": "The organization to which the beneficiary belongs."
          },
          "type": {
            "type": "string",
            "enum": [
              "BUSINESS",
              "INDIVIDUAL"
            ],
            "description": "The type of the beneficiary. It can be one of the following values:\n- `BUSINESS`: A business entity beneficiary.\n- `INDIVIDUAL`: An individual person beneficiary.\n"
          },
          "legalName": {
            "type": "string",
            "description": "The legal name of the beneficiary."
          },
          "displayName": {
            "type": "string",
            "description": "The display name of the beneficiary."
          },
          "email": {
            "type": "string",
            "format": "email",
            "description": "The email address of the beneficiary."
          },
          "street": {
            "type": "string",
            "description": "The street address of the beneficiary."
          },
          "postalCode": {
            "type": "string",
            "description": "The postal code of the beneficiary's address."
          },
          "city": {
            "type": "string",
            "description": "The city of the beneficiary's address."
          },
          "region": {
            "type": "string",
            "description": "The region or state of the beneficiary's address."
          },
          "country": {
            "type": "string",
            "description": "The country of the beneficiary's address in ISO 3166-1 alpha-2 format (e.g., `DE` for Germany, `US` for United States)."
          },
          "active": {
            "type": "boolean",
            "description": "Whether the beneficiary is active and can be used for transfers."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "The date and time when the beneficiary was created."
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "The date and time when the beneficiary was last updated."
          }
        }
      },
      "BeneficiaryPaymentDetail": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "The unique identifier of the beneficiary payment detail."
          },
          "bankCountry": {
            "type": "string",
            "description": "The country where the bank is located in ISO 3166-1 alpha-2 format (e.g., `DE` for Germany, `US` for United States)."
          },
          "bankAccountCurrency": {
            "type": "string",
            "description": "The currency of the bank account in ISO 4217 format. For `EUR`, `SEK`, `DKK`, `AED`, `CZK`, `HUF`, `NOK`, `PLN`, `RON` accounts, `accountDetail` must include `iban` and `bic`. For `GBP` and `USD` accounts, see `accountDetail`: local account details for `GB` and `US` banks, otherwise `iban` and `bic`.\n"
          },
          "bankAccountType": {
            "type": "string",
            "enum": [
              "LOCAL",
              "INTERNATIONAL"
            ],
            "description": "The type of bank account. The type can only be set when it makes sense in the `bankCountry` - currently only in `GB`. It will be ignored for other countries.\n\nIt can be one of the following values:\n- `LOCAL`: A local bank account within the same country.\n- `INTERNATIONAL`: An international bank account for cross-border transfers.\n",
            "nullable": true
          },
          "accountDetail": {
            "$ref": "#/components/schemas/AccountDetail"
          }
        }
      },
      "AccountDetail": {
        "type": "object",
        "description": "The account details. Which properties are required depends on the `bankAccountCurrency`, `bankCountry`, and the identifiers provided:\n\n* `bankAccountCurrency` is one of `EUR`, `SEK`, `DKK`, `AED`, `CZK`, `HUF`, `NOK`, `PLN`, `RON` → `iban` & `bic`\n* `bankAccountCurrency` is `GBP`:\n  * `bankCountry` is `GB` and `sortCode` provided → `accountNumber` & `sortCode`\n  * otherwise → `iban` & `bic`\n* `bankAccountCurrency` is `USD`:\n  * `bankCountry` is `US` and `routingNumber` provided → `accountNumber` & `routingNumber`\n  * otherwise → `iban` & `bic`\n\nOther currencies are not supported. In the future other rules may apply.\n\n`iban` cannot be combined with `accountNumber`, `sortCode`, or `routingNumber`. `sortCode` and `routingNumber` cannot both be provided.\n",
        "properties": {
          "accountHolderName": {
            "type": "string",
            "description": "The full name of the account holder."
          },
          "bankName": {
            "type": "string",
            "description": "The name of the bank where the account is held."
          },
          "iban": {
            "type": "string",
            "description": "The International Bank Account Number (IBAN) for the account. Used primarily for European bank accounts.",
            "nullable": true
          },
          "bic": {
            "type": "string",
            "description": "The Bank Identifier Code (BIC) or SWIFT code for the bank. Used for international transfers.",
            "nullable": true
          },
          "accountNumber": {
            "type": "string",
            "description": "The local bank account number. Used for UK local GBP accounts (8 digits, together with `sortCode`) and US local USD accounts (together with `routingNumber`).",
            "nullable": true
          },
          "sortCode": {
            "type": "string",
            "description": "The 6-digit sort code of the bank account. Used for UK local GBP accounts (together with `accountNumber`). Not used for US routing numbers.",
            "nullable": true
          },
          "routingNumber": {
            "type": "string",
            "description": "The 9-digit ABA routing number of the bank. It must pass the ABA checksum. Used for US local USD accounts (together with `accountNumber`). Cannot be combined with `iban` or `sortCode`.",
            "nullable": true
          }
        },
        "required": [
          "accountHolderName",
          "bankName"
        ]
      },
      "Event": {
        "type": "object",
        "properties": {
          "eventType": {
            "type": "string",
            "description": "The type of event."
          }
        }
      }
    },
    "requestBodies": {
      "BeneficiaryCreatedCallback": {
        "content": {
          "application/json": {
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/Event"
                },
                {
                  "$ref": "#/components/schemas/BeneficiaryCallback"
                }
              ]
            }
          }
        }
      },
      "BeneficiaryUpdatedCallback": {
        "content": {
          "application/json": {
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/Event"
                },
                {
                  "$ref": "#/components/schemas/BeneficiaryCallback"
                }
              ]
            }
          }
        }
      },
      "BeneficiaryActivationChangedCallback": {
        "content": {
          "application/json": {
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/Event"
                },
                {
                  "$ref": "#/components/schemas/BeneficiaryCallback"
                }
              ]
            }
          }
        }
      },
      "BeneficiaryPaymentDetailsCreatedCallback": {
        "content": {
          "application/json": {
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/Event"
                },
                {
                  "$ref": "#/components/schemas/BeneficiaryPaymentDetail"
                }
              ]
            }
          }
        }
      },
      "BeneficiaryPaymentDetailsUpdatedCallback": {
        "content": {
          "application/json": {
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/Event"
                },
                {
                  "$ref": "#/components/schemas/BeneficiaryPaymentDetail"
                }
              ]
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "bearerAuth": []
    }
  ]
}
```