Sign in

Apply promo code

documented

Apply a promo code to a cart.

POST /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 POST \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "X-Api-State: {{$x_api_state}}" \
  -d '{"code": "{{$code}}"}'