Skip to content

Delete cart

DELETE
/api/shopping-cart/{shoppingCartIdentifier}
curl --request DELETE \
--url https://api.wink.travel/api/shopping-cart/a2f1c9d8-4e7b-4d3a-9f2c-1a6b5e8d3f42 \
--header 'Authorization: Bearer <token>' \
--header 'Wink-Version: 2.0'

Permanently delete the specified shopping cart. Note: carts automatically expire after 1 hour of inactivity, so explicit deletion is optional.

shoppingCartIdentifier
required
string
""

Unique shopping cart identifier to permanently delete

Example
a2f1c9d8-4e7b-4d3a-9f2c-1a6b5e8d3f42
Wink-Version
string
default: 2.0.0
Allowed values: 2.0

Shopping cart permanently deleted; note that carts also auto-expire after 1 hour of inactivity

Media type application/json

Response object for when a system document is removed.

object
id

Identifier of removed document

string format: uuid
""
success

Whether the removal was successful or not.

boolean
message

Message with additional information; mostly if the removal request was a failure.

string
""
key
additional properties
""
Example
{
"id": "3c6b1a5d-8e2f-4a0b-9c7d-6e4f0a8b2c51",
"success": true,
"message": "Property marked as deleted. Can be restored within 30 days."
}

Bad Request — missing or invalid request parameter or body

Media type application/problem+json
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
key
additional properties
""
Example

Unauthorized — authentication is required or the session has expired

Media type application/problem+json
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
key
additional properties
""
Example

Forbidden — authenticated but lacking the required permission or scope

Media type application/problem+json
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
key
additional properties
""
Example

Not Found — the requested resource does not exist

Media type application/problem+json
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
key
additional properties
""
Example

Method Not Allowed — the HTTP verb is not supported on this endpoint

Media type application/problem+json
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
key
additional properties
""
Example

Unsupported Media Type — use application/json

Media type application/problem+json
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
key
additional properties
""
Example

Internal Server Error — an unexpected failure occurred on the server

Media type application/problem+json
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
key
additional properties
""
Example

Service Unavailable — a downstream dependency is unreachable

Media type application/problem+json
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
key
additional properties
""
Example