Edit this Page

Subscription Renewed

This service is triggered when a subscription renewal fee is charged.

Path: /subscreasy/webhook/subscription-renewed
Method: POST

Successful Transaction: HTTP 2xx

Request Content

  • Transaction Id: txId
  • Subscription details: subscription
  • Subscriber details: subscriber
  • Payment log: paymentLog

Duplicate Process: If the same notification times out due to network delays and is forwarded to the target system for the second time, this can be determined from txId. In this scenario, the second notification should not be processed.

Sample Request

{
  "txId" : "78fb6261aa164d8e8e237a8243ac9474",
  "subscription" : {
    "id" : 15,
    "status" : "FINISHED",
    "startDate" : "2018-07-29T13:03:46Z",
    "endDate" : "2018-07-29T13:06:46Z",
    "subscriber" : {
      "id" : 1,
      "name" : "Halil",
      "surname" : "Karakose"
    },
    "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" : "1755485251904c0087623f1b7ae8d666",
    "email" : "halilkarakose@gmail.com",
    "name" : "Halil",
    "surname" : "Karakose",
    "createDate" : "2018-07-29T10:34:02Z",
    "company" : {
      "id" : -1,
      "name" : "Browsymous Bilgi İletişim A.Ş."
    }
  },
  "paymentLog" : {
    "id" : 37,
    "price" : 0.99,
    "appliedCoupon" : null,
    "paymentId" : "10913681",
    "authCode" : "375953",
    "errorCode" : null,
    "errorText" : null,
    "jobId" : 37,
    "invoiceId" : null,
    "subscriptionId" : 15,
    "serviceInstanceId" : null,
    "subscriberSecureId" : "1755485251904c0087623f1b7ae8d666",
    "companyId" : -1,
    "paymentGateway" : "IYZICO",
    "status" : "PAID",
    "reason" : "RENEWAL",
    "currency" : null,
    "transactionId" : null,
    "createDate" : "2018-07-29T13:16:34Z"
  },
  "savedCard" : {
    "id" : 16,
    "cardAlias" : "Halk Bankası",
    "binNumber" : "552879"
  }
}