Edit this Page

Subscription Querying (merchantSubscriberId)

You can query subscriptions for your customers using the merchantSubscriberId value.

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

For security reasons, this service requires API authorization. Click for details about API authorization.

 Pagination

You can pagination by sending page and size parameters to your URL.

 Sample 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'
 Sample 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": []
    }
]