Get Sub Categoeries
API Endpoint
Get TwinBP exisiting Sub Categories.
To use this API, you need an API key. Please contact us at https://twinbp.com to get your own API key.
get characters
curl --location 'https://app.twinbp.com/api/subcategory/2'
To get characters you need to make a Get call to the following url
:
https://app.twinbp.com/api/subcategory/2
Result example :
{
"stauts": "success",
"status_code": 140,
"message": "successfully processed",
"data": [
{
"id": 3,
"category_id": "2",
"name": "Tokyo",
"code": "TC",
"description": "Testing",
"slug": "tc",
"is_active": "1",
"is_deleted": "0",
"created_at": "2023-09-20T12:23:14.000000Z",
"updated_at": "2023-09-20T12:23:14.000000Z"
},
{
"id": 4,
"category_id": "2",
"name": "Holcim",
"code": "H cement",
"description": "Holcim cement",
"slug": "testing",
"is_active": "1",
"is_deleted": "0",
"created_at": null,
"updated_at": null
},
{
"id": 15,
"category_id": "2",
"name": "Lanwa",
"code": "123",
"description": "Testing",
"slug": "123",
"is_active": "1",
"is_deleted": "0",
"created_at": "2023-11-22T04:31:01.000000Z",
"updated_at": "2023-11-22T04:31:01.000000Z"
}
]
}
Input Data
Field | Type | Description |
---|
Errors
The Sub categories by category id API uses the following error codes:
Error Code | Meaning |
---|---|
1000 | something went wrong message |
1030 | validation failed, please try again message |