Branch
create branch
Create branch
POST {base url}/v1/branch
Create branch
Headers
Authorization header*
String
API user secret key
Body
name
string
Name of the branch
location
string
Location of branch
Status
string
status of branch (active/ inactive)
Response
{
"responseCode": "00",
"message": "branch successfully created",
"data": {
"organizationId": "153c58d7-c15b-41fa-a717-67b5ae8e3f98",
"name": "ojodues",
"location": "20 Marina road, Lagos",
"status": "active",
"id": "e83baea7-9a46-4c3c-a1e0-9214d2006493",
"created_at": "2024-04-02T07:32:13.798Z",
"updated_at": "2024-04-02T07:32:13.798Z"
}
}get branches
Get branches
GET {base url}/v1/branch
Fetch all branches
Headers
Authorization header*
String
API user secret key
Query parameters
page
number
page to fetch
perPage
number
number of items on a page
Response
get a branch
Get a branch
GET {base url}/v1/branch/{branchId}
Fetch a single branch details
Headers
Authorization header*
String
API user secret key
Response
update branch
Update branch
PATCH {base url}/v1/branch/{branchId}
Update a single branch
Headers
Authorization header*
String
API user secret key
Body
name
string
Name of the branch
location
string
Location of branch
Status
string
status of branch (active/ inactive)
Response
Last updated
Was this helpful?