Returns a paginated list of used items (consumed parts, labour, on-the-fly items) declared on the specified work order, sorted by lastUpdate descending.
Pair with the Praxedo webhook for near-real-time invoicing or stock synchronisation.
Rate limit range : High
Query parameters
-
The continuation token which was received in the previous request. It contains information on the page to fetch. If not present, then the first page of results will be returned.
-
Maximum number of items returned per page. Hard limit 200.
Minimum value is
1, maximum value is200. Default value is200. -
Filter items by billing ownership.
external- items charged to an external party (customer-facing invoice).internal- items consumed internally (sub-contractor or internal cost).all- no filter, returns all items regardless of invoice mode (default).
Values are
external,internal, orall. Default value isall.
GET
/eTech/rest/ws/fieldService/v1/workOrders/uuid:{workOrderUuid}/items/used
curl \
--request GET 'https://ws-eu1.praxedo.com/eTech/rest/ws/fieldService/v1/workOrders/uuid:550e8400-e29b-41d4-a716-446655440000/items/used' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
First page with continuation token
{
"continuationToken": "eyJsYXN0VXBkYXRlIjoiMjAyNC0xMC0xNVQxNjowNTowMFoifQ==",
"data": [
{
"lineItemId": "80ae5498-6d98-45d0-be83-11748b49692a",
"itemCode": "PUMP-V3",
"agentCode": "T_SMITH_04",
"billing": {
"associatedSectionCode": "REPLACEMENT_SECTION",
"invoiceMode": "INTERNAL",
"name": "Pompe elec motron v3",
"reference": "182DGH32",
"expectedQuantity": 1,
"usedQuantity": 1,
"usedVatRate": 0.2,
"unitPrice": {
"catalogValue": 69,
"associatedContract": 2683,
"value": 59,
"currency": "USD"
}
},
"tracking": {
"serialNumber": "SN-9982-XP",
"stockCode": null
},
"lastUpdate": "2024-10-15 16:05:00 UTC"
}
]
}
{
"continuationToken": null,
"data": [
{
"lineItemId": "ffffffff-0000-0000-0000-000000000001",
"itemCode": "JOINT-50MM",
"agentCode": "T_MARTIN_07",
"billing": {
"associatedSectionCode": null,
"invoiceMode": "EXTERNAL",
"name": "Joint caoutchouc 50mm",
"reference": null,
"expectedQuantity": null,
"usedQuantity": 3,
"usedVatRate": null,
"unitPrice": {
"catalogValue": null,
"associatedContract": null,
"value": 4.5,
"currency": "EUR"
}
},
"tracking": {
"serialNumber": null,
"stockCode": "STOCK-PARIS-03"
},
"lastUpdate": "2024-10-14 09:10:00 UTC"
}
]
}
{
"continuationToken": null,
"data": []
}
Response examples (400)
Invalid continuation token
{
"errors": [
{
"code": "fieldService.continuationToken.invalid",
"message": "The provided continuation token does not respect the expected format."
}
],
"errorReference": "59ddc09a23159395367307ab95b1c41a"
}
{
"errors": [
{
"code": "fieldService.pageSize.exceeded",
"message": "pageSize must not exceed 200."
}
],
"errorReference": "223e4567-e89b-12d3-a456-426614174001"
}
Response examples (401)
401 unauthorized
{
"errors": [
{
"code": "unauthorized.nocredentials",
"message": "No credentials."
}
],
"errorReference": "f939c6b8c15045c9a70f500fdb570555"
}
{
"errors": [
{
"code": "unauthorized.badcredentials",
"message": "Bad Credentials."
}
],
"errorReference": "f1028f99811b422eb21f5ff176664069"
}
Response examples (403)
{
"errors": [
{
"code": "access.forbiden",
"message": "You don't have the rights to access this resource."
}
],
"errorReference": "a745dc4c5a2b473aaf8ce94c9260aa8f"
}
Response examples (404)
{
"errors": [
{
"code": "fieldService.workOrder.notfound",
"message": "Work order not found."
}
],
"errorReference": "a745dc4c5a2b473aaf8ce94c9260aa8f"
}
Response examples (429)
{
"errors": [
{
"code": "ratelimiter.toomanyrequest",
"message": "Rejected because of the rate limit definition."
}
],
"errorReference": "973326230a3f44daba6cc34a5939b4fb"
}
Response examples (500)
{
"errors": [
{
"code": "internal.server.error",
"message": "Something went wrong."
}
],
"errorReference": "6377010431314bf6b0b95ec4d32ddae0"
}