Skip to main content

Delete a Cart

DELETE 

https://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

No Content

Response Headers

    Authorization: http

    name: bearerAuthtype: httpscheme: bearer

    Request Collapse all
    Base URL
    https://useast.api.elasticpath.com
    Auth
    Parameters
    — pathrequired
    ResponseClear

    Click the Send API Request button above and see the response here!

    We use cookies to enhance your experience. By continuing to visit this site you agree to our use of cookies.