MISSINdevelopersLog in

API reference

RecordCampaignSpend

Record manual daily spend against a campaign. Write access, marketing toolset, MCP tool record_campaign_spend.

Access: Write

Variables

VariableTypeRequiredAcceptsDescription
inputRecordCampaignSpendInput!yesInput object, below

Input types

RecordCampaignSpendInput

FieldTypeRequiredAcceptsDescription
amountFloat!yesat least 0
campaignIdUUID!yes
currencyCodeString!yesexactly 3 characters
dateString!yesmatches ^\d{4}-\d{2}-\d{2}$A plain day, YYYY-MM-DD — the grain spend is reported at.
sourceString!yesOne of MANUAL, AGENCY, PRODUCTION, PARTNER_COMMISSIONSPEND_SOURCES. A network's own sources are written by its sync, not here.

Call it

bash
curl https://api.missin.co.uk/graphql/v1 \
  -H "Authorization: Bearer $MISSIN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"operationName":"RecordCampaignSpend","variables":{"input":{"amount":20,"campaignId":"00000000-0000-0000-0000-000000000000","currencyCode":"…","date":"…","source":"MANUAL"}},"extensions":{"persistedQuery":{"version":1,"sha256Hash":"21c3a8a41bd7b8a0757ec17510954907f92dd48be6cd2a35280c7e19adaa536a"}}}'

Document

graphql
mutation RecordCampaignSpend($input: RecordCampaignSpendInput!) { __typename recordCampaignSpend(input: $input) { __typename recorded 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.