Get Carts
GET/v2/carts
Retrieves a list of carts. The carts returned depend on the authentication method used:
| Authentication Method | Header | Returns |
|---|---|---|
| Customer Token | X-Moltin-Customer-Token | Carts for the specified customer. See Customer Tokens. |
| Account Token | EP-Account-Management-Authentication-Token | Carts for the specified account. See Account Management Token. |
| Client Credentials | Authorization: Bearer <token> | All carts or only registered carts, controlled by the show_all_carts setting. See Cart Settings. |
Client Credentials Behavior:
- When
show_all_cartsistrue: Returns all carts in the store. - When
show_all_cartsisfalse: Returns only registered carts (associated with customers or accounts).
Sorting
Carts are sorted in descending order by updated_date. For more information, see Pagination.
Request
Responses
- 200
- 400
- 403
Response Headers
Bad Request
Unauthorized call