Issue a test payment
Issue Pix or boleto payment instructions for an existing Sandbox charge.
Requests Pix or boleto issuance for a test charge. When a scenario has been prepared for this issuance, the request returns the selected pending or failed result.
Sandbox only
Use a Sandbox key or an OAuth connection with Sandbox access. Issuing payment instructions does not confirm that the charge has been paid.
See the conditions and test sequence in Pending or failed issuance and cancellation.
Path Params
Public identifier of the charge created in your company Sandbox.
Up to 100 characters
Headers
Unique key chosen by your system to identify this request. When retrying, send the same key and parameters. Without this header, the request is processed normally. See the idempotency guide for retention and handling pending or uncertain responses.
1 to 255 characters
Body Params
Applying an example replaces the body fields.
Payment method to issue: 1 for Pix or 2 for boleto. It must be enabled on the charge.
From 1 to 2
Responses
Response Body
Current charge details after the issuance attempt. Check pix_status or boleto_status: the response may show available issuance or a confirmed failure. Issuance does not confirm payment.
Public charge identifier.
Public identifier of the linked customer.
Charge amount in Brazilian real cents.
Charge payment method: 0 undefined, 1 Pix, 2 boleto, 3 credit card and 4 debit card. The value 0 may change to 1 or 2 when Pix or boleto is generated in checkout. Checkout selection appears separately in checkout_payment_method.
Payment method reported by checkout: 0 undefined, 1 Pix, 2 boleto, 3 credit card and 4 debit card. null when this information is not yet available. Selecting an option on screen does not confirm payment generation or that the charge was paid.
Charge due date in Unix UTC seconds.
Charge title, or null when not provided.
Charge description, or null when not provided.
Charge status, accounting for the due date. 0 created, 1 awaiting payment, 2 authorized, 3 processing, 4 paid, 5 partially refunded, 6 refunded, 7 canceled, 8 expired, 9 failed, 10 chargeback, 11 chargeback under review, 12 chargeback lost and 13 chargeback won.
Creation time in Unix UTC seconds.
Link for the payer to open checkout, or null when no link is available.
Indicates whether the charge can be paid. Pix or boleto data may still be missing in payment_information; check status to track payment.
Payment instructions and Pix or boleto issuance result. pix and boleto are null when data is unavailable.
Pix payment data, or null when unavailable.
Pix copy-and-paste code to pay the charge.
Pix code expiration in Unix UTC seconds.
Base64 PNG image of the QR Code without a data URI prefix. To display it in a browser, add data:image/png;base64, before the value.
Boleto payment data, or null when unavailable.
47-digit payment line of the issued boleto.
44-digit barcode of the issued boleto.
Boleto due date in Unix UTC seconds.
Pix issuance result: not_generated when no issuance is available or requested; available when data is available; pending while there is no confirmed result; failed when issuance was unsuccessful.
Reason for pending or failed Pix issuance, or null. Store the charge ID and use the individual lookup to track it. If the condition persists, contact support; do not repeat creation to try to issue Pix.
Stable error code.
Error explanation in English. For validation errors, it summarizes the category; details identify the corrections. Use the codes to handle the response.
Invalid fields or references submitted in the body, with the field, code and explanation. Omitted for general errors and when there is no field correction to indicate.
Public name of the JSON field, query parameter, path parameter or header related to the error. Nested fields and lists retain their path and index. $ represents the root of the JSON body.
Reason for the field error, such as REQUIRED, INVALID_TAXID, UNKNOWN_FIELD, DUPLICATE_FIELD or INVALID_TYPE.
Explanation in English of the problem with this field or parameter and the available correction. Do not use the text to determine your integration flow.
Boleto issuance result: not_generated when no issuance is available or requested; available when data is available; pending while there is no confirmed result; failed when issuance was unsuccessful.
Reason for pending or failed boleto issuance, or null. Store the charge ID and use the individual lookup to track it. If the condition persists, contact support; do not repeat creation to try to issue the boleto.
Stable error code.
Error explanation in English. For validation errors, it summarizes the category; details identify the corrections. Use the codes to handle the response.
Invalid fields or references submitted in the body, with the field, code and explanation. Omitted for general errors and when there is no field correction to indicate.
Public name of the JSON field, query parameter, path parameter or header related to the error. Nested fields and lists retain their path and index. $ represents the root of the JSON body.
Reason for the field error, such as REQUIRED, INVALID_TAXID, UNKNOWN_FIELD, DUPLICATE_FIELD or INVALID_TYPE.
Explanation in English of the problem with this field or parameter and the available correction. Do not use the text to determine your integration flow.
Boleto payment progress: awaiting_payment awaits payment, compensated awaits settlement and settled confirms settlement. Null when no progress data is available. Clearing does not yet mean available credit.
List of payment methods configured for the charge, or null when it uses the inherited checkout configuration. 1 means Pix and 2 means boleto. The list does not change with the method used for payment and does not represent current checkout availability.
Order or charge reference in your system, or null when not provided. It is separate from the customer reference and can be repeated on other charges.
Integration data associated with the resource. Returns {} when there are no values. This map is not used as a search filter or automatically included in webhook events.
Response Body
Issuance pending. Query the same charge and use Resolve a pending scenario to set the test result.
Public charge identifier.
Public identifier of the linked customer.
Charge amount in Brazilian real cents.
Charge payment method: 0 undefined, 1 Pix, 2 boleto, 3 credit card and 4 debit card. The value 0 may change to 1 or 2 when Pix or boleto is generated in checkout. Checkout selection appears separately in checkout_payment_method.
Payment method reported by checkout: 0 undefined, 1 Pix, 2 boleto, 3 credit card and 4 debit card. null when this information is not yet available. Selecting an option on screen does not confirm payment generation or that the charge was paid.
Charge due date in Unix UTC seconds.
Charge title, or null when not provided.
Charge description, or null when not provided.
Charge status, accounting for the due date. 0 created, 1 awaiting payment, 2 authorized, 3 processing, 4 paid, 5 partially refunded, 6 refunded, 7 canceled, 8 expired, 9 failed, 10 chargeback, 11 chargeback under review, 12 chargeback lost and 13 chargeback won.
Creation time in Unix UTC seconds.
Link for the payer to open checkout, or null when no link is available.
Indicates whether the charge can be paid. Pix or boleto data may still be missing in payment_information; check status to track payment.
Payment instructions and Pix or boleto issuance result. pix and boleto are null when data is unavailable.
Pix payment data, or null when unavailable.
Pix copy-and-paste code to pay the charge.
Pix code expiration in Unix UTC seconds.
Base64 PNG image of the QR Code without a data URI prefix. To display it in a browser, add data:image/png;base64, before the value.
Boleto payment data, or null when unavailable.
47-digit payment line of the issued boleto.
44-digit barcode of the issued boleto.
Boleto due date in Unix UTC seconds.
Pix issuance result: not_generated when no issuance is available or requested; available when data is available; pending while there is no confirmed result; failed when issuance was unsuccessful.
Reason for pending or failed Pix issuance, or null. Store the charge ID and use the individual lookup to track it. If the condition persists, contact support; do not repeat creation to try to issue Pix.
Stable error code.
Error explanation in English. For validation errors, it summarizes the category; details identify the corrections. Use the codes to handle the response.
Invalid fields or references submitted in the body, with the field, code and explanation. Omitted for general errors and when there is no field correction to indicate.
Public name of the JSON field, query parameter, path parameter or header related to the error. Nested fields and lists retain their path and index. $ represents the root of the JSON body.
Reason for the field error, such as REQUIRED, INVALID_TAXID, UNKNOWN_FIELD, DUPLICATE_FIELD or INVALID_TYPE.
Explanation in English of the problem with this field or parameter and the available correction. Do not use the text to determine your integration flow.
Boleto issuance result: not_generated when no issuance is available or requested; available when data is available; pending while there is no confirmed result; failed when issuance was unsuccessful.
Reason for pending or failed boleto issuance, or null. Store the charge ID and use the individual lookup to track it. If the condition persists, contact support; do not repeat creation to try to issue the boleto.
Stable error code.
Error explanation in English. For validation errors, it summarizes the category; details identify the corrections. Use the codes to handle the response.
Invalid fields or references submitted in the body, with the field, code and explanation. Omitted for general errors and when there is no field correction to indicate.
Public name of the JSON field, query parameter, path parameter or header related to the error. Nested fields and lists retain their path and index. $ represents the root of the JSON body.
Reason for the field error, such as REQUIRED, INVALID_TAXID, UNKNOWN_FIELD, DUPLICATE_FIELD or INVALID_TYPE.
Explanation in English of the problem with this field or parameter and the available correction. Do not use the text to determine your integration flow.
Boleto payment progress: awaiting_payment awaits payment, compensated awaits settlement and settled confirms settlement. Null when no progress data is available. Clearing does not yet mean available credit.
List of payment methods configured for the charge, or null when it uses the inherited checkout configuration. 1 means Pix and 2 means boleto. The list does not change with the method used for payment and does not represent current checkout availability.
Order or charge reference in your system, or null when not provided. It is separate from the customer reference and can be repeated on other charges.
Integration data associated with the resource. Returns {} when there are no values. This map is not used as a search filter or automatically included in webhook events.
Response Body
The identifier or payment method is invalid or not enabled. Check the fields indicated in error.details.
Code and explanation of the error returned by the API.
Stable error code.
Error explanation in English. For validation errors, it summarizes the category; details identify the corrections. Use the codes to handle the response.
Invalid fields or references submitted in the body, with the field, code and explanation. Omitted for general errors and when there is no field correction to indicate.
Public name of the JSON field, query parameter, path parameter or header related to the error. Nested fields and lists retain their path and index. $ represents the root of the JSON body.
Reason for the field error, such as REQUIRED, INVALID_TAXID, UNKNOWN_FIELD, DUPLICATE_FIELD or INVALID_TYPE.
Explanation in English of the problem with this field or parameter and the available correction. Do not use the text to determine your integration flow.
Response Body
The simulation accepts only Sandbox, using an API key or OAuth authorization for that environment.
Code and explanation of the error returned by the API.
Stable error code.
Error explanation in English. For validation errors, it summarizes the category; details identify the corrections. Use the codes to handle the response.
Invalid fields or references submitted in the body, with the field, code and explanation. Omitted for general errors and when there is no field correction to indicate.
Public name of the JSON field, query parameter, path parameter or header related to the error. Nested fields and lists retain their path and index. $ represents the root of the JSON body.
Reason for the field error, such as REQUIRED, INVALID_TAXID, UNKNOWN_FIELD, DUPLICATE_FIELD or INVALID_TYPE.
Explanation in English of the problem with this field or parameter and the available correction. Do not use the text to determine your integration flow.
Response Body
The charge was not found in the company Sandbox. IDs from another company or from Production receive the same response.
Code and explanation of the error returned by the API.
Stable error code.
Error explanation in English. For validation errors, it summarizes the category; details identify the corrections. Use the codes to handle the response.
Invalid fields or references submitted in the body, with the field, code and explanation. Omitted for general errors and when there is no field correction to indicate.
Public name of the JSON field, query parameter, path parameter or header related to the error. Nested fields and lists retain their path and index. $ represents the root of the JSON body.
Reason for the field error, such as REQUIRED, INVALID_TAXID, UNKNOWN_FIELD, DUPLICATE_FIELD or INVALID_TYPE.
Explanation in English of the problem with this field or parameter and the available correction. Do not use the text to determine your integration flow.
Response Body
The charge does not allow this issuance. Check its status, due date, payment method and customer details before trying again.
Code and explanation of the error returned by the API.
Stable error code.
Error explanation in English. For validation errors, it summarizes the category; details identify the corrections. Use the codes to handle the response.
Invalid fields or references submitted in the body, with the field, code and explanation. Omitted for general errors and when there is no field correction to indicate.
Public name of the JSON field, query parameter, path parameter or header related to the error. Nested fields and lists retain their path and index. $ represents the root of the JSON body.
Reason for the field error, such as REQUIRED, INVALID_TAXID, UNKNOWN_FIELD, DUPLICATE_FIELD or INVALID_TYPE.
Explanation in English of the problem with this field or parameter and the available correction. Do not use the text to determine your integration flow.
For common errors, see HTTP response codes.