Get all product service orders
POST /api/connector/v1/productServiceOrders/getAll
Returns all product service orders orders associated with the given enterprise. This operation uses Pagination and supports Portfolio Access Tokens..
Request Body
Section titled “Request Body ”object
Token identifying the client application.
Access token of the client application.
Name and version of the client application.
Limitation on the quantity of data returned and optional Cursor for the starting point of data.
object
Unique identifiers of the Enterprises. If not specified, the operation returns data for all enterprises within scope of the Access Token.
Unique identifiers of the Product service order.
Unique identifiers of the Services.
object
A list of product service order states to filter by.
Example
{ "ClientToken": "E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D", "AccessToken": "C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D", "Client": "Sample Client 1.0.0", "ProductServiceOrderIds": [ "9b59b50d-bd32-4ce5-add8-09ea0e1300e7" ], "ServiceIds": [ "ae8da28c-e8a4-4141-9df0-8c998976c691", "6b02d015-47ac-4c41-8e9f-5b4db61d4284" ], "UpdatedUtc": { "StartUtc": "2023-04-01T00:00:00Z", "EndUtc": "2023-05-05T00:00:00Z" }, "Limitation": { "Cursor": "819e3435-7d5e-441f-bc68-76d89c69b8f5", "Count": 10 }}
Responses
Section titled “ Responses ”OK
object
The product service order of the enterprise.
object
Unique identifier of the Service that service order is made against.
object
Owner of the reservation checked in.
All companions of the reservation checked in.
Any of the companions of the reservation checked in.
Check in was done via Connector API.
Unique identifier of the item one newer in time order than the items to be returned. If Cursor is not specified, i.e. null, then the latest or most recent items will be returned.
Example
{ "ProductServiceOrders": [ { "Id": "9b59b50d-bd32-4ce5-add8-09ea0e1300e7", "ServiceId": "ae8da28c-e8a4-4141-9df0-8c998976c691", "AccountId": "94843f6f-3be3-481b-a1c7-06458774c3df", "AccountType": "Customer", "CreatorProfileId": "3cd637ef-4728-47f9-8fb1-afb900c9cdcf", "UpdaterProfileId": "3cd637ef-4728-47f9-8fb1-afb900c9cdcf", "BookerId": "ebd507c5-6bfd-4ca9-96aa-ffed6fa94f72", "Number": "52", "State": "Confirmed", "Origin": "Connector", "CommanderOrigin": null, "OriginDetails": null, "CreatedUtc": "2023-04-23T14:58:02Z", "UpdatedUtc": "2023-04-23T14:58:02Z", "CancelledUtc": null, "VoucherId": null, "BusinessSegmentId": null, "Options": { "OwnerCheckedIn": true, "AllCompanionsCheckedIn": true, "AnyCompanionCheckedIn": true, "ConnectorCheckIn": true } } ], "Cursor": "9b59b50d-bd32-4ce5-add8-09ea0e1300e7"}
Server has successfully fulfilled the request and there is no additional information to send back.
object
Error caused by the client app, e.g. in case of malformed request or invalid identifier of a resource. In most cases, such an error signifies a bug in the client app (consumer of the API).
object
Error caused by usage of invalid ClientToken, AccessToken, or you may not have the necessary permission to use the endpoint.
object
Server error that should be reported to the end user of the client app. Happens for example when the server-side validation fails or when a business-logic check is violated.
object
Error caused by heavy request that takes too long to process (typically tens of seconds). To get around this, request data in smaller batches. For more information, see Request timeouts
object
Error caused by too many requests sent in a given amount of time. Response contains Retry-After
header indicating how long the user agent should wait before making a follow-up request. For more information, see Request limits.
object
Unexpected error on the Mews side. This may be due to a software fault. If such a situation occurs, the error will be logged and the development team notified, however you can raise an issue through GitHub on our documentation repository.