Purchase Orders

Update Purchase Order

Update a Purchase Order

patch/purchase_orders/{number}

Request

Path parameters

numberstring required

The Purchase Order Number

Request body

descriptionstring nullable
label_liststring

A comma separated list of tags associated with this record. The only delimiter allowed is a comma (,). Please remove any commas from your labels before saving the record.

vendor_idinteger
part_location_idinteger

The Fleetio ID of the Part Location for the Part being purchased.

numberinteger

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.

discount_type'fixed' | 'percentage' nullable

The type of discount applied to this record.

discount_percentagenumber float

The discount percentage. This field should be present when discount_type is set to percentage.

discountnumber

The actual value of the discount

shippingnumber

The cost of shipping

tax_1_percentagenumber

The primary tax percentage amount. This field should be present when tax_1_type is set to percentage.

tax_1number float

The primary tax amount.

tax_1_type'fixed' | 'percentage' nullable

The type of tax to apply to this record.

tax_2_percentagenumber

The secondary tax percentage amount. This field should be present when tax_2_type is set to percentage. Note that this secondary tax must be configured in your Account Settings.

tax_2number float

The secondary tax amount. Note that this secondary tax must be configured in your Account Settings.

tax_2_type'fixed' | 'percentage' nullable

The type of tax to apply to this record.

custom_fieldsCustomFields nullable

*Full details on working with Custom Fields here.

Example request

{
  "label_list": "High Priority",
  "number": 1207
}

Response

OK

Changes

No recorded changes to this operation across all 6 revisions of this API.