API reference
DeleteDiscountCode
Delete a discount code here and at its providers. Irreversible. Write access, discounts toolset, MCP tool delete_discount_code.
Access: Write
Variables
| Variable | Type | Required | Accepts | Description |
|---|---|---|---|---|
input | DeleteDiscountCodeInput! | yes | Input object, below |
Input types
DeleteDiscountCodeInput
| Field | Type | Required | Accepts | Description |
|---|---|---|---|---|
id | UUID! | yes |
Call it
bash
curl https://api.missin.co.uk/graphql/v1 \
-H "Authorization: Bearer $MISSIN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"operationName":"DeleteDiscountCode","variables":{"input":{"id":"00000000-0000-0000-0000-000000000000"}},"extensions":{"persistedQuery":{"version":1,"sha256Hash":"99cc176539ab159f612b7da0dc3c67c31670969e4bbef4be9d0f1c2c71841384"}}}'Document
graphql
mutation DeleteDiscountCode($input: DeleteDiscountCodeInput!) { __typename deleteDiscountCode(input: $input) { __typename id } }