GET /company/shops/@id/promocode-groups
This endpoint requires authentication.
Header | Value |
---|---|
Authorization | Set the value to Bearer + + access_token |
Replace the @ keywords in the URL with their corresponding value.
A dictionary with fields
Field | Type | Description |
---|---|---|
id | Int | Shop ID |
GET /company/shops/14/promocode-groups HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.10.0
Accept-Language: en-US,en;q=0.5
Array of company.PromoCodeGroup: [company.PromoCodeGroup]
Field | Type | Description |
---|---|---|
codes | [String] | Array of String |
discount_type | String | String enumarion of 'PERCENT', 'FIXED' |
usage_type | String | String enumarion of 'X_USES_TOTAL', 'X_USES_PER_PERSON' |
fixed_discount | Int | An integer value |
percent_discount | Int | An integer value |
minimum_order_price | Int | An integer value |
expiry_date | Date? | Nullable. Date in YYYY-MM-DD |
max_uses | Int | An integer value |
max_uses_per_user | Int | An integer value |
applicable_on | Dictionary | A dictionary with fields |
id | Int | An integer value |
shop_id | Int | An integer value |
times_used | Int | An integer value |
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 2404
[
{
"codes": [
"...",
"...",
"..."
],
"discount_type": "PERCENT",
"usage_type": "X_USES_TOTAL",
"fixed_discount": 17,
"percent_discount": 14,
"minimum_order_price": 12,
"expiry_date": "2019-01-31",
"max_uses": 11,
"max_uses_per_user": 16,
"applicable_on": {
"all": true,
"products": [
18,
19,
13
],
"categories": [
17,
19,
13
],
"product_prices": [
11,
11,
10
]
},
"id": 10,
"shop_id": 19,
"times_used": 18
},
{
"codes": [
"...",
"...",
"..."
],
"discount_type": "PERCENT",
"usage_type": "X_USES_TOTAL",
"fixed_discount": 15,
"percent_discount": 10,
"minimum_order_price": 16,
"expiry_date": "2019-01-31",
"max_uses": 16,
"max_uses_per_user": 12,
"applicable_on": {
"all": false,
"products": [
13,
10,
19
],
"categories": [
12,
16,
10
],
"product_prices": [
16,
13,
14
]
},
"id": 19,
"shop_id": 12,
"times_used": 10
},
{
"codes": [
"...",
"...",
"..."
],
"discount_type": "PERCENT",
"usage_type": "X_USES_TOTAL",
"fixed_discount": 10,
"percent_discount": 10,
"minimum_order_price": 18,
"expiry_date": "2019-01-31",
"max_uses": 13,
"max_uses_per_user": 11,
"applicable_on": {
"all": false,
"products": [
18,
14,
14
],
"categories": [
18,
17,
15
],
"product_prices": [
12,
12,
10
]
},
"id": 11,
"shop_id": 19,
"times_used": 13
}
]