Skip to main content
POST
Set the Refund Account
When a fiat-to-crypto or global-payment order is reversed or refunded, VelaFi needs to know where to send the funds. Use this endpoint to designate any previously validated beneficiary as the refund account for a given merchant. Each merchant may have one active refund account at a time — calling this endpoint again with a different userPaymentId replaces the previous designation.

Endpoint

Use https://api-test.velafi.com/v2/payments/refund_account for sandbox testing.

Request Headers

Request Body Parameters

integer
required
The unique numeric ID of the beneficiary to designate as the refund account. The beneficiary must have status: 1 (valid).
integer
required
The numeric ID of the merchant for which to set the refund account.

Response Fields

integer
Response status code. 200 indicates success.
string
Human-readable response message.
boolean
true if the refund account was successfully designated.

Example

After setting a refund account, the corresponding beneficiary’s hasRefundAccount field will return 1 in GET /v2/payments responses.