company logo

Help center

Go to Agentcis
Follow us on FacebookFollow us on Linkedin
All collectionsAPI DocumentationVendor/Partner Branches

Vendor/Partner Branches

Vendor/Partner Branches

List of Partner Branches 🔒

  • Endpoint: {{Base URL}}/partners/{partnerId}/branches/list

  • Method: GET

  • Description: Fetch the list of branches according to Partner/Vendors

Query String Parameters


page=1&per_page=10


Response


{

    "data": [

        {

            "id": 3524,

            "name": "Grenfell St Campus",

            "type": "Head Office",

            "email": "[email protected]",

            "address": {

                "street": "Level 11, 68 Grenfell Street",

                "state": "South Australia",

                "city": "Adelaide",

                "zip_code": "5000",

                "country": {

                    "id": 11,

                    "name": "Australia"

                },

                "formatted": "Level 11, 68 Grenfell Street, Adelaide, South Australia, 5000, Australia"

            },

            "master_id": 9,

            "phone_number": {

                "actual": "61 8 8232 6190"

            }

        },

        {

            "id": 3528,

            "name": "Blacktown Campus",

            "type": "Other Office",

            "email": "[email protected]",

            "address": {

                "street": "1\/107-109 , Main St",

                "state": "New South Wales",

                "city": "Blacktown",

                "zip_code": "2148",

                "country": {

                    "id": 11,

                    "name": "Australia"

                },

                "formatted": "1\/107-109 , Main St, Blacktown, New South Wales, 2148, Australia"

            },

            "master_id": 9291,

            "phone_number": {

                "actual": "61 8 8232 6190"

            }

        }

]

 "links": {

        "first": "http:\/\/demoagency.agentcisapp.com\/api\/v2\/partners\/1558\/branches?page=1",

        "last": "http:\/\/demoagency.agentcisapp.com\/api\/v2\/partners\/1558\/branches?page=1",

        "prev": null,

        "next": null

    },

    "meta": {

        "current_page": 1,

        "from": 1,

        "last_page": 1,

        "links": [

            {

                "url": null,

                "label": "« Previous",

                "active": false

            },

            {

                "url": "http:\/\/demoagency.agentcisapp.com\/api\/v2\/partners\/1558\/branches?page=1",

                "label": "1",

                "active": true

            },

            {

                "url": null,

                "label": "Next »",

                "active": false

            }

        ],

        "path": "http:\/\/demoagency.agentcisapp.com\/api\/v2\/partners\/1558\/branches",

        "per_page": 10,

        "to": 5,

        "total": 5

    }

}

Did this answer your question?
😞
😐
😁