Coupon redemption webhook request body resource.
couponId | string ID of the coupon. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
redemptionId | string ID of the redemption. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
customerId | string ID of the customer. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
eventType | string Type of webhook event. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object Embedded objects. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array of objects Related links. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Returns any 2xx status to indicate that the data received.
{- "couponId": "string",
- "redemptionId": "string",
- "customerId": "string",
- "eventType": "coupon-application-removed",
- "_embedded": {
- "coupon": {
- "id": "cpn_0YVCNKF81GD778N4YNVGDJK558",
- "discount": {
- "amount": 0.01,
- "currency": "USD",
- "type": "fixed",
- "context": "items"
}, - "restrictions": [
- {
- "type": "discounts-per-redemption",
- "quantity": 0
}
], - "redemptionsCount": 0,
- "status": "draft",
- "description": "string",
- "issuedTime": "2019-08-24T14:15:22Z",
- "expiredTime": "2019-08-24T14:15:22Z",
- "revision": 0,
- "createdTime": "2019-08-24T14:15:22Z",
- "updatedTime": "2019-08-24T14:15:22Z",
- "_links": [
- {
- "href": "string",
- "rel": "self"
}
]
}, - "redemption": {
- "id": "cpn_rdm_0YVCNKF81GD778N4YNVGDJK558",
- "couponId": "cpn_0YVCNKF81GD778N4YNVGDJK558",
- "customerId": "cus_0YV7DDSDD1C8DA64KHH2W33CPF",
- "additionalRestrictions": [
- {
- "type": "discounts-per-redemption",
- "quantity": 0
}
], - "createdTime": "2019-08-24T14:15:22Z",
- "updatedTime": "2019-08-24T14:15:22Z",
- "canceledTime": "2019-08-24T14:15:22Z",
- "_links": [
- {
- "href": "string",
- "rel": "self"
}
]
}, - "customer": {
- "id": "cus_0YV7DDSDD1C8DA64KHH2W33CPF",
- "email": "user@example.com",
- "firstName": "string",
- "lastName": "string",
- "websiteId": "web_0YV7DE4Z26DQSA1AC92FBJ7SEG",
- "defaultPaymentInstrument": {
- "method": "payment-card",
- "paymentInstrumentId": "inst_0YVB8KPKNXCBR9EDX7JHSED75N"
}, - "createdTime": "2019-08-24T14:15:22Z",
- "updatedTime": "2019-08-24T14:15:22Z",
- "customFields": {
- "foo": "bar"
}, - "primaryAddress": {
- "firstName": "Benjamin",
- "lastName": "Franklin",
- "organization": "Rebilly",
- "address": "36 Craven St",
- "address2": "string",
- "city": "Austin",
- "region": "Texas",
- "country": "GB",
- "postalCode": "WC2N 5NF",
- "phoneNumbers": [
- {
- "label": "main",
- "value": "512-710-1640",
- "primary": true
}
], - "emails": [
- {
- "label": "main",
- "value": "rebilly@example.com",
- "primary": true
}
], - "dob": "1980-04-01",
- "jobTitle": "CEO",
- "hash": "056ae6d97c788b9e98b049ebafd7b229bf852221"
}, - "company": {
- "name": "string",
- "domain": "string",
- "yearFounded": 0,
- "industry": "string",
- "employeesCount": 0,
- "country": "string",
- "locality": "string",
- "_links": [
- {
- "href": "string",
- "rel": "linkedin"
}
]
}, - "averageValue": {
- "currency": "USD",
- "amount": 0,
- "amountUsd": 0
}, - "paymentCount": 0,
- "lastPaymentTime": "2019-08-24T14:15:22Z",
- "lifetimeRevenue": {
- "currency": "USD",
- "amount": 0,
- "amountUsd": 0
}, - "invoiceCount": 0,
- "tags": [
- {
- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "name": "New",
- "type": "customer",
- "createdTime": "2019-08-24T14:15:22Z",
- "updatedTime": "2019-08-24T14:15:22Z",
- "_links": [
- {
- "href": "string",
- "rel": "self"
}
]
}
], - "revision": 0,
- "isEddRequired": false,
- "hasFulfilledKyc": true,
- "organizationId": "org_0YVDM8RC7GDADADSBSMW124JA8",
- "taxNumbers": [
- {
- "type": "eu-vat",
- "value": "GB980780684",
- "isDefault": true,
- "isValid": true
}
], - "_links": [
- {
- "href": "string",
- "rel": "self"
}
], - "_embedded": {
- "leadSource": { }
}
}
}, - "_links": [
- {
- "href": "string",
- "rel": "coupon"
}
]
}