Delete a Cart
DELETEhttps://useast.api.elasticpath.com/v2/carts/:cartID
You can delete a cart, including the items, name, description, and remove all associations.
Errors
The following error message is received when you attempt to delete a cart that is associated with a customer. Before deletion, ensure that the cart is disassociated.
message: {
errors: [
{
status: 400,
title: 'Last cart',
detail: 'This is the last cart associated with a customer and it cannot be deleted, try disassociating instead'
}
]
}
Request
Responses
- 204
- 401
No Content
Response Headers
Unauthorized
Authorization: http
name: bearerAuthtype: httpscheme: bearer
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
ResponseClear