Skip to content
Armada Developers
Branches
Core resourcesAPI v2

Branches

Branches identify a merchant's pickup locations. Use a branch's id as origin.branch_id when creating a delivery.

Create a branch

Enable branch:write on the API key and send POST /v2/branches:

json
{
  "name": "Main branch",
  "phone": "+96590000000",
  "latitude": 29.3359,
  "longitude": 48.0758
}

Coordinates are top-level latitude and longitude fields. Store the returned id for later requests.

Operations

MethodPathActionPermission
GET/v2/branchesList branchesbranch:read
POST/v2/branchesCreate a branchbranch:write
GET/v2/branches/{id}Retrieve a branchbranch:read
PUT/v2/branches/{id}Update a branchbranch:update
DELETE/v2/branches/{id}Delete a branchbranch:delete

Branches belong to the merchant associated with the API key. When updating, send only changed fields; resubmitting the current branch name returns 400. See the API reference for request fields and responses.