Delete Customer Cart Association
DELETEhttps://useast.api.elasticpath.com/v2/carts/:cartID/relationships/customers
You can delete an association between a customer and a cart.
Request
Path Parameters
cartID stringrequired
The ID for the cart created by the customer.
Header Parameters
x-moltin-customer-token string
A customer token to access a specific customer's carts.
- application/json
Body
data undefined[]
Responses
- 204
- 401
No Content
Response Headers
Unauthorized
- application/json
- Schema
- Example (from schema)
- Example
Schema
detail string
status string
title string
[
null
]
{
"errors": {
"status": 401,
"title": "Unauthorized"
}
}
Authorization: http
name: bearerAuthtype: httpscheme: bearer
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X DELETE 'https://useast.api.elasticpath.com/v2/carts/:cartID/relationships/customers' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"data": [
{
"id": "string",
"type": "string"
}
]
}'
ResponseClear