Routes
Purchase Orders

Get Purchase Orders

Changed on
PropertyDescription
metauseful links relating to this Purchase order
poIDThe unique ID of the Purchase Order.
poNumberThe user-set Purchase Order number.
budgetIDThe unique ID of the budget associated with this Purchase Order.
vendorIDThe unique ID of the vendor associated with this Purchase Order.
locationIDThe unique ID of the location associated with this Purchase Order.
userIDStartedThe unique ID of the user that started this Purchase Order.
userIDThe unique ID of the user this Purchase Order is currently assigned to.
teamIDThe unique ID of the team the user of this Purchase Order is currently assigned to.
requestedByUserIDThe userID of the user that request this Purchase Order. A value of 0 means this PO wasn't requested, but was manually started by the userIDStarted.
dateThe date this PO was started as a UNIX timestamp, or the date the user inputted for the Purchase Order.
expectedDateThe date this PO is expected as a UNIX timestamp to receive items.
billToThe address that should receive the bill for the PO.
shipToThe address the PO's items should be delivered to.
notesToVendorAny notes sent to the vendor, possibly containing handling, packaging, or delivery instructions.
customField1PO custom field, the customer chooses which custom fields are available on all POs.
customField2PO custom field, the customer chooses which custom fields are available on all POs.
customField3PO custom field, the customer chooses which custom fields are available on all POs.
customField4PO custom field, the customer chooses which custom fields are available on all POs.
customField5PO custom field, the customer chooses which custom fields are available on all POs.
customField6PO custom field, the customer chooses which custom fields are available on all POs.
poPrefixIf a PO prefix is configured, it will show up here.
lastEditedLast time this PO was edited as a UNIX timestamp.
statusThis is the current status of a PO. Status of PO can be as follows:, 0: the PO has only been setup. (Status: Setup), 1-97: these are custom statuses based on the budget steps. Refer to "budgetSteps" in meta. (Status : {Name of the budgetStep it is on} ), 97: the PO is in the ready to receive step. This means items can be received for this PO. (Status: Ready to Receive), 98 all budget steps have been completed, but not all items on the PO have been received. This means only some items or partial qty of items have been received. (Status: Partially Received), 99: the PO is completed. This means all the items and their full qty on the PO have been received but not been paid for ( i.e. all the bills generated for this PO have not been marked as paid yet.) (Status: Fully Received - Pending Payment), 100: the PO is closed. This means all the items on the PO have been received and have been paid for. (i.e. all the bills for this PO have been marked as paid.) (Status: Closed)
stateDetailsJSON object containing details about the PO's current state, and available state transitions.
poNumberDisplayFormatted display string with leading zeros and prefix. This is the PO Number the UI will display.
get/v2/po

Request

Query parameters

posinteger

This parameter is used to only get specific POs. This parameter expects a comma delimited list of PO IDs.

vendorsinteger

This parameter is used to only get specific Vendors. This parameter expects a comma delimited list of Vendor IDs.

locationsinteger

This parameter is used to only get POs at a specific group of Locations. This parameter accepts a comma delimited list of Location IDs.

numbersinteger

This parameter is used to only get specific POs by Number. This parameter expects a comma delimited list of PO Numbers.

cursorinteger

This parameter is a cursor that selects what poID you want to start receiving results at. e.g. passing 137 here will only get you PO with an id greater than 137.

limitinteger

This parameter is a result limiter. The default is set to return no more than 100 results at one time. Maximum allowed value is 1000.

lastEditedStartinteger

This parameter is used to only get POs that were last edited after the unix timestamp passed into the start parameter. For example, all POs that were last edited after April 18th, 2018.

lastEditedEndinteger

This parameter is used to only get POs that were last edited before the unix timestamp passed in.

statusstring

This parameter is used to only get POs for a specific group of status.

pageinteger

This parameter is used to paginate results based on the limit. Refer to Pagination section for more information.

Response

Get Purchase Orders

poIDinteger
taskIDinteger
budgetIDinteger
poNumberinteger
vendorIDinteger
locationIDinteger
userIDStartedinteger
userIDinteger
teamIDinteger
requestedByUserIDinteger
dateinteger
expectedDateunknown
notesToVendorstring
billTounknown
shipTounknown
statusinteger
customField1unknown
customField2unknown
customField3unknown
customField4unknown
customField5unknown
customField6unknown
lastEditedinteger
poPrefixunknown
stateinteger

Changes

    • warning

      for the query request parameter limit, the max was set to 1000.00

    • warning

      for the query request parameter limit, the min was set to 1.00

    • info

      added the non-success response with the status