Create Beneficiary
Creates a reusable payment beneficiary and validates the destination account details required by the selected payment route.
Endpoint
POST /remittance/payment/create-beneficiary
Sandbox base URL: https://rem-api-sandbox.pagsmile.com
Content-Type: application/json; charset=UTF-8
The request uses the standard Remittance API request envelope. The fields below describe the decrypted biz_data object.
Encrypt biz_data, encrypt the AES key into random_key, and sign the request according to the Common request specification.
Request body
Decrypted biz_data fields
merchant_id
long
M
Pagsmile-assigned unique identifier of the merchant.
bank_country
string
M
Two-letter ISO 3166-1 alpha-2 code of the country where the bank account is held.
receive_currency
string
M
Three-letter ISO 4217 code of the currency credited to the recipient.
payment_type
integer
M
Payment route used to deliver funds to the recipient. See Payment Type for supported values.
payment_rail
string
M
Payment rail used to route the beneficiary payment.
Supported values:
DEFAULT
SPI_PIX
SPI_ISPB
is_withdrawal_beneficiary
boolean
M
Indicates whether the beneficiary can be used for withdrawal orders.
Default: false.
account_name
string
O
Name registered on the account.
payee_values
object
M
Country- and payment-route-specific beneficiary account details.
remark
string
O
Optional note supplied by the merchant for operational review and reconciliation.
Plaintext biz_data example
Request example
Response
The data field in the response envelope is AES-encrypted. Decrypt random_key with your RSA private key, then use the resulting AES key to decrypt data. See Security for implementation details.
Encrypted response example
Decrypted data example
Response data fields
beneficiary_id
long
O
Pagsmile-assigned unique identifier of the payment beneficiary.
Related APIs
Last updated
Was this helpful?