Change a Payment Authorization's beneficiary
Changed onChange the beneficiary bank account of a Smart Transfers (PIX_OF_SMART_TRANSFERS) Payment Authorization. Charges that you create after the change are paid to the new bank account. The response is the complete, updated Payment Authorization.
You can only edit a Payment Authorization while its status is AUTHORIZED. Otherwise, you receive a 400 error (The Payment Authorization is not authorized. It cannot be edited.). Payment Authorizations with the PIX_OF_IMMEDIATE or PIX_OF_SCHEDULED payment method cannot be edited.
If the holder name of the new bank account is different from the current one, Belvo also updates the authorization at the payer's institution.
{% admonition type="warning" name="Same holder only" %} The new beneficiary bank account must have the same holder (holder.identifier) as the current beneficiary bank account. Otherwise, the request fails with a 500 error (unexpected_error) and the beneficiary is not changed. You also receive a 500 error if the institution does not accept the update. {% /admonition %}
Request
- Base URLhttps://sandbox.belvo.com
- AuthHTTP basic
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
The payment-authorization.id you want to edit.
Headers
Header indicating which version of the Payment API you want to use. Currently this is only applicable for Bank Accounts, Customers, and Payment Authorizations in Brazil. In the case that you are using our Payment Authorizations product (including Smart Transfers authorizations and their Charges), then you must send through this header set to Payments-BR.V2.
Request body
Example request
{
"beneficiary": {
"type": "BANK_ACCOUNT",
"target": "2c8e4a1f-7b3d-4e9a-9f6c-0d1e2f3a4b5c"
}
}Response
OK - Payment Authorization updated
Example response
{
"id": "9fc68b84-f2d6-4142-b2ad-9d2d1ad70432",
"created_at": "2025-05-20T09:55:02Z",
"updated_at": "2025-05-20T09:55:02Z",
"status": "AWAITING_AUTHORIZATION",
"status_updated_at": "2025-05-20T09:55:02Z",
"authorized_at": "2025-05-20T09:55:02Z",
"external_id": "c169a8a9-e9f5-48db-9f4a-818caef9356b",
"description": "Internal description used by the merchant only",
"return_url": "https://merchant.com/return",
"expiration_date_time": "2027-10-31T23:59:59Z",
"payment_method": "PIX_OF_IMMEDIATE",
"payer": {
"customer": "533e7a9b-e6c7-4bd4-be79-3a3c3bd78044",
"institution": "770932b4-8f1f-4b0f-8470-1c605903fdb2",
"representative_identifier": "12345678901122",
"bank_account": {
"holder": {
"identifier": "***456789**"
},
"details": {
"account_type": "CHECKINGS",
"agency": "0001",
"code": "12345678",
"number": "***4567"
}
}
},
"beneficiary": {
"type": "BANK_ACCOUNT",
"target": "b6278377-f710-4d1a-a026-7bab757256d0"
},
"payment_method_configuration": {
"amount": "10000.05",
"statement_description": "Blue Suede Shoes - Premium",
"authorization_url": "https://auth.belvo.com/authorize?token=abc123def456"
},
"charges": [
"7d159b21-9f25-4365-9fa2-734d20797819"
],
"metadata": {
"internal_reference_id": "GGq73487w2"
}
}Changes
- info
endpoint added
- info