Required scope: write_promotions (for API-key authentication).
write_promotions
JavaScript
const options = { method: 'DELETE', headers: {'x-spree-api-key': '<api-key>', Authorization: 'Bearer <token>'} }; fetch('http://{defaultHost}/api/v3/admin/promotions/{id}', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
Documentation IndexFetch the complete documentation index at: https://spreecommerce.org/docs/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://spreecommerce.org/docs/llms.txt
Use this file to discover all available pages before exploring further.
Secret API key for admin access
JWT token for admin user authentication
promotion deleted
Was this page helpful?
Contact support