Skip to Content
BrazilPayinCreate Pay-in (Brazil PIX)

Create Pay-in (Brazil PIX)

POST/v1/br/payinspayin:create

Create a PIX pay-in. You may send an optional Idempotency-Key header to safely retry the same request.

Request fields

FieldTypeRequiredDescription
amountstring (numeric)YesPay-in amount in BRL, 2 decimal places. 10.0015000.00.
paymentMethodCodestringYes"PIX" (default).
returnUrlstring (HTTPS URL)YesWhere the customer returns after payment. Forwarded to the provider.
customerobjectYesCustomer info
customer.namestringYesCustomer name
customer.emailstringYesCustomer email
customer.phonestringYesCustomer phone (e.g. +5511999999999)
customer.deviceIdstringYesDevice id
goodsInfoobjectYesProduct / order info
goodsInfo.namestringYesProduct or order name
goodsInfo.idstringNoProduct or order id
goodsInfo.pricestringNoProduct price

Example

{ "amount": "100.00", "paymentMethodCode": "PIX", "returnUrl": "https://merchant.example.com/checkout/return", "customer": { "name": "Ana Souza", "email": "ana@example.com", "phone": "+5511999999999", "deviceId": "dev-123" }, "goodsInfo": { "name": "Order #4821" } }

Response fields

FieldTypeDescription
transactionIdstringTransaction identifier — use for status polling and support
statusstringUsually pending until the customer pays
amountstringRequested pay-in amount in BRL
currencystringBRL
platformOrderIdstringProvider-side order reference (support / escalation)
paymentInfoobjectWhat you show the payer
paymentInfo.contentstringPIX payload — copy-and-paste code, URL, HTML, or JSON depending on type
paymentInfo.typestringurl, code, html, or json — how to render content
paymentInfo.expiredTimestringProvider-side expiry (often YYYYMMDDHHmmss)
expiresAtstring (ISO datetime)When this pay-in session expires
feesobjectTransacty service fee for this pay-in
fees.platformFeestringFee amount charged for the service
fees.feeTypestringpayin
fees.feeStatusstringestimated at create; applied on success
netAmountstringEstimated BRL credited after platformFee
totalWalletDebitstring | nullnull on pay-in create

Customer checkout: render paymentInfo according to type. For PIX, type: "code" means show the copy-and-paste string and/or generate a QR from it. Money is not credited until the pay-in confirms — treat pending as awaiting payment.

Next steps

Last updated on