1. Home
  2. API v2.0
  3. Categories
  4. List Categories

List Categories

Method: /categories.[format] (page)

Syntax

https://[subdomain].salesbinder.com/api/2.0/categories.json?page=[number]

HTTP Request Type: GET

Sample Returned JSON Data

{
    "count": "2",
    "page": "1",
    "pages": "1",
    "categories": [
        [
            {
                "name": "T-Shirts",
                "description": "Sample description here.",
                "multiple": false,
                "default_markup": 20,
                "weight": 17,
                "item_count": 0,
                "id": "4d7d32ff-17b8-4555-b489-759eb86a92d9",
                "account_id": "4d616938-5555-439b-8bba-29bcb86a92d9",
                "modified": "2016-08-25T20:37:30+00:00",
                "created": "2011-03-13T21:11:27+00:00"
            },
            {
                "name": "Bikes",
                "description": "",
                "multiple": false,
                "default_markup": null,
                "weight": 18,
                "item_count": 1,
                "id": "50edb1de-05ec-4855-879b-1c88b86aa76a",
                "account_id": "4d616938-5555-439b-8bba-29bcb86a92d9",
                "modified": "2016-08-25T20:37:30+00:00",
                "created": "2013-01-09T18:07:26+00:00"
            }
        ]
    ]
}

Sample Returned XML Data

<?xml version="1.0" encoding="UTF-8" ?>
<response>
    <category>
        <name>T-Shirts</name>
        <description/>
        <multiple>1</multiple>
        <default_markup/>
        <weight>0</weight>
        <item_count>1</item_count>
        <id>4e6ada75-4d00-481e-9eb4-31acb86a92d9</id>
        <account_id>4d616938-5555-439b-8bba-29bcb86a92d9</account_id>
        <modified>8/25/16, 8:37 PM</modified>
        <created>9/10/11, 3:33 AM</created>
    </category>
    <category>
        <name>Bikes</name>
        <description/>
        <multiple>0</multiple>
        <default_markup/>
        <weight>18</weight>
        <item_count>1</item_count>
        <id>50edb1de-05ec-4878-879b-1c88b86aa76a</id>
        <account_id>4d616938-5555-439b-8bba-29bcb86a92d9</account_id>
        <modified>8/25/16, 8:37 PM</modified>
        <created>1/9/13, 6:07 PM</created>
    </category>
</response>
Was this article helpful to you? Yes No