purchase_order

Purchase Order - Create V2

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 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

Changed in 3 of the 13 revisions of this API.4116

    • the request property data became required

      request-property-became-required

    • api operation id post_purchase_order_create_v2 was added

      api-operation-id-added

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

      response-media-type-added

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

      response-media-type-added

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

      response-media-type-added

    • added the non-success response with the status 403

      response-non-success-status-added

    • added the non-success response with the status 429

      response-non-success-status-added

    • added the non-success response with the status 500

      response-non-success-status-added

  • 08cd9cfa14dd112See the full diff
    • added required request body

      request-body-added-required

    • deleted the query request parameter data

      request-parameter-removed

    • added the non-success response with the status 400

      response-non-success-status-added

    • added the non-success response with the status 401

      response-non-success-status-added

  • 46ceda52800027See the full diff
    • removed the request body

      request-body-removed

    • removed the media type application/json for the response with the status 200

      response-media-type-removed

    • api operation id post_purchase_order_create_v2 removed and replaced with

      api-operation-id-removed

    • added the new optional query request parameter data

      new-optional-request-parameter

    • removed the non-success response with the status 400

      response-non-success-status-removed

    • removed the non-success response with the status 401

      response-non-success-status-removed

    • removed the non-success response with the status 403

      response-non-success-status-removed

    • removed the non-success response with the status 429

      response-non-success-status-removed

    • removed the non-success response with the status 500

      response-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