Update Purchase Order
PATCHhttps://secure.fleetio.com/api/v1/purchase_orders/:number
Update a Purchase Order
Request
Path Parameters
Possible values: Value must match regular expression ^[0-9]+$
The Purchase Order Number
- application/json
Body
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.
Possible values: <= 255 characters
High Priority
Possible values: >= 1
The Fleetio ID of the Part Location for the Part being purchased.
Possible values: >= 1
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
The type of discount applied to this record.
Possible values: [fixed
, percentage
]
percentage
The discount percentage. This field should be present when discount_type
is set to percentage
.
The actual value of the discount
The cost of shipping
The primary tax percentage amount. This field should be present when
tax_1_type
is set to percentage
.
The primary tax amount.
The type of tax to apply to this record.
Possible values: [fixed
, percentage
]
percentage
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.
The secondary tax amount. Note that this secondary tax must be configured in your Account Settings.
The type of tax to apply to this record.
Possible values: [fixed
, percentage
]
percentage
*Full details on working with Custom Fields here.
purchase_order_line_items_attributes object[]
Responses
- 204
- 401
- 403
- 404
- 422
- 500
OK
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"
}
Insufficient permission to perform this operation
- 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"
}
The requested resource could not be located
- 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"
}
Unprocessable Entity
- application/json
- Schema
- Example (auto)
- Example
Schema
errors object
{
"errors": {}
}
{
"errors": {
"field1": [
"error1",
"error2"
],
"field2": [
"error3"
]
}
}
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