get
https://demo-api.edfapay.com/api/v1/branches/search
Search & Retrieve Branches, ACCESS LEVEL: SUPER_ADMIN, PARTNER, MERCHANT
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Overview
Retrieve a paginated list of branches with optional filtering.
Endpoint
GET https://demo-api.edfapay.com/api/v1/branches/search
Query Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| pageNumber | Integer | Yes | Page number (starts from 0) |
| pageSize | Integer | Yes | Number of records |
| text | String | No | Search by branch name |
| active | Boolean | No | Filter active branches |
Request Example
curl --location 'https://revamp-api.edfapay.com/api/v1/branches/search?pageNumber=0&pageSize=10&text=test&active=true' \
--header 'X-API-KEY: <Your API Key>'Response Body
| Field | Type | Description |
|---|---|---|
| code | Integer | Response code |
| message | String | Status message |
| data.content | Array | List of branches |
| data.content[].id | UUID | Branch ID |
| data.content[].name | String | Branch name |
| data.content[].nameAR | String | Arabic name |
| data.content[].businessUnitId | UUID | Business unit |
| data.content[].address | String | Address |
| data.content[].countryCode | String | Country code |
| data.content[].cityId | Integer | City ID |
| data.content[].active | Boolean | Active status |
| data.number | Integer | Page number |
| data.size | Integer | Page size |
| data.totalElements | Integer | Total records |
| data.totalPages | Integer | Total pages |
Response Example
{
"code": 200,
"message": "Success",
"data": {
"content": [
{
"id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Test Branch",
"nameAR": "فرع",
"businessUnitId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"address": "Test Address",
"countryCode": "818",
"cityId": 8,
"active": true
}
],
"number": 0,
"size": 10,
"totalElements": 1,
"totalPages": 1
}
}