Subscription finished
Webhook event triggered when a subscription finishes all its cycles.
Example
{
"event": {
"type": "subscription_finished",
"user": {
"id": "395108533013579797",
"email": "test_user@blink.network",
"lastName": "",
"createdAt": "2021-01-12T14:29:28.740966Z",
"firstName": ""
},
"merchant": {
"id": "1",
"alias": "MERCHANT"
},
"timestamp": "2021-01-12T14:29:29.931053Z",
"subscription": {
"id": "395108532912916498",
"status": "finished",
"coverage": {
"name": "Print and digital",
"blinkCoverage": "*",
"extraCoverage": null
},
"discount": {
"code": "BLACK_FRIDAY_50",
"name": "before",
"value": "50.00% off"
},
"createdAt": "2021-01-12T14:29:29.861889Z",
"paidUntil": "2021-01-19T14:29:29.861889Z",
"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 finished subscription details: user, subscription and merchant |
event.type | String | ☑ | always subscription_finished |