Skip to content

Create Collection

WARNING

Important: name + phone + email + amount are used to identify distinct customers. Follow these notes to avoid incorrect risk-control decisions.

  1. Do not hard-code name, phone, and email together
  2. Use the same name + phone + email for the same customer

Endpoint

POST /cashin/bra/order/create

Request Headers

NameRequiredExampleDescription
Content-TypeYesapplication/json
langNoenResponse language: zh Chinese, en English, pt Portuguese

Request Parameters

FieldTypeRequiredDescription
bankCodestring enumYesCollection method code — PIX
amountnumberYesOrder amount — 20~49999; unit BRL; up to 2 decimal places (rounded). Trailing zeros after the decimal are omitted in the pre-sign string for float amounts
notifyUrlstringYesNotification callback URL — Sandbox supports automatic callbacks: odd last digit of phone → success; even → failure
namestringYesPayer name — More realistic values improve payout success rate. Concatenate First Name and Last Name
phonestringYesCustomer phone — More realistic values improve success rate and reduce risk flags; Brazilian numbers start with +55
emailstringYesCustomer email — More realistic values improve success rate and reduce risk-control flags
signstringYesSignature
appIdstringYesMerchant appId — appId assigned by the platform
mchOrderNostringYesMerchant order number
mchIdintegerYesMerchant ID
timestampintegerYesCurrent timestamp — Unix timestamp in seconds
txChannelstringYesTransaction channel — Fixed value: TX_BAR_001
productInfostringYesProduct information — Chinese characters are strictly prohibited
returnUrlstringNoCheckout redirect URL
taxNumberstringNoTax number — Tax ID: CPF for individuals, CNPJ for companies. Must be real and valid
versionstringYesVersion (fixed value) — API version, fixed value: 3.0

Request Example

json
{
 "mchId": 10404,
 "txChannel": "TX_BAR_001",
 "appId": "tt4KdQglLU5wiB7Fjg",
 "timestamp": 16624500121,
 "mchOrderNo": "order_20220918010",
 "bankCode": "PIX",
 "amount": "5",
 "version": "3.0",
 "name": "GSY",
 "phone": "18688984423",
 "email": "gssdyohqr@chvro.cy",
 "notifyUrl": "https://go-pay-test.targeted.work/callback/echo",
 "returnUrl": "http://test.sj/reutrun",
 "productInfo": "product info",
 "taxNumber": "47929001230",
 "sign": "xxxxxxxxx"
}

Response Parameters

FieldTypeRequiredDescription
statusintegerYesStatus
msgstringYesMessage
dataobjectYesData
data.applyTimeintegerYesApplication time — Timestamp format
data.amountnumberYesActual paid amount
data.linkstringYesPayment link
data.expireTimeintegerYesExpiration time — Timestamp format
data.mchOrderNostringYesMerchant order number
data.platOrderNostringYesPlatform order number
data.referencestringYesReference code — Merchants can generate a payment QR code from this value
data.helpMessagestringYesHelp message

Response Example

json
{
 "status": 200,
 "msg": null,
 "data": {
 "mchOrderNo": "order_1662112944",
 "platOrderNo": "P5nosqyWAQsQZNtYa5OW",
 "applyTime": 1662112986,
 "amount": 1200,
 "reference": "00020101021226840023br.gov.bcb.pix2563qr.iugu.com/public/payload/v2/68A08B21C34E43B398137645AC2BF5E7520400015313986540520.005802BR5912AAAAABB LTDA6009SAO PAULO62070503***63046D60",
 "link": "http://47.88.18.111:8032/?param=RjUzRUVBMTNBMTUwNUQwMURFMkQwNDc4RkI3OTM1Q0Q4OEJEQzhFN0VBMkNEMTQ0NzJEOTlBRjU2NDFFMDBGOQ==",
 "expireTime": 1662199387,
 "helpMessage": null
 }
}

Transafe Developer Documentation