Get list of used items on a work order by uuid Under development

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://developers.praxedo.com/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "Public REST apis MCP server": {
    "url": "https://developers.praxedo.com/mcp"
  }
}

Close
GET /eTech/rest/ws/fieldService/v1/workOrders/uuid:{workOrderUuid}/usedItems

Returns the used items declared on a work order, sorted by lastUpdate ascending.

Rules

  • Items are returned only for work orders in status SYNCHRONIZED or above, else the list is empty.
  • Booked and ordered items are not returned.

Pair with the workorder.validation webhook to fetch the used items once the work order is validated.

Rate limit range : High

Path parameters

  • workOrderUuid string(uuid) Required

    Uuid of the work order.

Query parameters

  • continuationToken string

    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.

  • size integer

    Maximum number of items returned per page. Hard limit 200.

    Minimum value is 1, maximum value is 200. Default value is 200.

  • invoiceMode string

    Filter items by billing ownership. Omit it to get every item. Any other value is refused.

    • external - catalog item flagged for invoicing, or on-the-fly item (no catalog article).
    • internal - catalog item not flagged for invoicing.

    Values are external or internal.

Responses

  • 200 application/json

    OK - Paginated list of used items on the work order.

    Hide response attributes Show response attributes object
    • continuationToken string | null

      Opaque token. Pass on next request. null means last page. Do not parse or construct.

    • data array[object] Required
      Hide data attributes Show data attributes object
      • lineItemId string(uuid) Required

        Unique cart-line identifier. Useful when the same item code is consumed on several lines (e.g. work order re-opened). Stable across work order re-openings.

      • itemCode string Required

        Code of the item (catalogue or on-the-fly).

        Maximum length is 10000.

      • reference string | null

        Reference of the item (catalogue or on-the-fly).

        Maximum length is 256.

      • name string Required

        Name of the item. Same as the catalogue one except for generic or on-the-fly items.

        Maximum length is 10000.

      • agentCode string | null Required

        Code of the agent who declared this line (technician or web user).

      • associatedSectionCode string | null

        Quotation section code. null if declared directly on the work order cart.

      • invoiceMode string Required

        EXTERNAL = catalog item flagged for invoicing, or on-the-fly item. INTERNAL = catalog item not flagged for invoicing. Can be filtered with the invoiceMode query parameter.

        Values are INTERNAL or EXTERNAL.

      • expectedQuantity number(double) | null

        Quantity expected at diagnosis. 0 if the item was expected at 0, null if no quantity was expected.

      • quantity number(double) Required

        Quantity used. 0 for an expected item that was not used.

        Minimum value is 0.

      • dimension string | null

        Raw dimensions of the item when it counts more than one, separated by * (e.g. 2*1.5). null if none.

        Maximum length is 50.

      • priceDetails object Required

        Price attributes as stored on the used item line, without any billing computation. No currency, catalogue price or contract code is returned.

        Hide priceDetails attributes Show priceDetails attributes object
        • unitPrice number(double) | null Required

          Unit price applied on the line. Same as the catalogue one except for generic items, on-the-fly items or a negotiated contract price. null if no price.

        • vatRate number(double) | null Required

          VAT rate declared on the line (e.g. 0.20 for 20%). null if none.

      • tracking object

        Tracking attributes of the line. The object is always returned.

        Hide tracking attributes Show tracking attributes object
        • serialNumber string | null Required

          Serial number scanned for an item followed by serial number. null if not tracked.

          Maximum length is 100.

        • storeCode string | null Required

          Store code for an item followed by stock. null if not tracked.

          Maximum length is 100.

      • lastUpdate string(date-time) Required

        Last update of the line, ISO 8601 UTC. A web user can override the technician values. Results are sorted by this field, ascending.

  • 400 application/json

    Bad Request - invalid invoiceMode, invalid size or invalid continuation token.

    Hide response attributes Show response attributes object
    • errors array[object]

      Array of errors. Contains at least one element.

      Hide errors attributes Show errors attributes object

      Contains code and message for error.

      • code string Required
      • message string Required
    • errorReference string Required

      Error unique reference. Communicated to support, this will help to locate the issue.

      Format should match the following pattern: [0-1a-z].

  • 401 application/json

    Unauthorized - authentication issue.

    Hide response attributes Show response attributes object
    • errors array[object]

      Array of errors. Contains at least one element.

      Hide errors attributes Show errors attributes object

      Contains code and message for error.

      • code string Required
      • message string Required
    • errorReference string Required

      Error unique reference. Communicated to support, this will help to locate the issue.

      Format should match the following pattern: [0-1a-z].

  • 403 application/json

    Forbidden - not enough rights.

    Hide response attributes Show response attributes object
    • errors array[object]

      Array of errors. Contains at least one element.

      Hide errors attributes Show errors attributes object

      Contains code and message for error.

      • code string Required
      • message string Required
    • errorReference string Required

      Error unique reference. Communicated to support, this will help to locate the issue.

      Format should match the following pattern: [0-1a-z].

  • 404 application/json

    Not Found - Work order not found or outside caller's org unit.

    Hide response attributes Show response attributes object
    • errors array[object]

      Array of errors. Contains at least one element.

      Hide errors attributes Show errors attributes object

      Contains code and message for error.

      • code string Required
      • message string Required
    • errorReference string Required

      Error unique reference. Communicated to support, this will help to locate the issue.

      Format should match the following pattern: [0-1a-z].

  • 429 application/json

    Too Many Requests.

    Hide response attributes Show response attributes object
    • errors array[object]

      Array of errors. Contains at least one element.

      Hide errors attributes Show errors attributes object

      Contains code and message for error.

      • code string Required
      • message string Required
    • errorReference string Required

      Error unique reference. Communicated to support, this will help to locate the issue.

      Format should match the following pattern: [0-1a-z].

  • 500 application/json

    Internal server error.

    Hide response attributes Show response attributes object
    • errors array[object]

      Array of errors. Contains at least one element.

      Hide errors attributes Show errors attributes object

      Contains code and message for error.

      • code string Required
      • message string Required
    • errorReference string Required

      Error unique reference. Communicated to support, this will help to locate the issue.

      Format should match the following pattern: [0-1a-z].

GET /eTech/rest/ws/fieldService/v1/workOrders/uuid:{workOrderUuid}/usedItems
curl \
 --request GET 'https://ws-eu1.praxedo.com/eTech/rest/ws/fieldService/v1/workOrders/uuid:550e8400-e29b-41d4-a716-446655440000/usedItems' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "continuationToken": "eyJsYXN0VXBkYXRlIjoiMjAyNC0xMC0xNVQxNjowNTowMFoifQ==",
  "data": [
    {
      "lineItemId": "80ae5498-6d98-45d0-be83-11748b49692a",
      "itemCode": "PUMP-V3",
      "reference": "182DGH32",
      "name": "Pompe elec motron v3",
      "agentCode": "T_SMITH_04",
      "associatedSectionCode": "REPLACEMENT_SECTION",
      "invoiceMode": "INTERNAL",
      "expectedQuantity": 1,
      "quantity": 2,
      "dimension": "2*1.5",
      "priceDetails": {
        "unitPrice": 59,
        "vatRate": 0.2
      },
      "tracking": {
        "serialNumber": "SN-9982-XP",
        "storeCode": null
      },
      "lastUpdate": "2024-10-15 16:05:00 UTC"
    }
  ]
}
{
  "continuationToken": null,
  "data": [
    {
      "lineItemId": "ffffffff-0000-0000-0000-000000000001",
      "itemCode": "JOINT-50MM",
      "reference": null,
      "name": "Joint caoutchouc 50mm",
      "agentCode": "T_MARTIN_07",
      "associatedSectionCode": null,
      "invoiceMode": "EXTERNAL",
      "expectedQuantity": null,
      "quantity": 3,
      "dimension": null,
      "priceDetails": {
        "unitPrice": 4.5,
        "vatRate": null
      },
      "tracking": {
        "serialNumber": null,
        "storeCode": "STORE-PARIS-03"
      },
      "lastUpdate": "2024-10-14 09:10:00 UTC"
    }
  ]
}
{
  "continuationToken": null,
  "data": []
}
Response examples (400)
{
  "errors": [
    {
      "code": "fieldService.continuationToken.invalid",
      "message": "The provided continuation token does not respect the expected format."
    }
  ],
  "errorReference": "59ddc09a23159395367307ab95b1c41a"
}
{
  "errors": [
    {
      "code": "fieldservice.workorders.items.used.filter.invalid",
      "message": "The invoice mode is invalid"
    }
  ],
  "errorReference": "59ddc09a23159395367307ab95b1c41b"
}
{
  "errors": [
    {
      "code": "fieldService.size.exceeded",
      "message": "size must not exceed 200."
    }
  ],
  "errorReference": "223e4567e89b12d3a456426614174001"
}
{
  "errors": [
    {
      "code": "fieldService.size.tooSmall",
      "message": "size must be at least 1."
    }
  ],
  "errorReference": "223e4567e89b12d3a456426614174002"
}
{
  "errors": [
    {
      "code": "fieldService.size.invalid",
      "message": "size must be an integer."
    }
  ],
  "errorReference": "223e4567e89b12d3a456426614174003"
}
Response examples (401)
{
  "errors": [
    {
      "code": "unauthorized.nocredentials",
      "message": "No credentials."
    }
  ],
  "errorReference": "f939c6b8c15045c9a70f500fdb570555"
}
{
  "errors": [
    {
      "code": "unauthorized.badcredentials",
      "message": "Bad Credentials."
    }
  ],
  "errorReference": "f1028f99811b422eb21f5ff176664069"
}
Response examples (403)
{
  "errors": [
    {
      "code": "access.forbidden",
      "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"
}