Skip to Content
Developers
Webhooks

code.deactivate

A code must stop working in your store: disable or delete the discount code. Sent when the brand removes an associate from a Pro Deal or the associate leaves a targeted store. Codes already used are not sent.

Header Parameters

webhook-id*string

Unique id of the event; the same on every retry. Use it to ignore duplicates.

Example"msg_2pQ7d1Xk9aLr4Bz"
webhook-timestamp*string

Seconds since the Unix epoch when this attempt was signed.

Example"1794928811"
webhook-signature*string

Space-separated v1,<base64 HMAC-SHA256> signatures (Standard Webhooks).

Example"v1,K5oZfzN95Z9UVu1EsfQmfVNQhnkZ2pj9o9NDN/H/pI4="

Request Body

application/json
  1. body

The body of every event, following Standard Webhooks.

type*string
Value in"code.deactivate""pro_deal.ended"
timestamp*string

When the event happened.

Formatdate-time
data*

Response Body

Answer any 2xx once the event is stored; anything else is retried.

Example Requests
POST/code.deactivate
Request Body
application/json
{  "type": "code.deactivate",  "timestamp": "2026-11-17T15:20:11Z",  "data": {    "proDealId": "6730f1c2a9d4e5b6c7d8e9f0",    "code": "PRO-7KQ2-XM4D",    "reason": "associate_left_store"  }}
Header Parameters
{  "webhook-id": "msg_2pQ7d1Xk9aLr4Bz",  "webhook-timestamp": "1794928811",  "webhook-signature": "v1,K5oZfzN95Z9UVu1EsfQmfVNQhnkZ2pj9o9NDN/H/pI4="}