Edit this Page

Abonelik Sorgulama (merchantSubscriberId)

Müşterilerinize ait abonelikleri, merchantSubscriberId değerini kullanarak sorgulayabileceğiniz bir servistir.

Method: GET
Path: /api/subscriptions/subscriber/m/${merchantSubscriberId}
Sandbox Url: https://sandbox.subscreasy.com/api/subscriptions/subscriber/m/${merchantSubscriberId}

Bu servis, güvenlik açısından, API yetkilendirmesine gerek duyar. API yetkilendirmesi hakkında detay için tıklayınız.

 Sayfalama İşlemi (Pagination)

Url'nize page ve size parametrelerini göndererek, sayfalama işlemi yapabilirsiniz.

 Örnek Request

Curl

curl -X GET \
  'http://localhost:8080/api/subscriptions/subscriber/m/92950353-2b7f-45bd-9f98-884be5a3b18c?page=0&size=1' \
  -H 'Accept: application/json' \
  -H 'Authorization: Apikey brs-1234567890' \
  -H 'Content-Type: application/json' \
  -H 'cache-control: no-cache'
 Örnek Response
[
    {
        "id": 100,
        "status": "ACTIVE",
        "startDate": "2017-07-17T15:16:08+03:00",
        "termStartDate": "2017-07-17T15:16:08+03:00",
        "termEndDate": "2017-07-18T15:16:08+03:00",
        "endDate": "2017-07-18T15:16:08+03:00",
        "subscriber": {
            "id": 3,
            "name": "John",
            "surname": "Doe"
        },
        "offer": {
            "id": -44,
            "secureId": "asd-006",
            "name": "Browsymous Box 24 Months, BC Based",
            "price": 100,
            "currency": "TRY",
            "openEnded": false,
            "multiplePurchase": true,
            "recurrenceCount": 24,
            "recurrence": {
                "id": 5,
                "recurrenceType": "MONTHLY",
                "length": 1
            },
            "productType": "PHYSICAL",
            "renewalType": "BILLCYCLE",
            "disablePaymentForm": false,
            "physicalProduct": true,
            "renewalBillcycleBased": true
        },
        "company": {
            "id": -1
        },
        "services": []
    },
    {
        "id": 101,
        "status": "FINISHED",
        "startDate": "2017-07-17T15:16:08+03:00",
        "termStartDate": "2017-07-17T15:16:08+03:00",
        "termEndDate": "2017-07-18T15:16:08+03:00",
        "endDate": "2017-07-18T15:16:08+03:00",
        "subscriber": {
            "id": 3,
            "name": "John",
            "surname": "Doe"
        },
        "offer": {
            "id": -44,
            "secureId": "asd-006",
            "name": "Browsymous Box 24 Months, BC Based",
            "price": 100,
            "currency": "TRY",
            "openEnded": false,
            "multiplePurchase": true,
            "recurrenceCount": 24,
            "recurrence": {
                "id": 5,
                "recurrenceType": "MONTHLY",
                "length": 1
            },
            "productType": "PHYSICAL",
            "renewalType": "BILLCYCLE",
            "disablePaymentForm": false,
            "physicalProduct": true,
            "renewalBillcycleBased": true
        },
        "company": {
            "id": -1
        },
        "services": []
    }
]