purchase_order

Purchase Order - Create V2

Changed on

Create a purchase order using names instead of IDs for store, distributor, and warehouse. Supports item lookup by SKU, MPN, or barcode.

post/purchase_order/create_v2

Request

  • Base URL
    https://api.skulabs.com
  • URL
    https://api.skulabs.com/purchase_order/create_v2
  • Auth
    HTTP bearer

Request body

dataobject required

Purchase order data object (v2)

Response

Purchase order created

successboolean required

Whether the operation succeeded

_idstring

ID of the created purchase order

errorsstring[]

Array of validation error messages

skulabs_warningobject

Non-fatal warning from background operations

Example response

{
  "_id": "507f1f77bcf86cd799439011"
}

Changes

    • breaking

      the request property became required

    • info

      api operation id post_purchase_order_create_v2 was added

    • info

      added the media type application/json for the response with the status

    • info

      added the media type application/json for the response with the status

    • info

      added the media type application/json for 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

      added required request body

    • warning

      deleted the query request parameter data

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status