Skip to content

Get Appointment Product Item

Request

Retrieve a Product item associated with an Appointment as a JSON:API resource object.

The positive response shape is verified against the current PHP transformer but has not been live-verified because the test Location has no safe fixture.

Security
BearerPartnerUser
Path
location_idintegerrequired

Location ID

attendance_product_item_idintegerrequired

Appointment Product Item ID

Query
includeArray of strings, unique

Related resources to include. Wire values are literal API keys; staff represents the Team Member and good represents the Product.

Items Enum:"good""staff""storage_amount""loyalty_abonement""loyalty_certificate""marks"
Headers
Acceptstringrequired

Required B2B v2 response media type. Use application/vnd.api.v2+json. A charset parameter is also accepted.

Default:"application/vnd.api.v2+json"
Example:application/vnd.api.v2+json
Authorizationstringrequired

Bearer {partner_token}, User {user_token}

curl -i -X GET \
  'https://developer.alteg.io/_mock/en/b2b-v2/openapi/locations/{location_id}/attendance_product_items/{attendance_product_item_id}?include=good' \
  -H 'Accept: application/vnd.api.v2+json' \
  -H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>'

Responses

Appointment Product Item retrieved successfully

Bodyapplication/json
dataobject(Appointment Product Item Resource)required
metaArray of any, <= 0 itemsrequired
includedArray of objects(includedResource)

Resources requested through include, when available

Response
{ "data": { "type": "attendance_good_item", "id": "string", "attributes": { … }, "relationships": { … } }, "included": [ { … } ], "meta": [] }