Payments
Create a payment
Create a new payment. Supports PIX, direct credit card charges for headless single-method CARD flows, hosted card checkout, and boleto. Requires an idempotency key.
post/v1/payments
Headers
X-Idempotency-Keystring required
A unique string to ensure the request is processed only once. Must be unique per request. Valid for 24 hours.
Request body
Response
Payment created.
Example response
{
"payment": {
"methodData": {
"type": "CARD",
"captureType": "DIRECT",
"cardSubtype": "CREDIT",
"brand": "VISA",
"last4Digits": "1111",
"installments": 1
}
}
}