Discounts
Delete discount
Deletes the discount for the given discount ID. Deletion is permitted for any discount owned by the website, including discounts whose criteria, template, or trigger types are not supported by this API version; no type validation is performed. Requires OAuth website scope website.discounts, or API key scope DISCOUNTS.
delete/v1/commerce/discounts/{discountId}
Request
- Base URLhttps://api.squarespace.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
discountIdstring required
The discount's ID.
Headers
Authorizationstring required
API key or OAuth access token
User-Agentstring required
User Agent
Response
No content. The discount was deleted successfully.
Changes
No recorded changes to this operation across all 1 revision of this API.