Fetching Account Information as a Company User
All account endpoints can be used by anyone with a user_company
token, if a PV.On_Behalf_Of
header is included in the request.
The value of the header should be the customer_id
of the customer you are trying to access the information for.
Customer Upcoming Schedule
Use this endpoint to fetch upcoming bookings (appointments, reservations, events) for a customer
Endpoint: /api/account/my-schedule
Header: PV.On_Behalf_Of
Query Params:
Param | Value | Default | Notes |
---|---|---|---|
type | appointment, reservation, event | n/a | |
date | Date | n/a | |
upcoming | boolean | true | Will fetch up to 120 days in the future |
include_global | boolean | n/a | Include global network bookings and events. Default is true if a valid |
Response
This endpoint will return a array of upcoming bookings, set as a generic booking object.\
The type of booking can be determined with the
type
propertyThe
block_type
property is only populated if thetype
is appointment | reservationcompany
is included because there is a possibility this booking was created in a company that is part of the global networklocation
is a nullable property - It will only be populated if the booking is attached to a business location
Last updated