Get Order

This endpoint is used to fetch the details of an order. It can be used when a new webhook event is received. It can also be used to fetch the order at a later date if required.

Note: For the best end user experience, we recommend to include the following fields when showing the order to the user (eg. on a docket, bump screen):

  • origin.name - this displays the name of the App the order originated from,
  • origin.orderReference - this displays the order reference that allows its easy identification,
  • customers.firstName - this displays the name of the customer.

    Please keep in mind that those fields do not have restrictions on length and might need to be handled appropriately on your end to be displayed correctly to the end user.
Request
Security:
path Parameters
id
required
string
header Parameters
Authorization
required
string
Default: Bearer {$$.env.access_token}
Responses
200

The order response

get/orders/{id}
Request samples
curl -i -X GET \
  'https://api.tyro.com/connect/orders/{id}' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
Response samples
application/json
{
  • "id": "uuid-1001",
  • "locationId": "tc-location-1001",
  • "origin": {
    },
  • "status": "ACCEPTED",
  • "notes": "Support it, but plenty of Merchants want it disabled. This would be an app setting",
  • "items": [
    ],
  • "discounts": [
    ],
  • "surcharges": [
    ],
  • "total": {
    },
  • "table": {
    },
  • "customers": [
    ],
  • "paymentStatus": "CLOSED",
  • "fulfilment": {
    }
}
Copyright © Tyro Payments 2019-2024. All right reserved.