Get Cart Settings
GET/v2/settings/cart
Retrieves cart settings
Responses
- 200
- 401
- default
OK
- application/json
- Schema
- Example (from schema)
Schema
data object
type stringrequired
Describes the type of request payload you’re sending. Set this value to settings
.
cart_expiry_days integer
Indicates the number of days before a cart expires.
discounts object
custom_discounts_enabled boolean
When true
, custom discounts are enabled. Default is false. This setting only affects the new empty carts while the existing active carts will not be affected.
use_rule_promotions boolean
When set to true
, this parameter allows the cart to use rule promotions.
{
"data": {
"type": "settings",
"cart_expiry_days": 25,
"discounts": {
"custom_discounts_enabled": false,
"use_rule_promotions": false
}
}
}
Unauthorized
- application/json
- Schema
- Example (from schema)
- unauthorized-error
Schema
- Array [
- ]
errors Error[]required
title stringrequired
A brief summary of the error.
status stringrequired
The HTTP response code of the error.
detail string
Optional additional detail about the error.
{
"errors": [
{
"title": "string",
"status": "string",
"detail": "string"
}
]
}
{
"errors": [
{
"title": "Unauthorized",
"status": "401"
}
]
}
Internal server error.
- application/json
- Schema
- Example (from schema)
- internal-server-error
Schema
- Array [
- ]
errors Error[]required
title stringrequired
A brief summary of the error.
status stringrequired
The HTTP response code of the error.
detail string
Optional additional detail about the error.
{
"errors": [
{
"title": "string",
"status": "string",
"detail": "string"
}
]
}
Internal server error
{
"errors": [
{
"title": "Internal Server Error",
"status": "500",
"detail": "there was a problem processing your request"
}
]
}
Loading...