Skip to main content

Pay-Out · Brazil

TOPPAY TeamAbout 3 min

Request

The Pay-Out API initiates disbursement transactions. This page is for Brazil (country code br). Pay-out uses PIX; mapping of bankCode / bankCard / accountName / taxNumber is in Regional Payment Guide — Brazil. In addition to generic checks, Brazil pay-out enforces PIX, amount, and tax-number rules as described below and in the regional guide.

Request URL

Domain: Prefer unified host openapi.toppayment.com (path unchanged); legacy country domain (e.g. global-br-openapi.toppayment.com) remains available.

EnvironmentURL
Sandboxhttps://openapi.toppayment.com/sandbox/br/disbursement/cash
Productionhttps://openapi.toppayment.com/br/disbursement/cash

PIX types (bankCode), bankCard (PIX key), and taxNumberRegional Payment Guide — Brazil.

Request Header

FieldRequiredTypeDescription
Content-TypeMStringapplication/json

Request Body

FieldRequiredTypeDescription
mchNoMString(32)Merchant number
orderNumMString(50)Merchant order number
amountMNumber(32,8)Amount
Brazil: positive, integer or at most 2 decimal places, not all zeros, no three or more decimal places.
accountNameMString(50)Beneficiary name (business field name)
Max 50; Unicode letters, digits, spaces only.
bankCodeMString(32)PIX key type (business field pixType)
Must be CPF, CNPJ, PHONE, EMAIL, or EVP (case-insensitive) — Regional Payment Guide — Brazil.
bankCardMString(50)PIX account / key (business field pixAccount)
Rules depend on bankCode: CPF/CNPJ → 11/14 digits after stripping non-digits; PHONE → +55 + 10–11 digits after removing spaces; EMAIL → valid email; EVP → 32 alphanumeric. See regional guide.
taxNumberOString(64)Optional tax ID
If present, after stripping non-digits must be 11 (CPF) or 14 (CNPJ) digits.
descriptionOString(255)Description
feeTypeMNumberFee type
0: Deducted from order amount (net = amount − fee)
1: Fee separate (net = amount)
downNotifyUrlMString(164)Callback URL
timestampMStringTimestamp (13 digits)
signMStringSee Signature

Request Body Example (CPF PIX; adjust bankCode / bankCard to your key type)

Content-type: application/json

Response

HTTP Response

FieldRequiredTypeDescription
Content-TypeMStringapplication/json

Response Body Parameters

FieldRequiredTypeDescription
successMBooleanRequest success
codeMString9999 = success; otherwise resolve via status codes before treating as final failure
msgOStringMessage
timeStampMNumberServer time (ms)
dataMObjectPayload
orderNumMStringMerchant order number
platOrderNumMStringPlatform order number
amountMNumberAmount
feeMNumberFee
feeTypeMNumberFee type
statusMNumberStatus — Transaction Status Codes
statusMsgMStringStatus message
bankCodeMStringPIX type — Regional Payment Guide — Brazil
bankCardMStringPIX key (masked or echoed)
accountNameMStringAccount name
descriptionOStringDescription
Content-type: application/json

Notification

HTTP Request

FieldRequiredTypeDescription
Content-TypeMStringHTTP request content type
Fixed value: application/json
Indicates JSON request format

Notification Body

FieldRequiredTypeDescription
platOrderNumMStringPlatform order number
System-generated internal transaction reference
Used for internal transaction management and support
versionMStringVersion
API version identifier
Example: v1
orderNumMStringMerchant order number
Same as orderNum in the original request
Used for transaction identification and verification
amountMNumberTransaction amount
Confirmed transaction amount
feeMNumberFee
Fee charged for the transaction
feeTypeMNumberFee type
1: Merchant bears the fee
statusMNumberTransaction status
See Transaction Status Codes
statusMsgMStringStatus message
Human-readable order status description
bankCodeMStringPIX type
See Regional Payment Guide — Brazil
bankCardMStringPIX account/key
accountNameMStringAccount name
descriptionOStringDescription
signMStringSignature
Digital signature of callback data

Response

Important response

Notification response: Return only the string SUCCESS to acknowledge receipt of the notification

{
    "platOrderNum": "TRANS2008812168572567552",
    "version": "v1",
    "orderNum": "BRPAYOUT12345648",
    "amount": 111.00,
    "fee": 3,
    "feeType": 1,
    "status": 2,
    "statusMsg": "supplement success!",
    "bankCode": "CPF",
    "bankCard": "52998224725",
    "accountName": "Maria Silva",
    "description": "test",
    "sign": "…"
}