MISSINdevelopersLog in

API reference

AddDiscountPlacements

Place discount codes on a store or email connection; the codes are pushed to the provider. Write access, discounts toolset, MCP tool add_discount_placements.

Access: Write

Variables

VariableTypeRequiredAcceptsDescription
inputAddDiscountPlacementsInput!yesInput object, below

Input types

AddDiscountPlacementsInput

FieldTypeRequiredAcceptsDescription
childJSONnoAny JSON valueThe provider block keyed by the connection's slug (see PlaceDiscountCodeInput.child).
connectionIdUUID!yesThe connection the code is put on. Whether it is pushed anywhere follows from that connection's provider.
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":"AddDiscountPlacements","variables":{"input":{"connectionId":"00000000-0000-0000-0000-000000000000","discountCodeId":"00000000-0000-0000-0000-000000000000"}},"extensions":{"persistedQuery":{"version":1,"sha256Hash":"77f75ccd5d37dddd06df340e255fec69f83305b4575ca538ccd214cd59e90d14"}}}'

Document

graphql
mutation AddDiscountPlacements($input: AddDiscountPlacementsInput!) { __typename addDiscountPlacements(input: $input) { __typename count discountCodeId placementIds 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.