List orders in the back office
Lists orders for the back office, newest first, 50 a page (limit, at most 100), paged with nextToken; total counts every page. One list serves the orders page, a hotel (hotelReference), a trip (travelersTripId), an advisor (advisorUserId, the advisor credited with the order) and a payer (payerUserId). from and to are UTC days of the order's creation, both included; without them the list reads the last 90 days, or every date when it is narrowed by one of those four ids. status, productType, currency (UNKNOWN for orders without an amount) and entryMethod (RECORDED for every order recorded from a provider) narrow it further, and q searches the order id, provider locator, payer email, hotel reference, product name, supplier confirmation and the names of the people on the order. Lodging orders carry the property facts they were sold with. The agency is named by the x-nicer-company header and nothing else: Nicer staff who name none read every agency's orders; with an agency named, staff and its admins read that agency's. An agency admin may name only an agency they administer, and may leave the header out when they administer one. The providerKey field is answered to Nicer staff only, and the providerKey filter is staff only too. Errors: 400 ERROR_INVALID_QUERY for a bad parameter or a from after to; 400 ERROR_COMPANY_REQUIRED for an admin of several agencies who names none; 403 ERROR_DO_NOT_HAVE_PERMISSION for a caller who is neither Nicer staff nor an admin of the agency named, and for an admin who sends providerKey.
Authorization
Query parameters
- fromoptionalstring
The first UTC day of the orders' creation, included. When neither from nor to is sent, the last 90 days, unless the list is narrowed by travelersTripId, hotelReference, advisorUserId or payerUserId, which reads every date.
format: date · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$ · example: "2026-08-12" - tooptionalstring
The last UTC day of the orders' creation, included; today by default. A from without a to reads up to today; a to without a from reads the 90 days before it.
format: date · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$ · example: "2026-11-10"
Header parameters
Returns
200
OK