Subscription created
Webhook event triggered when a new subscription is successfully created.
Example
{
"event": {
"type": "subscription_created",
"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.303113Z",
"subscription": {
"id": "360262023772113421",
"status": "active",
"coverage": {
"name": "Print and digital",
"blinkCoverage": "*",
"extraCoverage": null
},
"amount": {
"amount": "2.00",
"currency": "usd",
"amountPrecise": 2000000,
"amountInSubunits": 200,
"amountPreciseExponent": 6
},
"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 new subscription details: user, subscription and merchant |
event.type | String | ☑ | always subscription_created |