Create Payment
POSTDescription: Endpoint that processes a payment./v1/payments
Request
Header Parameters
The transaction ID is a UUID (v4) used to uniquely identify the object that will be created. All objects must have an identifier.
The nonce ID is a UUID (v4) used to uniquely identify the request. All requests must have an identifier.
Possible values: [pt-BR
, en-US
]
Indicates the preferred language. Defaults to Brazilian Portuguese if unspecified.
The product ID is a UUID (v4) used to identify the Z.ro product configuration.
The product target user ID is a UUID (v4) used to identify what user account this request must be executed. Require: x-product-uuid.
- application/json
Body
required
Possible values: [DEBIT
, CREDIT
]
Payment method used.
Payment amount in cents.
Possible values: [BRL
, USD
]
Three-letter code of the payment currency.
Buyer name.
Buyer email address.
Buyer phone number.
Buyer document.
Possible values: [CPF
, CNPJ
]
Buyer document type.
Number of installments for the payment.
payment_card object
Card number.
Card CVV.
Card holder name.
Card expiry date in MM-YYYY format.
buyer_address object
User address zip code.
User address street.
User address number.
User address neighborhood.
User address neighborhood.
User address federative unit.
User address country.
User address complement.
Responses
- 200
- 400
- 401
- 422
Payment created successfully.
- application/json
- Schema
- Example (from schema)
Schema
Payment ID.
Possible values: [PENDING
, AUTHORIZED
, REVERTED
, CANCELLED
, SETTLED
]
Payment status.
Payment creation date.
Payment update date.
{
"id": "b28163ec-3d28-4786-a154-7a28ab3600a6",
"status": "AUTHORIZED",
"created_at": "2025-06-09T21:03:58.071Z",
"updated_at": "2025-06-09T21:03:58.071Z"
}
If any required params are missing or has invalid format or type.
User authentication failed.
If any required params are missing or has invalid format or type.