Overview
User has permission on some locations to fetch accounting and transaction report.
Fetch authorized locations of customer
Required Scope: prod/user
URL: https://favrit.com/ws/accounting-api-service/v1/api/user/locations
Method: GET
Header: Authorization Bearer <access_token>
Request Sample
curl --location --request GET 'https://favrit.com/ws/accounting-api-service/v1/api/user/locations' \
--header 'Authorization: Bearer <access_token>' \
--header 'Content-Type: application/json'
Response Sample:
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"status": "SUCCESS",
"data": {
"locations": [
{
"id": 123456,
"active": true
},
{
"id": 9876543210,
"active": true
}
]
}
}
Remarks: Available locations for the customer.