API reference
WithdrawDiscountPlacement
Withdraw a discount placement without deleting the code. Write access, discounts toolset, MCP tool withdraw_discount_placement.
Access: Write
Variables
| Variable | Type | Required | Accepts | Description |
|---|---|---|---|---|
input | WithdrawDiscountPlacementInput! | yes | Input object, below |
Input types
WithdrawDiscountPlacementInput
| Field | Type | Required | Accepts | Description |
|---|---|---|---|---|
placementId | 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":"WithdrawDiscountPlacement","variables":{"input":{"placementId":"00000000-0000-0000-0000-000000000000"}},"extensions":{"persistedQuery":{"version":1,"sha256Hash":"ca7b221f6d7eb91bd56e037a6d4eadcd7790bfa274bfb4382f4d4dbfa5eb33e7"}}}'Document
graphql
mutation WithdrawDiscountPlacement($input: WithdrawDiscountPlacementInput!) { __typename withdrawDiscountPlacement(input: $input) { __typename discountCodeId placementId userErrors { __typename code field message } } }