MISSINdevelopersLog in

API reference

LinkCampaignDiscount

Link a discount code to a campaign. Write access, campaigns toolset, MCP tool link_campaign_discount. Part of the MISSIN public API: call it with an API key,…

Access: Write

Variables

VariableTypeRequiredAcceptsDescription
inputLinkCampaignDiscountInput!yesInput object, below

Input types

LinkCampaignDiscountInput

FieldTypeRequiredAcceptsDescription
campaignIdUUID!yes
discountCodeIdUUID!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":"LinkCampaignDiscount","variables":{"input":{"campaignId":"00000000-0000-0000-0000-000000000000","discountCodeId":"00000000-0000-0000-0000-000000000000"}},"extensions":{"persistedQuery":{"version":1,"sha256Hash":"fb9f5e5a7c01f93ce6100a8bd9f6d9f5b952d095257720e9a5183b4b8f91b6da"}}}'

Document

graphql
mutation LinkCampaignDiscount($input: LinkCampaignDiscountInput!) { __typename linkCampaignDiscount(input: $input) { __typename id userErrors { __typename code field message } } }

For AI agents: a markdown index of this site is at /llms.txt, and every page is available as markdown by adding .md to its URL.