Get started

    API Endpoint
                

Get My Items

To use this API, you need an API key. Please contact us at https://app.twinbp.com to get your own API key.

get characters


curl --location 'https://app.twinbp.com/api/
viewMyItems/enter_your_refresh_token'

To get characters you need to make a Get call to the following url :
https://app.twinbp.com/api/viewMyItems/enter_your_refresh_token



Result example :

            {   
                "stauts": "success",
                "status_code": 200,
                "message": "Successfuly Procceed.",
                "hardware_id": 175,
                "pending_items": [
                    {
                    "id": 1,
                    "category_id": null,
                    "sub_category_id": null,
                    "category_name": "Wood",
                    "sub_category_name": "roofing wood",
                    "name": "2\" * 2\" roofing wood alostroniya",
                    "code": "1",
                    "brand_id": null,
                    "brand_name": "causlin",
                    "pack_size": "100 pieces",
                    "status": "approved",
                    "selected_category": null,
                    "selected_subcategory": null,
                    "selected_brand": null
                },
                {
                    "id": 2,
                    "category_id": "3",
                    "sub_category_id": "10",
                    "category_name": null,
                    "sub_category_name": null,
                    "name": "Hammer DRILL 6 mm  black",
                    "code": "2",
                    "brand_id": "10",
                    "brand_name": null,
                    "pack_size": "20 pieces",
                    "status": "approved",
                    "selected_category": {
                        "id": 3,
                        "name": "Metal",
                        "code": "meatal-e",
                        "description": "Sample testing",
                        "slug": "meatal-e"
                    },
                    "selected_subcategory": {
                        "id": 10,
                        "category_id": "6",
                        "name": "Fibre cement",
                        "code": "tt",
                        "description": "tt",
                        "slug": "tt"
                    },
                    "selected_brand": null
                },
                {
                    "id": 3,
                    "category_id": "1",
                    "sub_category_id": "1",
                    "category_name": null,
                    "sub_category_name": null,
                    "name": "Dulux Weathershield Extra - Water Base",
                    "code": null,
                    "brand_id": "1",
                    "brand_name": null,
                    "pack_size": "20 L",
                    "status": "pending",
                    "selected_category": {
                        "id": 1,
                        "name": "Paints",
                        "code": "Paints",
                        "description": "Paints",
                        "slug": "paints"
                    },
                    "selected_subcategory": {
                        "id": 1,
                        "category_id": "1",
                        "name": "Weather Sealer",
                        "code": "weather-seal",
                        "description": "Weather sealer paintings sample description",
                        "slug": "weather-sealer"
                    },
                    "selected_brand": {
                        "id": 1,
                        "name": "Dulux Paints",
                        "code": "dulax-paint",
                        "link": "dulax.com",
                        "logo": "test.png"
                    }
                }
            }
                

Input Data

Field Type Description

Errors

The View My Items API uses the following error codes:

Error Code Meaning
403 Refresh token has expired
404 Invalid or non-existent refresh token
405 Refresh token Not Valid