List discounts
Returns a paginated list of discounts for the website. Requires OAuth website scope website.discounts.read or website.discounts, or API key scope DISCOUNTS_READONLY or DISCOUNTS.
Request
- Base URLhttps://api.squarespace.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Sort field for the result set.
Sort direction.
Free-text search across a discount's name and promo code.
Filter by discount lifecycle status.
Filter by one or more criteria types (comma-separated). When omitted, defaults to all allowable values.
Filter by one or more template types (comma-separated). When omitted, defaults to all allowable values.
Filter by one or more trigger types (comma-separated): AUTO (auto-applied) or CODE (promo code). When omitted, or when all allowable values are supplied, defaults to all allowable values.
When true, only discounts with limited-use semantics (per product rules) are returned.
Zero-based offset into the result set. Must be non-negative. Default 0.
Page size (1–1000; default 50).
Headers
API key or OAuth access token
User Agent
Response
Paginated discounts for the website (empty page is a successful response).
Example response
{
"discounts": [
{
"criteria": {
"minimumCartTotal": {
"value": 49.99
}
},
"template": {
"discountAmount": {
"value": 49.99
}
}
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.