API
Checking Raims account

Prepare a scenario

Choose a pending or failed result for the next issuance or cancellation in the Sandbox.

POSThttps://api.raims.com/v1/simulations/charges/{id}/scenario

Prepares the result of Pix or boleto issuance, or of cancellation. After this request, perform the corresponding action on the same charge.

For action: cancellation, use an open Sandbox charge with Pix or boleto payment instructions already issued. If payment instructions are not yet available, issue them before preparing the scenario. Then use Revoke a charge. Do not confirm payment in this flow.

Sandbox only

Use a Sandbox key or an OAuth connection with Sandbox access. The scenario does not move real money or change Production charges.

See the 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.

Action to test: pix_issuance for Pix issuance, boleto_issuance for boleto issuance, or cancellation for cancellation. For cancellation, keep the charge open with Pix or boleto already issued, without confirming payment.

1 to 32 characters

pix_issuance

Action result: pending keeps confirmation open; failed shows a failure.

1 to 16 characters

pending

Responses

For common errors, see HTTP response codes.