Create a checkout
Creates a charge with a hosted payment page. Default rail (payment_method: "pix"): a PIX QR the payer pays in any bank app. Alternative rail (payment_method: "depix"): the payer sends DePix wallet-to-wallet on Liquid to the merchant's dedicated address — no PIX QR, no payer document, an optional merchant discount, and settlement observed on-chain (approved at the first confirmation, completed at the second). Requires scope merchant_write on the API-key path; a merchant profile is required. sk_test_ creates a sandbox checkout (non-payable placeholder payload — complete it via simulate-payment). Track via GET /api/checkouts/{id} polling or checkout.* webhooks. Supports Idempotency-Key.
Request
- Base URL: https://api.depixapp.com
- URL: https://api.depixapp.com/api/checkouts
- Auth: HTTP bearer
Headers
Optional idempotency key (1–255 visible ASCII chars). Retrying with the same key and the SAME body replays the stored response (marked with the Idempotency-Replayed: true header) with zero new side effects; the same key with a DIFFERENT body is rejected with 422 idempotency_key_reuse; a concurrent duplicate gets 409 idempotency_in_flight. Keys expire after 24 h. Responses with status 5xx/429 are never stored, so those retries re-execute.
Request body
Response
Checkout created.
Changes
No recorded changes to this operation across all 1 revision of this API.