Create a checkout from a product (public)
Public (unauthenticated) checkout creation from a live, active product — the flow behind the "buy" button of product pages AND of charge pages (/c/{id}). For charges the amount is computed per visit (base + late fees for the current FIFO cycle — see ChargeState) and the settled cycle is stamped into metadata.charge_cycle. Optional body: payer metadata and payer_tax_number.
Errors on this operation are payer-scoped. The caller is an anonymous third party paying a merchant, so an error is only allowed to keep its response.errorMessage and its error.details when it describes the payer, the payer's input, or a fact about the thing being paid — which is every code documented below. Refusals that belong to the MERCHANT'S account (receive limits, onboarding gates, account configuration) answer a fixed neutral message ("Não foi possível gerar o pagamento. Fale com o vendedor.", or "…agora. Tente novamente em alguns minutos." for a 5xx) with error.details OMITTED. error.code is always the real one. Do not build a payer flow that reads error.details from a code not listed here: it is withheld by design, and the same call authenticated as the merchant (POST /api/checkouts) returns the full numbers.
Request
- Base URL: https://api.depixapp.com
- URL: https://api.depixapp.com/api/products/{id}/checkout
- Auth: none required
Path parameters
Product id (prd_*).
Request body
Response
Checkout created.
Changes
No recorded changes to this operation across all 1 revision of this API.