List Purchase Orders
GEThttps://secure.fleetio.com/api/v1/purchase_orders
Returns a list of Purchase Orders belonging to your account.
Request
Responses
- 200
- 401
- 500
OK
Response Headers
- application/json
- Schema
- Example (auto)
Schema
- Array [
- ]
Possible values: >= 1
The date and time at which this record was created.
2023-03-14T13:46:27-06:00
The date and time at which this record was most recently updated.
2023-03-14T13:46:27-06:00
Must be unique within the scope of your Account. You can either generate your own number or leave it blank and Fleetio will generate one for you. Fleetio will use the next number in the sequence based on your existing Purchase Orders. This becomes the unique identifier, even in endpoints. Id is never used.
1207
Open text field for Purchase Order description.
A list of tags associated with this record.
Possible values: <= 255 characters
See the Purchase Order Lifecycle Guide for more information about Purchase Order states and how to transition between them.
Possible values: [draft
, submitted_for_approval
, rejected
, approved
, purchased
, received_partial
, received_full
, closed
]
The name of the Contact associated with the User who created this Purchase Order.
The full name of the Contact that rejected the Purchase Order, if applicable.
The date and time at which this Purchase Order was submitted for approval.
2023-03-14T13:46:27-06:00
The name of the Contact associated with the User
who
submitted this Purchase Order for approval.
The date and time at which this Purchase Order was rejected.
2023-03-14T13:46:27-06:00
The date and time at which this Purchase Order was approved.
2023-03-14T13:46:27-06:00
The name of the Contact associated with the User who approved this Purchase Order.
The date and time at which this Purchase Order was purchased.
2023-03-14T13:46:27-06:00
The name of the Contact associated with the User who purchased this Purchase Order.
The date and time at which this Purchase Order was partially received.
2023-03-14T13:46:27-06:00
The name of the Contact associated with the User who received this Purchase Order.
The date and time at which this Purchase Order was fully received.
2023-03-14T13:46:27-06:00
The name of the Contact associated with the User who received this Purchase Order.
The date and time at which this Purchase Order was closed.
2023-03-14T13:46:27-06:00
The name of the Contact associated with the User who closed this Purchase Order.
*Full details on working with Custom Fields here.
The ID of the Part Location
associated with this Purchase Order. Optional
in the draft
state.
Possible values: >= 1
The ID of the Vendor associated with this Purchase Order.
Possible values: >= 1
The name of the Part Location
associated with this Purchase Order.
The name of the Vendor
associated with this Purchase Order.
purchase_order_line_items object[]required
The number of documents attached to this Purchase Order.
The number of Comments
on this Purchase Order.
The shipping cost of this purchase.
The discount amount applied to this purchase.
The discount type applied to this purchase.
The discount percentage applied to this purchase.
The primary tax amount on this purchase
The primary tax type on this purchase
The secondary tax amount on this purchase. Note that this secondary tax must be configured in your Account Settings.
The subtotal of this purchase.
The total amount of this Purchase Order, including all line items, discounts, taxes, and shipping.
[
{
"id": 0,
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00",
"number": 1207,
"description": "string",
"label_list": [
"High Priority"
],
"state": "draft",
"created_by": "string",
"rejected_by": "string",
"submitted_for_approval_at": "2023-03-14T13:46:27-06:00",
"submitted_for_approval_by": "string",
"rejected_at": "2023-03-14T13:46:27-06:00",
"approved_at": "2023-03-14T13:46:27-06:00",
"approved_by": "string",
"purchased_at": "2023-03-14T13:46:27-06:00",
"purchased_by": "string",
"received_partial_at": "2023-03-14T13:46:27-06:00",
"received_partial_by": "string",
"received_full_at": "2023-03-14T13:46:27-06:00",
"received_full_by": "string",
"closed_at": "2023-03-14T13:46:27-06:00",
"closed_by": "string",
"custom_fields": {},
"part_location_id": 0,
"vendor_id": 0,
"part_location_name": "string",
"vendor_name": "string",
"purchase_order_line_items": [
{
"id": 0,
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00",
"part_id": 0,
"quantity": "1.23",
"total_quantity_received": "1.23",
"part_number": "string",
"unit_cost": 1.23,
"subtotal": 1.23
}
],
"documents_count": 0,
"comments_count": 0,
"shipping": 0,
"discount": 0,
"discount_type": "string",
"discount_percentage": 0,
"tax_1": 0,
"tax_1_type": "string",
"tax_2": 0,
"subtotal": 0,
"total_amount": 0
}
]
Request could not be authenticated
- application/json
- Schema
- Example (auto)
Schema
Possible values: >= 400
and <= 599
A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
A human-readable explanation specific to this occurrence of the problem.
A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
{
"status": 0,
"title": "string",
"detail": "string",
"instance": "string"
}
Something unexpected happened
- application/json
- Schema
- Example (auto)
Schema
Possible values: >= 400
and <= 599
A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
A human-readable explanation specific to this occurrence of the problem.
A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
{
"status": 0,
"title": "string",
"detail": "string",
"instance": "string"
}
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
- ruby
- python
- csharp
- go
- java
- nodejs
- php
- CURL