Create a checkout on a merchant storefront (public)
Public (unauthenticated) checkout creation with a payer-chosen amount — the flow behind the "pay" button of a merchant's public page. Optionally carries a cart (items): every line is rebuilt from the merchant's catalog server-side and the request is rejected when the rebuilt total does not match amount. callback_url/redirect_url always come from the merchant's saved defaults and cannot be set here; the checkout is always live (never sandbox). Rate limit: 10 requests/minute per IP plus 60 checkouts/minute per merchant. NOTE: the 400/404/503-merchant bodies carry only the legacy response.errorMessage envelope (no machine-readable error object).
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/merchants/{username}/checkout
- Auth: none required
Path parameters
The merchant's public URL slug (merchant_slug). The path parameter is still named username for backwards compatibility.
Request body
Response
Checkout created.
Changes
No recorded changes to this operation across all 1 revision of this API.