Update an external account
const url = 'https://acme.mykreezalid.com/api/v1/payment-gateways/external-accounts/1/1';const options = { method: 'PATCH', headers: {Authorization: 'Basic <credentials>', 'Content-Type': 'application/json'}, body: '{"type":"supplier","gateway_id":432349,"external_account_id":"acc_123456","properties":{"preference":"static"},"tos_acceptance":{"date":"2026-10-13 09:41:05","user_agent":"Mozilla/5.0","ip":"203.0.113.7"}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://acme.mykreezalid.com/api/v1/payment-gateways/external-accounts/1/1 \ --header 'Authorization: Basic <credentials>' \ --header 'Content-Type: application/json' \ --data '{ "type": "supplier", "gateway_id": 432349, "external_account_id": "acc_123456", "properties": { "preference": "static" }, "tos_acceptance": { "date": "2026-10-13 09:41:05", "user_agent": "Mozilla/5.0", "ip": "203.0.113.7" } }'Updates the fields you send and leaves the others unchanged. Fields you do not list here are ignored.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”ID of the user
ID of the external account
Request Bodyrequired
Section titled “Request Bodyrequired”object
supplier for a vendor, customer for a customer
Example
supplierIdentifier of the payment gateway (see GET /payment-gateways)
Example
432349Identifier of the user’s account at the payment provider
Example
acc_123456Your own data about the account
object
Example
{ "preference": "static"}object
Example
2026-10-13 09:41:05Example
Mozilla/5.0Example
203.0.113.7Responses
Section titled “Responses”The updated external account
The account of one of your users at a payment gateway.
object
Number of results across all pages.
Number of the page returned, starting at 1.
Whether a next page exists.
Whether a previous page exists.
Number of results on this page.
Number of pages.
Identifier of the external account
Returned when you create or update an account, not in the list
Role of the account: supplier for a vendor, customer for a customer
Identifier of the payment gateway
Identifier of the account at the payment provider
Your own data about the account
object
When and from where the user accepted the payment provider’s terms
object
Example
{ "totalResultsCount": 137, "currentPage": 1, "resultOnPageCount": 25, "pageCount": 6, "id": 4242, "object": "ExternalAccount", "type": "supplier", "gateway_id": 432349, "external_account_id": "acc_123456", "properties": { "preference": "static" }, "tos_acceptance": { "ip": "203.0.113.7" }}The user has no external account with this identifier, or it could not be saved.
Error body returned when the API refuses a request.
object
HTTP status code, repeated in the body.
Example
{ "code": 400, "status": "error", "message": "Some parameters are not correct"}