Security
OAuth2(Required scopes: FullAccessShipmentAdmin)
- Production sever for Ordercloudhttps://api.ordercloud.io/v1/shipments/{shipmentID}/items
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://api.ordercloud.io/v1/shipments/{shipmentID}/items' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"OrderID": "",
"LineItemID": "",
"QuantityShipped": 0,
"UnitPrice": 0,
"CostCenter": "",
"DateNeeded": "2018-01-01T00:00:00-06:00",
"Product": {
"ID": "",
"Name": "",
"Description": "",
"Returnable": false,
"QuantityMultiplier": 0,
"ShipWeight": 0,
"ShipHeight": 0,
"ShipWidth": 0,
"ShipLength": 0,
"DefaultSupplierID": "",
"ParentID": "",
"xp": {}
},
"Variant": {
"ID": "",
"Name": "",
"Description": "",
"ShipWeight": 0,
"ShipHeight": 0,
"ShipWidth": 0,
"ShipLength": 0,
"xp": {}
},
"Specs": [
{
"SpecID": "",
"Name": "",
"OptionID": "",
"Value": "",
"PriceMarkupType": "NoMarkup",
"PriceMarkup": 0
}
],
"xp": {}
}'Example:
{ "ID": "", "Name": "", "Description": "", "Returnable": false, "QuantityMultiplier": 0, "ShipWeight": 0, "ShipHeight": 0, "ShipWidth": 0, "ShipLength": 0, "DefaultSupplierID": "", "ParentID": "", "xp": {} }
Example:
{ "ID": "", "Name": "", "Description": "", "ShipWeight": 0, "ShipHeight": 0, "ShipWidth": 0, "ShipLength": 0, "xp": {} }
Example:
[ { "SpecID": "", "Name": "", "OptionID": "", "Value": "", "PriceMarkupType": "NoMarkup", "PriceMarkup": 0 } ]
Response
{ "OrderID": "", "LineItemID": "", "QuantityShipped": 0, "UnitPrice": 0, "CostCenter": "", "DateNeeded": "2018-01-01T00:00:00-06:00", "Product": { "ID": "", "Name": "", "Description": "", "Returnable": false, "QuantityMultiplier": 0, "ShipWeight": 0, "ShipHeight": 0, "ShipWidth": 0, "ShipLength": 0, "DefaultSupplierID": "", "ParentID": "", "xp": {} }, "Variant": { "ID": "", "Name": "", "Description": "", "ShipWeight": 0, "ShipHeight": 0, "ShipWidth": 0, "ShipLength": 0, "xp": {} }, "Specs": [ { … } ], "xp": {} }