Skip to main content

List Purchase Order Line Items

GET 

https://secure.fleetio.com/api/v1/purchase_orders/:number/purchase_order_line_items

Returns a list of Line Items for the specified Purchase Order

Request

Path Parameters

    number stringrequired

    Possible values: Value must match regular expression ^[0-9]+$

    The Purchase Order Number

Query Parameters

    start_cursor string

    The start cursor for Keyset pagination.

    per_page integer

    Possible values: >= 2 and <= 100

    The number of records per page to return.

    Default value: 50
    sort object

    The fields and direction to sort the results by.

    idSortAscDescDefaultDesc (string)

    Possible values: [asc, desc]

    Default value: desc

Responses

OK

Schema
    start_cursorstringnullable

    The current start cursor of the records returned.

    next_cursorstringnullable

    The next cursor to retrieve the next page of records.

    per_pageinteger

    The maxumum number of records returned.

    estimated_remaining_countinteger

    The number of remaining records including the returned records, up to a maximum of 500.

    filtered_byobject[]

    The filters applied to the returned record set.

    sorted_by object[]

    The sorts applied to the returned record set.

  • Array [
  • anyOf
    idSortAscDesc (string)

    Possible values: [asc, desc]

  • ]
  • records object[]
  • Array [
  • idinteger

    Possible values: >= 1

    created_atdate-time

    The date and time at which this record was created.

    Example: 2023-03-14T13:46:27-06:00
    updated_atdate-time

    The date and time at which this record was most recently updated.

    Example: 2023-03-14T13:46:27-06:00
    part_idintegerrequired

    The Fleetio ID of the Part being purchased.

    Possible values: >= 1

    quantitystringnullablerequired

    The quantity of this Part to be purchased.

    Example: 1.23
    total_quantity_receivedstringnullablerequired

    The quantity of this Part which was received.

    Example: 1.23
    part_numberstringnullable

    The number for the Part being purchased.

    unit_costfloatnullablerequired

    The cost of this Part (per unit).

    Example: 1.23
    subtotalfloatnullable

    The pre-tax subtotal amount.

    Example: 1.23
  • ]

Authorization: Authorization

name: Authorizationtype: apiKeyin: headerdescription: Prefix the value with "Token", for example: "Token 76cbe06c49a64".
You can generate a new API key [here](https://secure.fleetio.com/api_keys).
name: Account-Tokentype: apiKeyin: headerdescription: You can find your Account-Token [here](https://secure.fleetio.com/api_keys)
curl -L 'https://secure.fleetio.com/api/v1/purchase_orders/:number/purchase_order_line_items' \
-H 'Accept: application/json' \
-H 'Authorization: Token <Authorization>' \
-H 'Account-Token: <Authorization>'
Request Collapse all
Base URL
https://secure.fleetio.com/api
Auth
Parameters
— pathrequired
— query
— query
— query
id
ResponseClear

Click the Send API Request button above and see the response here!