Each Order is a completed booking that the customer has made using Checkout. Each Order will contain one or more OrderItems - each is a session or booked out facility. For each Order, there is a generated receipt that customers can view. Orders are sorted in descending order by order date with the most recently completed Orders appearing first in the list.
This is useful to provide customers with a history of Orders that they have made and actions for each Order e.g. viewing receipts, cancelling orders, etc.
Headers
X-API-KEYmust be provided when making the request to this endpoint. This authorizes you to access the API for your customers.
Request
GET https://book.imin.co/api/v2/orders?customerIdentifier={customerIdentifier}&page={page}
This request must be made Server-side. Otherwise, it would be possible to view the secret API key with a browser.
The customerIdentifier parameter is the imin customer identifier that was created when you called our POST /customers endpoint with the customer in question
The page parameter specifies which page of Orders is returned
view shows the total number of pages and helpful pages like previous, next and last
imin:item is the array of Order relating to the customer, ordered by orderDate in descending order.
orderedItem is the OrderItem for the Order
orderedItem.orderedItem is the ScheduledSession or FacilityUseSlot for that Order
imin:receipt is an Array of Invoices, sorted such that the most recent receipt is the first item in the array of Invoices. If no imin:receipt attribute is present on the Order, that means no receipts exist for this order.
confirmationNumber is the confirmation number for that Order