Skip to content
Esc
↑↓navigate↵open⌘Jpreview

Save a new cart reference

Save an external cart ID for the authenticated user so it can be resumed later.

POST/api/v1/{app_id}/carts
Authorization
AuthorizationAPI key · headerrequired

Bearer token (format: "Bearer {token}")

Path parameters
app_idstringrequired

UUID of the app

Request body
requiredapplication/json

Cart creation data

cart_idstringrequired
sourcestringrequired
Responses
200

OK

cart_idstring
created_atstring
idstring
sourcestring
updated_atstring
400

Invalid request

detailsstring[] | null
messagestring
successboolean
401

Unauthorized

detailsstring[] | null
messagestring
successboolean
409

Duplicate cart

detailsstring[] | null
messagestring
successboolean
500

Internal server error

detailsstring[] | null
messagestring
successboolean
Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X POST '//customers.enad.io/api/v1/string/carts' \
  -H 'Authorization: YOUR_API_KEY' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "cart_id": "string",
  "source": "string"
}'
Response
{
  "cart_id": "string",
  "created_at": "string",
  "id": "string",
  "source": "string",
  "updated_at": "string"
}