Get Categories
API Endpoint
Get TwinBP existing 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/category'
To get characters you need to make a Get call to the following url
:
https://app.twinbp.com/api/category
Result example :
{
"stauts": "success",
"status_code": 140,
"message": "successfully processed",
"data": [
{
"id": 1,
"name": "Paints",
"code": "Paints",
"description": "Paints",
"slug": "paints",
"is_active": "1",
"is_deleted": "0",
"created_at": null,
"updated_at": "2023-12-25T07:11:55.000000Z"
},
{
"id": 2,
"name": "Cement",
"code": "cement",
"description": "Cement sample description",
"slug": "cement",
"is_active": "1",
"is_deleted": "0",
"created_at": null,
"updated_at": null
},
{
"id": 3,
"name": "Metal",
"code": "meatal-e",
"description": "Sample testing",
"slug": "meatal-e",
"is_active": "1",
"is_deleted": "0",
"created_at": "2023-09-20T10:30:01.000000Z",
"updated_at": "2023-09-20T10:30:01.000000Z"
},
{
"id": 4,
"name": "Tiles",
"code": "Tile12345",
"description": "Testing 123",
"slug": "tile12345",
"is_active": "1",
"is_deleted": "0",
"created_at": "2023-09-29T05:16:32.000000Z",
"updated_at": "2024-01-17T09:28:51.000000Z"
},
{
"id": 6,
"name": "Roofing Sheets",
"code": "RS123",
"description": "TTTT",
"slug": "rs123",
"is_active": "1",
"is_deleted": "0",
"created_at": "2023-11-14T06:25:35.000000Z",
"updated_at": "2023-11-14T06:25:35.000000Z"
},
{
"id": 7,
"name": "Electrical Items",
"code": "EI1233566",
"description": "TESTING 12345678\r\n91011",
"slug": "ei1233566",
"is_active": "1",
"is_deleted": "0",
"created_at": "2023-11-16T05:47:11.000000Z",
"updated_at": "2023-12-25T09:38:49.000000Z"
}
}
Input Data
Field | Type | Description |
---|
Errors
The Get Categories API uses the following error codes:
Error Code | Meaning |
---|---|
1000 | something went wrong message |