Get packages

Subscription API v1
GET*base*/subscription/packages
Authentication:API key

Receive a list of all the active packages and their price in the provided pricelist.

Parameters

pricelist

string
required
Name of pricelist to list packages for.

Request example

1
GET <base>/subscription/packages?pricelist=SEK HTTP/1.1

Response

200 Content-type: application/json

packages

array
required

List of all packages in the selected currency.

id

int
ID of the package.

name

string
Name of the package.

price

string
Price amount for the package.

currency

string
Currency code for the package. SEK, USD, EUR, etc.

products

array

Array of products inside the package.

id

int
ID of the product.

size

string
Size name of the product selected in the package.

variant

string
Variant name of the product selected in the package.

product

string
Product name.

Response example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
  "packages": [
    {
      "id": 1,
      "name": "Super Package 5000",
      "price": "123.50",
      "currency": "SEK",
      "products": [
        {
          "id": "1",
          "size": "S",
          "variant": "Red",
          "product": "T-shirt"
        }
      ]
    },
    {
      "id": 2,
      "name": "Super Package 10000",
      "price": "246.50",
      "currency": "SEK",
      "products": [
        {
          "id": "1",
          "size": "L",
          "variant": "Red",
          "product": "T-shirt"
        }
      ]
    }
  ]
}