Coupon categories

Parameters

HTTP method

Access rights

URL

Parameters

Note

GET public_data https://api.admitad.com/coupons/categories/
  • limit **
  • offset **

Returns coupons categories.*

GET public_data https://api.admitad.com/coupons/categories/{id}/  

Returns coupons category, where id is the category identifier.*

  • * Returns the result in the JSON format.

  • ** Sets skipping and the number of records returned. For example limit=5&offset=2.

Example of use

Example of a request with utility ``curl``:

curl -L -H 'Authorization: Bearer access_token' -X GET https://api.admitad.com/coupons/categories/?limit=2

Example of the response from the API server in the JSON format:

{
    "results": [
        {
            "name": "Category name 1",
            "id": 1
        },
        {
            "name": "Category name 2",
            "id": 2
        }
    ],
    "_meta": {
        "count": 10,
        "limit": 2,
        "offset": 0
    }
}

Description of API server response fields

Name

Description

id

Coupon category ID

name

Name of coupon category