You can query the past payment information of your customers using the merchantSubscriberId value.
Method: GET
Path: /api/charging-logs/subscriber/m/${merchantSubscriberId}
Sandbox Url: https://sandbox.subscreasy.com/api/charging-logs/subscriber/m/${merchantSubscriberId}
For security reasons, this service requires API authorization. Click for details about API authorization.
You can pagination by sending page and size parameters to your URL.
Curl
curl -X GET \
'http://localhost:8080/api/charging-logs/subscriber/92950353-2b7f-45bd-9f98-884be5a3b18c?page=0&size=2' \
-H 'Accept: application/json' \
-H 'Authorization: Apikey brs-1234567890' \
-H 'Content-Type: application/json' \
-H 'cache-control: no-cache'
[
{
"id": 10,
"price": 1200,
"appliedCoupon": null,
"paymentId": null,
"authCode": null,
"errorCode": null,
"errorText": null,
"jobId": -5,
"threeds": null,
"invoiceId": null,
"subscriptionId": -2,
"serviceInstanceId": null,
"subscriberSecureId": "8c42c6f3-cea0-4997-a2e2-fd66fbaf50f1",
"subscriberId": null,
"companyId": -1,
"paymentGateway": null,
"status": "FAIL",
"reason": "START",
"currency": "TL",
"transactionId": null,
"createDate": "2018-02-01T00:00:00+03:00",
"refundDate": null,
"parentId": null,
"offerId": -140,
"savedCardId": null,
"savedCard": null
},
{
"id": 11,
"price": 1200,
"appliedCoupon": null,
"paymentId": null,
"authCode": null,
"errorCode": null,
"errorText": null,
"jobId": -5,
"threeds": null,
"invoiceId": null,
"subscriptionId": -2,
"serviceInstanceId": null,
"subscriberSecureId": "8c42c6f3-cea0-4997-a2e2-fd66fbaf50f1",
"subscriberId": null,
"companyId": -1,
"paymentGateway": null,
"status": "FAIL",
"reason": "START",
"currency": "TL",
"transactionId": null,
"createDate": "2018-02-01T00:00:00+03:00",
"refundDate": null,
"parentId": null,
"offerId": -140,
"savedCardId": null,
"savedCard": null
}
]