riverty logo

Docs

Get All Subscriptions

Get all subscriptions filtered by customer.

Path

GET /v1/clients/{clientId}/subscriptions

Request Parameters

clientId required
integer
Your assigned `ClientId`.
customerNumber required
string
Id of the customer.

Responses

Successful RequestUnsuccessful Request, Incorrect Customer Number

Response Example

    
        [
 {
  "id": "subscription-id-1",
  "product": {
   "id": "subscription-product-id-1",
   "description": "Go Free 8GB"
  },
  "_links": [
   {
    "method": "GET",
    "href": "https://api-dev.horizonafs.io/subscription/v1/clients/1234/subscriptions/subscription-id-1",
    "rel": "self"
   },
   {
    "method": "GET",
    "href": "https://api.horizonafs.io/subscription/v1/clients/1234/subscription-products/subscription-product-id-1",
    "rel": "subscription-product"
   }
  ]
 }
]
    

Request Example

    
        null