VOUCHERS_UPDATED
VOUCHERS_UPDATED is sent to affiliate accounts when a voucher code offer is added, changed or ends. It is only sent to accounts with a vouchers webhook URL registered.
Request format
An HTTP POST with a multipart/form-data body.
Field | Type | Description |
|---|---|---|
| string | Always |
| string | A JSON-encoded string describing the voucher offer. Decode it after reading the form field. |
Headers are the same as for every webhook: Signature, Signature-V2, TimeStamp, Spendstream-Event-Id and Spendstream-Delivery-Attempt. See Webhook security and the Webhooks overview.
Fields
Field | Meaning |
|---|---|
| The voucher offer’s id. |
| The kind of offer (e.g. voucher code or deal). |
| The brand. |
| Offer text. |
| The code to show the customer, if any. |
| Dates. |
|
|
| The offer’s page. |
| The tracking link to send the customer through. |
| The parameter to add your customer reference to, so the sale is attributed to them. |
| Only on offers from networks that need the reference inside the link: the tracking link with our reference already in place and |
| The brand’s id at its affiliate network. |
| Images. |
|
|
How to process it
Upsert by voucher-id. When status is 0, stop showing the offer.
On this page
- VOUCHERS_UPDATED