purchase_order
Purchase Order - Get Single
Changed onRetrieve a single purchase order by its ID.
get/purchase_order/get_single
Request
- Base URLhttps://api.skulabs.com
- URLhttps://api.skulabs.com/purchase_order/get_single
- AuthHTTP bearer
Query parameters
idstring required
Purchase order ID
fieldsobject
Projection fields object, e.g. { "name": 1 }
optionsobject
Additional options
Response
Single purchase order
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
- breaking
the
queryrequest parameteridbecame required - info
api operation id
get_purchase_order_get_singlewas added - info
added the media type
application/jsonfor the response with the status - info
added the media type
application/jsonfor the response with the status - info
added the media type
application/jsonfor the response with the status - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- breaking
- breaking
for the
queryrequest parameterfields, the type changed fromarraytoobject
- breaking