centres
GET /utils/centres
This endpoint retrieves a list of centres.
Request
No request body is required for this request.
Response
The response will be a JSON object with the following schema:
{
"type": "object",
"properties": {
"status": {
"type": "boolean"
},
"message": {
"type": "string"
},
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"centre_name": {
"type": "string"
},
"centre_code": {
"type": "string"
},
"centre_location": {
"type": "object",
"properties": {
"city": {
"type": "string"
},
"ward": {
"type": "string"
},
"local": {
"type": "string"
},
"state": {
"type": "string"
},
"region": {
"type": "object",
"properties": {
"latitude": {
"type": "number"
},
"longitude": {
"type": "number"
}
}
},
"country": {
"type": "string"
},
"state_code": {
"type": "string"
},
"postal_code": {
"type": "string"
},
"country_code": {
"type": "string"
},
"neighborhood": {
"type": "string"
},
"formattedAddress": {
"type": "string"
}
}
},
"status": {
"type": "string"
},
"label": {
"type": "string"
},
"value": {
"type": "string"
}
}
}
}
}
}
GET
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Headers
Example:
"no-cache"
Example:
"<calculated when request is sent>"
Example:
"<calculated when request is sent>"
Example:
"PostmanRuntime/7.39.1"
Example:
"gzip, deflate, br"
Example:
"keep-alive"
Response
200 - application/json
success
The response is of type object
.