The location account object has the following fields:
| Field | Type | Description |
|---|---|---|
| id | number | Location account ID |
| title | string | Title |
| type | number | 1 - for non-cash payments, 0 for cash |
| comment | string | Description to the location account |
Security
BearerPartnerUser
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/accounts/{location_id}
- Productionhttps://api.alteg.io/api/v1/accounts/{location_id}
curl -i -X GET \
'https://developer.alteg.io/_mock/en/b2b-v1/openapi/accounts/{location_id}' \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: string'OK
Array of objects with data
Example:
[ { "id": 13881, "title": "Main location account", "type": 0, "comment": "Standing at the reception" }, { "id": 13882, "title": "Payment account", "type": 1, "comment": "For non-cash payments" }, { "id": 21961, "title": "Advances", "type": 0, "comment": "" } ]
Response
{ "success": true, "data": [ { … }, { … }, { … } ], "meta": [] }