BRAND_UPDATED
BRAND_UPDATED is sent when a brand is added, edited, switched on or off, or its images change. It is only sent to accounts with a brand webhook URL registered.
What you receive depends on your account:
Account | Brands you receive |
|---|---|
Gift card | Gift card brands |
Affiliate | Affiliate (cashback) brands |
Request format
An HTTP POST with a multipart/form-data body.
Field | Type | Description |
|---|---|---|
| string | Always |
| string | A JSON-encoded string describing the brand. 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.
Gift card brands
Field | Meaning |
|---|---|
| The brand’s id (the same |
| The brand’s name. |
| Brand description and terms. |
| Important information to show the customer. ( |
| How the card is redeemed (e.g. online, in store). ( |
| Link to redemption instructions. ( |
| The brand’s website. ( |
| Brand images. ⚠️ The names are the wrong way round: |
| The brand’s short name. |
| Keywords for search. |
| Country the brand is sold in. |
|
|
|
|
| When the brand became unavailable, otherwise |
| The fixed values that can be bought, e.g. |
| For a flexible amount: |
| Whether the brand sells fixed or flexible amounts. ( |
|
|
| The brand’s own balance-check page, if any. |
| Gift card VAT ( |
| Reward wording for white-label sites. |
Affiliate brands
Field | Meaning |
|---|---|
| The brand. |
| The offer reference used in tracking links. |
| Brand details and images. |
| The brand’s tracking link. |
| The brand’s id at its affiliate network. |
| Country. |
|
|
|
|
| Always |
| The brand’s commission rates: |
|
|
| Only for brands on networks that need the reference inside the link: the tracking link with our reference already in the right place, and |
A new image upload gets a new URL, so always store the latest image URLs from this webhook rather than caching the old ones.
How to process it
Upsert the brand by brand-id. Treat Inactive as “stop selling”; don’t delete the brand, because it can come back.
On this page
- BRAND_UPDATED