This webhook is triggered when a subscription ends. There are 3 ways how a subscription is ended:
Subscription Ended webhook covers all 3 above.
Path: /subscreasy/webhook/subscription-ended
Method: POSTSuccessful Transaction: HTTP 2xx
Request Content
txId
subscription
subscriber
Sample Request
{
"txId" : "321d4e0f565c48e495905368b3fae1c5",
"subscription" : {
"id" : 4,
"status" : "FINISHED",
"startDate" : "2018-07-29T22:14:18Z",
"nextChargingDate" : "2018-07-29T22:16:18Z",
"endDate" : "2018-07-29T22:17:18Z",
"subscriber" : {
"id" : 1,
"name" : "JUnit",
"surname" : "Test"
},
"offer" : {
"id" : -240,
"secureId" : "asd-009",
"name" : "Browsymous Tester Edition 3 Minutes",
"price" : 0.99,
"openEnded" : false,
"recurrenceCount" : 3,
"recurrence" : {
"id" : 1,
"recurrenceType" : "MINUTELY",
"length" : 1
}
},
"company" : {
"id" : -1,
"name" : "Browsymous Bilgi İletişim A.Ş.",
"siteName" : "browsymous",
"address" : null
},
"card" : {
"id" : 5,
"cardAlias" : "Halk Bankası",
"binNumber" : "552879"
}
},
"subscriber" : {
"id" : 1,
"secureId" : "641782f7419a491caf5f5fd5a07e01be",
"email" : "halilkarakose@gmail.com",
"name" : "JUnit",
"surname" : "Test",
"createDate" : "2018-07-29T22:08:50Z",
"company" : {
"id" : -1,
"name" : "Browsymous Bilgi İletişim A.Ş."
}
},
"paymentLog" : null,
"savedCard" : null
}