For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

Requirement: M = Mandatory, O = Optional, and C = Conditional. A conditional field is mandatory only when the condition stated in its description applies.

Request body

Decrypted biz_data fields

Field
Type
Requirement
Description

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

account_type

integer

M

Type of destination bank account. See Account Type for supported values.

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_type

integer

M

Classification of the payee or beneficiary. See Payee Type for supported values.

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

This example includes mandatory fields and representative optional or conditional fields. Submit fields marked C only when the condition in the field description applies.

Request example

Use the partner_id and app_id assigned to your integration. The values above are placeholders.

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

Field
Type
Requirement
Description

beneficiary_id

long

O

Pagsmile-assigned unique identifier of the payment beneficiary.

Related APIs

Last updated

Was this helpful?