Edit this Page

Payment Updated

This action is triggered when an update is made to the payment records of the subscriptions used the transfer method.

After your customer has made the transfer, you must mark the payment record as PAID from the management panel. You can use this service to transfer this update to your own system.

Path: /subscreasy/webhook/payment-updated
Method: POST

Successful Transaction: HTTP 2xx

Request Content

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

Sample Request

{
  "txId" : "2b562e7bc18648ef83c9424c612597ea",
  "subscription" : {
    "id" : 1,
    "status" : "ACTIVE",
    "paymentMethod" : "OFFLINE",
    "startDate" : "2018-08-28T11:04:48Z",
    "termStartDate" : "2018-08-28T11:04:48Z",
    "termEndDate" : "2018-08-28T11:05:48Z",
    "endDate" : "2018-08-28T11:07:48Z",
    "subscriber" : {
      "id" : -1,
      "name" : "John",
      "surname" : "Doe"
    },
    "offer" : {
      "id" : -240,
      "secureId" : "asd-009",
      "name" : "Browsymous Tester Edition 3 Minutes",
      "price" : 0.99,
      "openEnded" : false,
      "multiplePurchase" : true,
      "recurrenceCount" : 3,
      "recurrence" : {
        "id" : 1,
        "recurrenceType" : "MINUTELY",
        "length" : 1
      }
    },
    "company" : {
      "id" : -1,
      "name" : "Browsymous Bilgi İletişim A.Ş.",
      "siteName" : "browsymous",
      "address" : null
    }
  },
  "subscriber" : {
    "id" : -1,
    "secureId" : "0c42c6f3-cea0-4997-a2e2-fd66fbaf50f5",
    "email" : "john.doe@gmail.com",
    "name" : "John",
    "surname" : "Doe",
    "createDate" : "2018-08-28T14:05:11.65+03:00",
    "shippingAddress" : {
      "id" : -3,
      "name" : null,
      "streetAddress" : "abc street no 10",
      "postalCode" : "34040",
      "city" : "ISTANBUL",
      "stateProvince" : null,
      "country" : "TURKIYE"
    },
    "company" : {
      "id" : -1,
      "name" : "Browsymous Bilgi İletişim A.Ş.",
      "siteName" : null,
      "address" : null
    }
  },
  "paymentLog" : {
    "id" : 1,
    "price" : 0.99,
    "appliedCoupon" : null,
    "paymentId" : null,
    "authCode" : null,
    "errorCode" : null,
    "errorText" : null,
    "jobId" : null,
    "invoiceId" : null,
    "subscriptionId" : 1,
    "serviceInstanceId" : null,
    "subscriberSecureId" : "0c42c6f3-cea0-4997-a2e2-fd66fbaf50f5",
    "companyId" : -1,
    "paymentGateway" : "OFFLINE",
    "status" : "PAID",
    "reason" : "START",
    "currency" : "TRY",
    "transactionId" : null,
    "createDate" : "2018-08-28T11:04:48Z",
    "parentId" : null,
    "savedCardId" : null
  }
}