Create Purchase Order Item

SecurityAPIKeyHeader
Request
path Parameters
order_id
required
string (Order Id)
Request Body schema: application/json
required
custom_data
object (Custom Data)

Key-value pair of custom data. See the custom_data guide

description
string (Description) <= 128 characters

Human-readable description of this unit

Array of objects (References)
Default: []

references for this order item.

object (Shipping Requirements)

Shipping requirements of this item

required
object (OrderItemAmount)
Responses
201

Successful Response

Response Schema: application/json
custom_data
object (Custom Data)

Key-value pair of custom data. See the custom_data guide

description
string (Description) <= 128 characters

Human-readable description of this unit

Array of objects (References)
Default: []

references for this order item.

object (Shipping Requirements)

Shipping requirements of this item

required
object (OrderItemAmount)
id
required
string (Id)

ID of the Purchase Order Item

required
object (Available Amount)

Amount of the item that is left to be released

400

Validation Error

post/purchase-orders/{order_id}/items
Request samples
application/json
{
  • "custom_data": "{\"abc\": \"any value\", \"def\": \"any value\"}",
  • "description": "string",
  • "references": [ ],
  • "shipping_requirements": {
    },
  • "amount": {
    }
}
Response samples
application/json
{
  • "custom_data": "{\"abc\": \"any value\", \"def\": \"any value\"}",
  • "description": "string",
  • "references": [ ],
  • "shipping_requirements": {
    },
  • "amount": {
    },
  • "id": "string",
  • "available_amount": {
    }
}
Copyright © Shipwell 2024. All right reserved.