Subscription unpaid
Webhook event triggered when the payment for a subscription fails.
Example
{
"event": {
"type": "subscription_unpaid",
"user": {
"id": "360262023914719760",
"email": "test_user@blink.net",
"lastName": "",
"createdAt": "2020-11-25T12:35:41.317225Z",
"firstName": ""
},
"merchant": {
"id": "20",
"alias": "MERCHANT"
},
"timestamp": "2020-11-25T12:35:42.347841Z",
"subscription": {
"id": "360262023772113421",
"status": "unpaid",
"coverage": {
"name": "Print and digital",
"blinkCoverage": "*",
"extraCoverage": null
},
"discount": {
"code": "BLACK_FRIDAY_50",
"name": "before",
"value": "50.00% off"
},
"createdAt": "2020-11-25T12:35:42.263635Z",
"paidUntil": "2020-12-02T12:35:42.263635Z",
"cycleDuration": "week",
"deliveryAddress": {
"city": "New York",
"name": null,
"state": "NY",
"country": "United States",
"address1": "20 Cooper Square",
"address2": null,
"postalCode": "10011",
"countryCode": "US"
}
}
}
}
Description
| name | type | always present | description |
|---|---|---|---|
event | Object | ☑ | an object describing the unpaid subscription details: user, subscription and merchant |
event.type | String | ☑ | always subscription_unpaid |