List service orders on order
List the service orders connected to a sales order, so a sale can be opened from the service it came out of and a service from the sale it belongs to. Each entry says how the two are connected: BILLED for a sales order that was generated from the service order to bill the work done on it, SOLD_ITEM for a service order about an item that was sold on this sales order. The entries are slimmed down to what is needed to show them and open them — read the whole service order through the service order endpoints. Every service order of the tenant connected to the sales order is returned to a caller holding any one of SERVICE_ORDER, SALES_ORDER and RETURN_ORDER at any level — tenant-wide, at an organization or at any one store — whichever store owns it and whichever store took it in. A caller holding none of them, a user with no role assignments included, is refused with a 403. At a tenant whose SERVICE_WORKSHOP extension is not active the list is refused with a 403 for every caller. Opening a service order from the list through get-serviceorders-by-id asks for SERVICE_ORDER, so a caller holding only SALES_ORDER or RETURN_ORDER sees the entry and is refused on opening it.
Required permissions: SERVICE_ORDER,SALES_ORDER,RETURN_ORDER
Access token recevied after user login with a deviceToken
Reference to a tenant.
^[A-Za-z0-9-_]+Reference to an Order.
^[A-Za-z0-9-_]+Reference to a specific page in a result set.
The number of items per page in a result set.
Example response
GET /v2/tenants/{tenantUid}/orders/{orderUid}/serviceorders HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Example response
{
"items": [
{
"serviceOrderUid": "text",
"storeUid": "text",
"createdFromStoreUid": "text",
"serviceNumber": "text",
"title": "text",
"serviceState": "AWAITING_PRODUCT",
"serviceStatusUid": "text",
"serviceStatusName": "text",
"serviceStatusColor": "text",
"relation": "BILLED"
}
],
"paging": {
"pageNumber": 1,
"pageSize": 1,
"totalCount": 1
}
}Last updated
Was this helpful?

