Retrieve a list of classes
GET/api/v3/class
Request
Responses
- 200
- 400
- 401
- 404
Object was fetched successfully
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
code integer
status string
message stringnullable
details objectnullable
response object
{
"code": 0,
"status": "string",
"message": "string",
"details": {},
"response": {}
}
{
"code": 200,
"status": "OK",
"message": "",
"details": {},
"response": [
{
"class_id": 4,
"name": "KMT-20",
"accounting_sku": "KMT-20"
},
{
"class_id": 8,
"name": "PREM-BRZ",
"accounting_sku": "PREM-03"
},
{
"class_id": 6,
"name": "PREM-GLD",
"accounting_sku": "PREM-01"
},
{
"class_id": 7,
"name": "PREM-SLVR",
"accounting_sku": "PREM-02"
},
{
"class_id": 9,
"name": "QT",
"accounting_sku": "QT-01"
},
{
"class_id": 3,
"name": "TBT-03",
"accounting_sku": "TBT-03"
},
{
"class_id": 5,
"name": "TBT-05",
"accounting_sku": "TBT-05"
},
{
"class_id": 1,
"name": "Test -UGG-01",
"accounting_sku": "UGG-01"
},
{
"class_id": 2,
"name": "VRG-02",
"accounting_sku": "VRG-02"
}
]
}
Bad request
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
code integer
status string
message stringnullable
details objectnullable
response boolean
{
"code": 0,
"status": "string",
"message": "string",
"details": {},
"response": true
}
{
"code": 400,
"status": "Error",
"message": "Missing or invalid parameter.",
"details": {},
"response": false
}
Authentication error
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
code integer
status string
message stringnullable
details objectnullable
response boolean
{
"code": 0,
"status": "string",
"message": "string",
"details": {},
"response": true
}
{
"code": 401,
"status": "Error",
"message": "Invalid or incorrect authorization [Missing (basic) authorization header.]",
"details": {},
"response": false
}
Object not found
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
code integer
status string
message stringnullable
details objectnullable
response booleannullable
{
"code": 0,
"status": "string",
"message": "string",
"details": {},
"response": true
}
{
"code": 404,
"status": "Error",
"message": "This object does not exist.",
"details": {},
"response": null
}
Loading...