Skip to content

Get a list of products

Request

Returns a list of all products for the specified location

Security
BearerPartnerUser
Path
location_idnumberrequired

Location ID

Headers
Acceptstringrequired

application/vnd.api.v2+json

Authorizationstringrequired

Bearer partner_token, User user_token

curl -i -X GET \
  'https://developer.alteg.io/_mock/en/b2b-v1/openapi/locations/{location_id}/products' \
  -H 'Accept: string' \
  -H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>'

Responses

OK

Bodyapplication/json
successboolean

Execution success status (true)

Example:true
dataArray of objects

Array of products

Example:
[ { "title": "Shampoo 1", "value": "Shampoo 1", "label": "Shampoo 1 (123)", "good_id": 123456, "cost": 100500, "unit_id": 4835, "unit_short_title": "PC" } ]
metaArray of objects

Metadata (empty array)

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