All URIs are relative to https://api.ordercloud.io/v1
Method | HTTP request | Description |
---|---|---|
Create | POST /shipments | |
Delete | DELETE /shipments/{shipmentID} | |
DeleteItem | DELETE /shipments/{shipmentID}/items/{orderID}/{lineItemID} | |
Get | GET /shipments/{shipmentID} | |
GetItem | GET /shipments/{shipmentID}/items/{orderID}/{lineItemID} | |
List | GET /shipments | |
ListItems | GET /shipments/{shipmentID}/items | |
Patch | PATCH /shipments/{shipmentID} | |
Save | PUT /shipments/{shipmentID} | |
SaveItem | POST /shipments/{shipmentID}/items |
Shipment Create(shipment)
var OrderCloud = require('OrderCloud');
var defaultClient = OrderCloud.Sdk.default;
// Configure OAuth2 access token for authorization: oauth2
var oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
var apiInstance = new OrderCloud.Shipments();
var shipment = new OrderCloud.Shipment(); // Shipment |
apiInstance.Create(shipment).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
shipment | Shipment |
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json
Delete(shipmentID)
var OrderCloud = require('OrderCloud');
var defaultClient = OrderCloud.Sdk.default;
// Configure OAuth2 access token for authorization: oauth2
var oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
var apiInstance = new OrderCloud.Shipments();
var shipmentID = "shipmentID_example"; // String | ID of the shipment.
apiInstance.Delete(shipmentID).then(function() {
console.log('API called successfully.');
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
shipmentID | String | ID of the shipment. |
null (empty response body)
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json
DeleteItem(shipmentID, orderID, lineItemID)
var OrderCloud = require('OrderCloud');
var defaultClient = OrderCloud.Sdk.default;
// Configure OAuth2 access token for authorization: oauth2
var oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
var apiInstance = new OrderCloud.Shipments();
var shipmentID = "shipmentID_example"; // String | ID of the shipment.
var orderID = "orderID_example"; // String | ID of the order.
var lineItemID = "lineItemID_example"; // String | ID of the line item.
apiInstance.DeleteItem(shipmentID, orderID, lineItemID).then(function() {
console.log('API called successfully.');
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
shipmentID | String | ID of the shipment. | |
orderID | String | ID of the order. | |
lineItemID | String | ID of the line item. |
null (empty response body)
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json
Shipment Get(shipmentID)
var OrderCloud = require('OrderCloud');
var defaultClient = OrderCloud.Sdk.default;
// Configure OAuth2 access token for authorization: oauth2
var oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
var apiInstance = new OrderCloud.Shipments();
var shipmentID = "shipmentID_example"; // String | ID of the shipment.
apiInstance.Get(shipmentID).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
shipmentID | String | ID of the shipment. |
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json
ShipmentItem GetItem(shipmentID, orderID, lineItemID)
var OrderCloud = require('OrderCloud');
var defaultClient = OrderCloud.Sdk.default;
// Configure OAuth2 access token for authorization: oauth2
var oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
var apiInstance = new OrderCloud.Shipments();
var shipmentID = "shipmentID_example"; // String | ID of the shipment.
var orderID = "orderID_example"; // String | ID of the order.
var lineItemID = "lineItemID_example"; // String | ID of the line item.
apiInstance.GetItem(shipmentID, orderID, lineItemID).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
shipmentID | String | ID of the shipment. | |
orderID | String | ID of the order. | |
lineItemID | String | ID of the line item. |
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json
ListShipment List(opts)
var OrderCloud = require('OrderCloud');
var defaultClient = OrderCloud.Sdk.default;
// Configure OAuth2 access token for authorization: oauth2
var oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
var apiInstance = new OrderCloud.Shipments();
var opts = {
'orderID': "orderID_example", // String | ID of the order.
'search': "search_example", // String | Word or phrase to search for.
'searchOn': "searchOn_example", // String | Comma-delimited list of fields to search on.
'sortBy': "sortBy_example", // String | Comma-delimited list of fields to sort by.
'page': 56, // Number | Page of results to return. Default: 1
'pageSize': 56, // Number | Number of results to return per page. Default: 20, max: 100.
'filters': {key: "filters_example"} // {String: String} | Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
};
apiInstance.List(opts).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
orderID | String | ID of the order. | [optional] |
search | String | Word or phrase to search for. | [optional] |
searchOn | String | Comma-delimited list of fields to search on. | [optional] |
sortBy | String | Comma-delimited list of fields to sort by. | [optional] |
page | Number | Page of results to return. Default: 1 | [optional] |
pageSize | Number | Number of results to return per page. Default: 20, max: 100. | [optional] |
filters | {String: String} | Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???' | [optional] |
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json
ListShipmentItem ListItems(shipmentID, opts)
var OrderCloud = require('OrderCloud');
var defaultClient = OrderCloud.Sdk.default;
// Configure OAuth2 access token for authorization: oauth2
var oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
var apiInstance = new OrderCloud.Shipments();
var shipmentID = "shipmentID_example"; // String | ID of the shipment.
var opts = {
'search': "search_example", // String | Word or phrase to search for.
'searchOn': "searchOn_example", // String | Comma-delimited list of fields to search on.
'sortBy': "sortBy_example", // String | Comma-delimited list of fields to sort by.
'page': 56, // Number | Page of results to return. Default: 1
'pageSize': 56, // Number | Number of results to return per page. Default: 20, max: 100.
'filters': {key: "filters_example"} // {String: String} | Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
};
apiInstance.ListItems(shipmentID, opts).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
shipmentID | String | ID of the shipment. | |
search | String | Word or phrase to search for. | [optional] |
searchOn | String | Comma-delimited list of fields to search on. | [optional] |
sortBy | String | Comma-delimited list of fields to sort by. | [optional] |
page | Number | Page of results to return. Default: 1 | [optional] |
pageSize | Number | Number of results to return per page. Default: 20, max: 100. | [optional] |
filters | {String: String} | Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???' | [optional] |
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json
Shipment Patch(shipmentID, partialShipment)
var OrderCloud = require('OrderCloud');
var defaultClient = OrderCloud.Sdk.default;
// Configure OAuth2 access token for authorization: oauth2
var oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
var apiInstance = new OrderCloud.Shipments();
var shipmentID = "shipmentID_example"; // String | ID of the shipment.
var partialShipment = new OrderCloud.Shipment(); // Shipment |
apiInstance.Patch(shipmentID, partialShipment).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
shipmentID | String | ID of the shipment. | |
partialShipment | Shipment |
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json
Shipment Save(shipmentID, shipment)
var OrderCloud = require('OrderCloud');
var defaultClient = OrderCloud.Sdk.default;
// Configure OAuth2 access token for authorization: oauth2
var oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
var apiInstance = new OrderCloud.Shipments();
var shipmentID = "shipmentID_example"; // String | ID of the shipment.
var shipment = new OrderCloud.Shipment(); // Shipment |
apiInstance.Save(shipmentID, shipment).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
shipmentID | String | ID of the shipment. | |
shipment | Shipment |
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json
ShipmentItem SaveItem(shipmentID, shipmentItem)
var OrderCloud = require('OrderCloud');
var defaultClient = OrderCloud.Sdk.default;
// Configure OAuth2 access token for authorization: oauth2
var oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
var apiInstance = new OrderCloud.Shipments();
var shipmentID = "shipmentID_example"; // String | ID of the shipment.
var shipmentItem = new OrderCloud.ShipmentItem(); // ShipmentItem |
apiInstance.SaveItem(shipmentID, shipmentItem).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
shipmentID | String | ID of the shipment. | |
shipmentItem | ShipmentItem |
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json