Skip to main content
POST
Add a payment method to a beneficiary. The structure of the payment_data object varies by payment method type — retrieve the required fields for a specific payout method from the payout methods endpoint.
Requires an Idempotency-Key header.

Payment data examples

Authorizations

X-Api-Key
string
header
required

Your API key (yativo_pk_...) from Developers → API Keys. Send together with X-Api-Secret.

X-Api-Secret
string
header
required

Your API secret (yativo_sk_...), shown once when the key is created.

Headers

Idempotency-Key
string
required

A unique string per request to ensure idempotent processing.

Body

application/json
gateway_id
integer
required

The ID of the payout method (gateway) to use. Obtain available IDs from the payout methods endpoint.

payment_data
object
required

Key/value pairs of account details required for this payment method. The fields vary depending on the selected gateway_id.

currency
string
required

Currency code for this payment method (e.g. CLP, MXN, BRL).

Example:

"CLP"

nickname
string
required

A label to identify this payment method.

beneficiary_id
string

The ID of the beneficiary to link this payment method to.

Response

200 - application/json

Payment method added

status
string
data
object