Sign in

Delete promo code

documented

Remove a promo code from a cart.

DELETE /api/v2/cart/{cart_id}/promotionsCartno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://{{$whmcs_base_url}}/api/v2/cart/{{$cart_id}}/promotions" \
  -X DELETE \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "X-Api-State: {{$api_state}}"