Purchase Order - Get Single By Number
Retrieve a single purchase order by its PO number.
Query parameters
PO number
Projection fields object, e.g. { "name": 1 }
Response
Purchase order by number
Example response
{
"purchase_order": {
"_id": "507f1f77bcf86cd799439011",
"log": [
{
"user_id": "507f1f77bcf86cd799439011",
"time": "2025-01-15T12:00:00.000Z"
}
],
"due_date": "2025-01-15",
"arrival_date": "2025-01-15",
"closed_date": "2025-01-15",
"tags": [
"507f1f77bcf86cd799439011",
"507f1f77bcf86cd799439012"
],
"store_id": "507f1f77bcf86cd799439011"
}
}Changes
Changed in 4 of the 13 revisions of this API.419
- ▲
the
queryrequest parameternumberbecame requiredrequest-parameter-became-required
- ○
api operation id
get_purchase_order_get_single_by_numberwas addedapi-operation-id-added
- ○
for the
queryrequest parameternumber, the type/format was generalized fromnumber/integertostring/request-parameter-type-generalized
- ○
added the media type
application/jsonfor the response with the status200response-media-type-added
- ○
added the media type
application/jsonfor the response with the status400response-media-type-added
- ○
added the media type
application/jsonfor the response with the status401response-media-type-added
- ○
added the non-success response with the status
403response-non-success-status-added
- ○
added the non-success response with the status
429response-non-success-status-added
- ○
added the non-success response with the status
500response-non-success-status-added
- ▲
- ▲
for the
queryrequest parameterfields, the type/format was changed fromarray/toobject/request-parameter-type-changed
- ▲
- ▲
for the
queryrequest parameternumber, the type/format was changed fromstring/tonumber/integerrequest-parameter-type-changed
- ○
for the
queryrequest parameterfields, the type/format was generalized fromstring/toarray/request-parameter-type-generalized
- ○
added the non-success response with the status
400response-non-success-status-added
- ○
added the non-success response with the status
401response-non-success-status-added
- ▲
- ▲
removed the media type
application/jsonfor the response with the status200response-media-type-removed
- ○
api operation id
get_purchase_order_get_single_by_numberremoved and replaced withapi-operation-id-removed
- ○
the
queryrequest parameternumberbecame optionalrequest-parameter-became-optional
- ○
for the
queryrequest parameterfields, the type/format was generalized fromobject/tostring/request-parameter-type-generalized
- ○
removed the non-success response with the status
400response-non-success-status-removed
- ○
removed the non-success response with the status
401response-non-success-status-removed
- ○
removed the non-success response with the status
403response-non-success-status-removed
- ○
removed the non-success response with the status
429response-non-success-status-removed
- ○
removed the non-success response with the status
500response-non-success-status-removed
This revision also has 85 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲