/checkout/charges creates the same Checkout Sessions as
/checkout/sessions ad-hoc, but the listing is filtered to show only Sessions without a linkId —
keeping the dashboard clean for direct-sale flows. It also provides a dedicated cancellation endpoint.
The examples use the sandbox: API at
https://checkout-api.sandbox.z2pay.com and page at
https://pay.sandbox.z2pay.com. In production, use https://checkout-api.z2pay.com and
https://pay.z2pay.com. Requests use the x-api-key header — see
Authentication.Endpoints
| Method | Route | Description |
|---|---|---|
GET | /checkout/charges | List quick sales (ad-hoc Sessions) |
POST | /checkout/charges | Create a quick ad-hoc sale |
GET | /checkout/charges/{id} | Fetch a quick sale by ID |
POST | /checkout/charges/{id}/cancel | Cancel a quick sale |
Create a charge
POST /checkout/sessions in ad-hoc form — same schema for
items, paymentMethods, branding, splits, customer, etc. Returns 201 with the created Session and
a url ready to send. Supports idempotency via the Idempotency-Key header.
The response is a
CheckoutSession (with linkId: null) and the url to share through your channel.List charges
linkId) for the tenant.
Filter by status (CSV). Values:
created, opened, paying, partially_paid, paid, failed,
expired, canceled.Search by Session ID or customer (name, email, document).
Page number (≥ 1).
Items per page (1–100).
Fetch a charge by ID
GET /checkout/sessions/{id} — returns the
full view of the ad-hoc Session.
200 (found) · 404 (not found).
Cancel a charge
canceled status. Allowed only if the current status is created, opened, or
failed. Returns 200. Supports idempotency.
200 (canceled) · 404 (not found) · 409 (session_not_cancellable —
current status does not allow cancellation, e.g. paid).
Example: recurring individual invoice
Common scenario: sending a monthly boleto invoice with a pre-filled customer and a long expiration window.10080 min). Send the url returned by your channel (email, WhatsApp).
See also
Checkout Sessions
The resource underneath Charges: states, schema, and listing.
Checkout Links
For mass distribution, a Link is the better fit.
Buyer (public page)
What happens when the buyer opens the
url.Errors
Error format and checkout domain codes.

