PUT
/api/v2/admin/discount-codes/cards/{cardId}/discountUpdates a card's discount code (for admin use)
Authentication
Send your API key in the x-api-key header on every request.
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| cardId (path) | unknown | Yes | |
| companyId (query) | unknown | No |
Request body
application/json
| Field | Type | Required | Description |
|---|---|---|---|
| DiscountCode | string | No |
Responses
200 — OK
Example request
curl -X PUT "https://{base_url}/api/v2/admin/discount-codes/cards/{cardId}/discount" \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'This page is generated from the live OpenAPI specification and always matches the current API.