Edit this Page

Subscription Renewal Failed

This service is triggered when an error is received during subscription renewal.
The collection error information can be accessed from the paymentLog area.

Path: /subscreasy/webhook/subscription-renewal-failed
Method: POST

Successful Transaction: HTTP 2xx

Request Content

  • Trancastion Id: txId
  • Subscription details: subscription
  • Subscriber details: subscriber

Sample Request:

{
  "txId" : "95642063c7ea4379a90988579fc4d77a",
  "subscription" : {
    "id" : 2,
    "status" : "ACTIVE",
    "startDate" : "2018-07-29T21:50:57Z",
    "nextChargingDate" : "2018-07-29T21:51:57Z",
    "endDate" : "2018-07-29T21:53:57Z",
    "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" : 3,
      "cardAlias" : "Halk Bankası",
      "binNumber" : "552879",
    }
  },
  "subscriber" : {
    "id" : 1,
    "secureId" : "478febef86d146b1ae1c6f801c78bc46",
    "email" : "halilkarakose@gmail.com",
    "name" : "JUnit",
    "surname" : "Test",
    "createDate" : "2018-07-29T21:50:05Z",
    "company" : {
      "id" : -1,
      "name" : "Browsymous Bilgi İletişim A.Ş."
    }
  },
  "paymentLog" : {
    "id" : 4,
    "price" : 0.99,
    "appliedCoupon" : null,
    "paymentId" : "10913891",
    "authCode" : "566225",
    "errorCode" : 1001,
    "errorText" : "API Key bulunamadi",
    "jobId" : 11,
    "invoiceId" : null,
    "subscriptionId" : 2,
    "serviceInstanceId" : null,
    "subscriberSecureId" : "478febef86d146b1ae1c6f801c78bc46",
    "companyId" : -1,
    "paymentGateway" : "IYZICO",
    "status" : "SUCCESS",
    "reason" : "RENEWAL",
    "currency" : null,
    "transactionId" : null,
    "createDate" : "2018-07-29T21:50:58Z"
  },
  "savedCard" : {
    "id" : 3,
    "cardAlias" : "Halk Bankası",
    "binNumber" : "552879"
  }
}