Skip to content

Get location accounts

Request

The location account object has the following fields:

FieldTypeDescription
idnumberLocation account ID
titlestringTitle
typenumber1 - for non-cash payments, 0 for cash
commentstringDescription to the location account
Security
BearerPartnerUser
Path
location_idnumberrequired

location ID

Headers
Acceptstringrequired

e.g. application/vnd.api.v2+json

Example:application/vnd.api.v2+json
Content-Typestringrequired

application/json

Authorizationstringrequired

Bearer partner_token, User user_token

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'

Responses

OK

Bodyapplication/json
successboolean

Execution success status (true)

Example:true
dataArray of objects

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": "" } ]
metaArray of objects

Metadata (empty array)

Example:
[]
Response
{ "success": true, "data": [ { … }, { … }, { … } ], "meta": [] }