payload_too_large
Status 413. The request body is larger than this endpoint accepts.
What it means
The request body is over 4,096 bytes, or 32,768 for a programme, reward or offer change. max_bytes says which. Nothing was changed.
What to do
Send only the fields the call takes: a points change takes delta_points and reason, a cancel takes ref, and a webhook endpoint takes url, event_types and description.
Safe to send again?
Not as it is. Change what the answer points to, then send the request.
What else the answer carries
max_bytes: The largest body accepted, in bytes.
Where you can meet it
POST /stores/{store_key}/programme: Change the earn rate, the bonuses, what a point is worth, referrals, spending any amount, the time zone, the ways to earn, or when points expirePOST /stores/{store_key}/programme/rewards: Add a reward shoppers can spend points onPOST /stores/{store_key}/programme/rewards/{reward_id}: Change a reward's cost, value, minimum order or labelPOST /stores/{store_key}/programme/rewards/{reward_id}/remove: Remove a rewardPOST /stores/{store_key}/programme/offers: Add an offer: a campaign, a product offer or a channel offerPOST /stores/{store_key}/programme/offers/{offer_id}: Change an offerPOST /stores/{store_key}/programme/offers/{offer_id}/remove: Remove an offerPOST /stores/{store_key}/design: Change the design: colours, words, the panel and product-line look, the account page layout, the terms linkPOST /members/{member_key}/adjustments: Add points to a member's balance, or take them awayPOST /members/{member_key}/codes/void: Cancel a reward code and give the member back its pointsPOST /webhooks: Send points movements to an https endpointPOST /stores/{store_key}/images: Upload a picture for the store's branding (a logo, a square logo, a cover)
Every code, and the shape of an error answer: Errors.