# campaign_sample.approved

You approved a sample request.

### Discount code

`sample.discountCode` is the single-use, 100% off code created in your store for that product.




**Payload for `campaign_sample.approved`:**

- **id** (required) `string`: Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
- **profiles**: `WebhookProfiles` - See schema definition
- **test** `boolean`: Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
- **event** (required) `string`: No description - one of: campaign_sample.requested, campaign_sample.approved, campaign_sample.shipped, campaign_sample.declined
- **campaign** (required) `object`: 
  - **id** (required) `string`: No description
  - **name** (required) `string`: No description
- **participant** (required) `object`: 
  - **id** (required) `string`: No description
- **creator** (required) `object`: 
  - **id** (required) `string`: No description
  - **displayName** (required) `string`: No description
- **sample** (required) `object`: 
  - **id** (required) `string`: No description
  - **storeAccountId** (required) `string`: No description
  - **productId** (required) `string`: No description
  - **variantId** (required) `string,null`: No description
  - **productTitle** (required) `string`: No description
  - **variantTitle** (required) `string,null`: No description
  - **status** (required) `string`: No description - one of: pending, approved, shipped, declined
  - **shippingAddress** (required): `CampaignSampleShippingAddress` - See schema definition
  - **note** (required) `string,null`: No description
  - **discountCode** (required) `string,null`: The 100%-off, single-use code, set from approval on.
  - **trackingUrl** (required) `string,null`: No description
  - **declineReason** (required) `string,null`: No description
- **timestamp** (required) `string` (date-time): UTC time at which Zernio generated this event (set once when the event payload is built, before delivery is queued). Retries and redeliveries keep the original value, so it reflects the event, not the delivery attempt.