post
https://connect.agendapro.com/v3/carts
Creates a shopping cart. The cart is the first step of the online payment
flow: add items, then create a payment request on the cart to obtain a
checkout URL.
Important Notes
- Requires
carts:writescope. - Online payments must be enabled for the company to complete the flow. Carts can be created regardless, but payment request creation fails when online payments are disabled.
- The cart always belongs to the authenticated company; any
company_idsent in the body is ignored. - To sell a service and book it in the same flow, send an item with
item_type: "service"and a single instance{ "instance_type": "booking", "reference_id": null, "data": { "start_time": "...", "provider_id": ... } }. The booking is created automatically when the payment request is created, and released automatically if the payment request expires or is cancelled. data.start_timemust be an ISO 8601 datetime in UTC (Zor+00:00, e.g.2026-08-01T13:00:00Z). Other offsets are accepted here but rejected when the booking is reserved at payment-request time (invalid_start_time).data.creative_sourcecannot be set: it is alwaysconnectfor the public API (any value sent is overridden).- Carts expire after 24 hours.
- Item validation errors (400/422) from platform-sales are passed through unchanged; see the platform-sales carts documentation for the full dictionary.
- Business errors proxied from platform-sales use legacy single-key codes (e.g.
cart_not_found,invalid_start_time,creative_source_not_public) rather than the{error, detail}shape used by connect-level errors (auth, scope, rate limit).
Errors Dictionary
| Status | Error | Detail | Description |
|---|---|---|---|
| 401 | unauthorized | invalid_api_key | Missing or invalid Bearer token. |
| 401 | unauthorized | api_config_inactive | API access is inactive for this company. |
| 403 | forbidden | scope_denied | API key lacks carts:write scope. |
| 400, 422 | (upstream) | Item validation errors from platform-sales are passed through with legacy single-key codes (e.g. item_invalid_type, invalid_start_time, creative_source_not_public); see the platform-sales carts documentation for the full list. | |
| 429 | rate_limited | burst_limit_exceeded | Per-minute request limit exceeded. |
| 429 | rate_limited | daily_quota_exceeded | Daily request quota exceeded. |
| 502 | upstream_unavailable | The upstream service is unavailable. |
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
