Skip to main content
POST
/
purchase_order
/
create_v2
Purchase Order - Create V2
curl --request POST \
  --url https://api.skulabs.com/purchase_order/create_v2 \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "data": {}
}'
{
  "success": true,
  "_id": "507f1f77bcf86cd799439011",
  "number": "<string>",
  "errors": [
    "<string>"
  ],
  "add_results": [
    null
  ],
  "skulabs_warning": {}
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
data
object
required

Purchase order data object (v2)

Response

Purchase order created

success
boolean
required

Whether the operation succeeded

_id
string

ID of the created purchase order

Example:

"507f1f77bcf86cd799439011"

number

PO number (may be auto-generated)

errors
string[]

Array of validation error messages

add_results
null[]

Results from auto-adding serial numbers (pallet processing)

skulabs_warning
object

Non-fatal warning from background operations