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.
Headers
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
}
}
}Changes
Changed in 6 of the 13 revisions of this API.51716
- ▲
the
errorresponse's property type/format changed fromobject/tostring/for status409response-property-type-changed
- ●
removed the optional property
error/codefrom the response with the409statusresponse-optional-property-removed
- ●
removed the optional property
error/detailsfrom the response with the409statusresponse-optional-property-removed
- ●
removed the optional property
error/messagefrom the response with the409statusresponse-optional-property-removed
- ○
added the optional property
codeto the response with the409statusresponse-optional-property-added
- ○
added the optional property
messageto the response with the409statusresponse-optional-property-added
- ○
added the optional property
statusCodeto the response with the409statusresponse-optional-property-added
- ▲
- ○
added the new optional request property
boletonew-optional-request-property
- ○
the
expiresInMinutesrequest property's max was increased from1440.00to10080.00request-property-max-increased
- ○
- ○
added the new optional request property
enforcePayerDocumentnew-optional-request-property
- ○
- ○
added the new optional request property
passFeeToPayernew-optional-request-property
- ○
added the optional property
payment/oneOf[HeadlessPaymentCreateResponse]/feePassedToPayerto the response with the201statusresponse-optional-property-added
- ○
added the optional property
payment/oneOf[HeadlessPaymentCreateResponse]/isSandboxto the response with the201statusresponse-optional-property-added
- ○
added the optional property
payment/oneOf[HeadlessPaymentCreateResponse]/payerFeeAmountto the response with the201statusresponse-optional-property-added
- ○
added the optional property
payment/oneOf[HostedPaymentCreateResponse]/feePassedToPayerto the response with the201statusresponse-optional-property-added
- ○
added the optional property
payment/oneOf[HostedPaymentCreateResponse]/payerFeeAmountto the response with the201statusresponse-optional-property-added
- ○
- ▲
removed the enum value
CRYPTO_LTCof the request propertymethods/items/request-property-enum-value-removed
- ▲
removed the enum value
LTCof the request propertycurrencyrequest-property-enum-value-removed
- ▲
added
HeadlessPaymentCreateResponseHostedPaymentCreateResponseto thepaymentresponse propertyoneOflist for the response status201response-property-one-of-added
- ▲
the
paymentresponse's property type/format changed fromobject/to/for status201response-property-type-changed
- ●
removed the request property
splitrequest-property-removed
- ●
removed the optional property
payment/amountfrom the response with the201statusresponse-optional-property-removed
- ●
removed the optional property
payment/createdAtfrom the response with the201statusresponse-optional-property-removed
- ●
removed the optional property
payment/currencyfrom the response with the201statusresponse-optional-property-removed
- ●
removed the optional property
payment/descriptionfrom the response with the201statusresponse-optional-property-removed
- ●
removed the optional property
payment/expiresAtfrom the response with the201statusresponse-optional-property-removed
- ●
removed the optional property
payment/feeAmountfrom the response with the201statusresponse-optional-property-removed
- ●
removed the optional property
payment/idfrom the response with the201statusresponse-optional-property-removed
- ●
removed the optional property
payment/metadatafrom the response with the201statusresponse-optional-property-removed
- ●
removed the optional property
payment/methodDatafrom the response with the201statusresponse-optional-property-removed
- ●
removed the optional property
payment/netAmountfrom the response with the201statusresponse-optional-property-removed
- ●
removed the optional property
payment/paymentMethodfrom the response with the201statusresponse-optional-property-removed
- ●
removed the optional property
payment/statusfrom the response with the201statusresponse-optional-property-removed
- ●
removed the optional property
payment/txIdfrom the response with the201statusresponse-optional-property-removed
- ○
added the new optional request property
cardnew-optional-request-property
- ○
added the new optional request property
customer/phonenew-optional-request-property
- ○
the response property
paymentbecame required for the status201response-property-became-required
- ▲
- ○
endpoint added
endpoint-added
This revision also has 8 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○