All URIs are relative to https://api.ordercloud.io/v1
Method | HTTP request | Description |
---|---|---|
AddPromotion | POST /orders/{direction}/{orderID}/promotions/{promoCode} | |
Approve | POST /orders/{direction}/{orderID}/approve | |
Cancel | POST /orders/{direction}/{orderID}/cancel | |
Complete | POST /orders/{direction}/{orderID}/complete | |
Create | POST /orders/{direction} | |
Decline | POST /orders/{direction}/{orderID}/decline | |
Delete | DELETE /orders/{direction}/{orderID} | |
Forward | POST /orders/{direction}/{orderID}/forward | |
Get | GET /orders/{direction}/{orderID} | |
List | GET /orders/{direction} | |
ListApprovals | GET /orders/{direction}/{orderID}/approvals | |
ListEligibleApprovers | GET /orders/{direction}/{orderID}/eligibleapprovers | |
ListPromotions | GET /orders/{direction}/{orderID}/promotions | |
Patch | PATCH /orders/{direction}/{orderID} | |
PatchBillingAddress | PATCH /orders/{direction}/{orderID}/billto | |
PatchFromUser | PATCH /orders/{direction}/{orderID}/fromuser | |
PatchShippingAddress | PATCH /orders/{direction}/{orderID}/shipto | |
RemovePromotion | DELETE /orders/{direction}/{orderID}/promotions/{promoCode} | |
Save | PUT /orders/{direction}/{orderID} | |
SetBillingAddress | PUT /orders/{direction}/{orderID}/billto | |
SetShippingAddress | PUT /orders/{direction}/{orderID}/shipto | |
Ship | POST /orders/{direction}/{orderID}/ship | |
Split | POST /orders/{direction}/{orderID}/split | |
Submit | POST /orders/{direction}/{orderID}/submit | |
Validate | POST /orders/{direction}/{orderID}/validate |
OrderPromotion AddPromotion(direction, orderID, promoCode)
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.Orders();
var direction = "direction_example"; // String | Direction of the order, from the current user's perspective. Possible values: incoming, outgoing.
var orderID = "orderID_example"; // String | ID of the order.
var promoCode = "promoCode_example"; // String | Promo code of the order promotion.
apiInstance.AddPromotion(direction, orderID, promoCode).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
direction | String | Direction of the order, from the current user's perspective. Possible values: incoming, outgoing. | |
orderID | String | ID of the order. | |
promoCode | String | Promo code of the order promotion. |
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json
Order Approve(direction, orderID, orderApprovalInfo)
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.Orders();
var direction = "direction_example"; // String | Direction of the order, from the current user's perspective. Possible values: incoming, outgoing.
var orderID = "orderID_example"; // String | ID of the order.
var orderApprovalInfo = new OrderCloud.OrderApprovalInfo(); // OrderApprovalInfo |
apiInstance.Approve(direction, orderID, orderApprovalInfo).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
direction | String | Direction of the order, from the current user's perspective. Possible values: incoming, outgoing. | |
orderID | String | ID of the order. | |
orderApprovalInfo | OrderApprovalInfo |
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json
Order Cancel(direction, orderID)
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.Orders();
var direction = "direction_example"; // String | Direction of the order, from the current user's perspective. Possible values: incoming, outgoing.
var orderID = "orderID_example"; // String | ID of the order.
apiInstance.Cancel(direction, orderID).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
direction | String | Direction of the order, from the current user's perspective. Possible values: incoming, outgoing. | |
orderID | String | ID of the order. |
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json
Order Complete(direction, orderID)
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.Orders();
var direction = "direction_example"; // String | Direction of the order, from the current user's perspective. Possible values: incoming, outgoing.
var orderID = "orderID_example"; // String | ID of the order.
apiInstance.Complete(direction, orderID).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
direction | String | Direction of the order, from the current user's perspective. Possible values: incoming, outgoing. | |
orderID | String | ID of the order. |
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json
Order Create(direction, order)
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.Orders();
var direction = "direction_example"; // String | Direction of the order, from the current user's perspective. Possible values: incoming, outgoing.
var order = new OrderCloud.Order(); // Order |
apiInstance.Create(direction, order).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
direction | String | Direction of the order, from the current user's perspective. Possible values: incoming, outgoing. | |
order | Order |
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json
Order Decline(direction, orderID, orderApprovalInfo)
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.Orders();
var direction = "direction_example"; // String | Direction of the order, from the current user's perspective. Possible values: incoming, outgoing.
var orderID = "orderID_example"; // String | ID of the order.
var orderApprovalInfo = new OrderCloud.OrderApprovalInfo(); // OrderApprovalInfo |
apiInstance.Decline(direction, orderID, orderApprovalInfo).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
direction | String | Direction of the order, from the current user's perspective. Possible values: incoming, outgoing. | |
orderID | String | ID of the order. | |
orderApprovalInfo | OrderApprovalInfo |
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json
Delete(direction, orderID)
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.Orders();
var direction = "direction_example"; // String | Direction of the order, from the current user's perspective. Possible values: incoming, outgoing.
var orderID = "orderID_example"; // String | ID of the order.
apiInstance.Delete(direction, orderID).then(function() {
console.log('API called successfully.');
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
direction | String | Direction of the order, from the current user's perspective. Possible values: incoming, outgoing. | |
orderID | String | ID of the order. |
null (empty response body)
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json
OrderSplitResult Forward(direction, orderID)
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.Orders();
var direction = "direction_example"; // String | Direction of the order, from the current user's perspective. Possible values: incoming, outgoing.
var orderID = "orderID_example"; // String | ID of the order.
apiInstance.Forward(direction, orderID).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
direction | String | Direction of the order, from the current user's perspective. Possible values: incoming, outgoing. | |
orderID | String | ID of the order. |
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json
Order Get(direction, orderID)
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.Orders();
var direction = "direction_example"; // String | Direction of the order, from the current user's perspective. Possible values: incoming, outgoing.
var orderID = "orderID_example"; // String | ID of the order.
apiInstance.Get(direction, orderID).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
direction | String | Direction of the order, from the current user's perspective. Possible values: incoming, outgoing. | |
orderID | String | ID of the order. |
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json
ListOrder List(direction, 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.Orders();
var direction = "direction_example"; // String | Direction of the order, from the current user's perspective. Possible values: incoming, outgoing.
var opts = {
'buyerID': "buyerID_example", // String | ID of the buyer.
'supplierID': "supplierID_example", // String | ID of the supplier.
'from': "from_example", // String | Lower bound of date range that the order was created.
'to': "to_example", // String | Upper bound of date range that the order was created.
'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(direction, opts).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
direction | String | Direction of the order, from the current user's perspective. Possible values: incoming, outgoing. | |
buyerID | String | ID of the buyer. | [optional] |
supplierID | String | ID of the supplier. | [optional] |
from | String | Lower bound of date range that the order was created. | [optional] |
to | String | Upper bound of date range that the order was created. | [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
ListOrderApproval ListApprovals(direction, orderID, 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.Orders();
var direction = "direction_example"; // String | Direction of the order, from the current user's perspective. Possible values: incoming, outgoing.
var orderID = "orderID_example"; // String | ID of the order.
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.ListApprovals(direction, orderID, opts).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
direction | String | Direction of the order, from the current user's perspective. Possible values: incoming, outgoing. | |
orderID | String | ID of the order. | |
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
ListUser ListEligibleApprovers(direction, orderID, 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.Orders();
var direction = "direction_example"; // String | Direction of the order, from the current user's perspective. Possible values: incoming, outgoing.
var orderID = "orderID_example"; // String | ID of the order.
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.ListEligibleApprovers(direction, orderID, opts).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
direction | String | Direction of the order, from the current user's perspective. Possible values: incoming, outgoing. | |
orderID | String | ID of the order. | |
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
ListOrderPromotion ListPromotions(direction, orderID, 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.Orders();
var direction = "direction_example"; // String | Direction of the order, from the current user's perspective. Possible values: incoming, outgoing.
var orderID = "orderID_example"; // String | ID of the order.
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.ListPromotions(direction, orderID, opts).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
direction | String | Direction of the order, from the current user's perspective. Possible values: incoming, outgoing. | |
orderID | String | ID of the order. | |
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
Order Patch(direction, orderID, partialOrder)
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.Orders();
var direction = "direction_example"; // String | Direction of the order, from the current user's perspective. Possible values: incoming, outgoing.
var orderID = "orderID_example"; // String | ID of the order.
var partialOrder = new OrderCloud.Order(); // Order |
apiInstance.Patch(direction, orderID, partialOrder).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
direction | String | Direction of the order, from the current user's perspective. Possible values: incoming, outgoing. | |
orderID | String | ID of the order. | |
partialOrder | Order |
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json
Order PatchBillingAddress(direction, orderID, partialAddress)
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.Orders();
var direction = "direction_example"; // String | Direction of the order, from the current user's perspective. Possible values: incoming, outgoing.
var orderID = "orderID_example"; // String | ID of the order.
var partialAddress = new OrderCloud.Address(); // Address |
apiInstance.PatchBillingAddress(direction, orderID, partialAddress).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
direction | String | Direction of the order, from the current user's perspective. Possible values: incoming, outgoing. | |
orderID | String | ID of the order. | |
partialAddress | Address |
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json
Order PatchFromUser(direction, orderID, partialUser)
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.Orders();
var direction = "direction_example"; // String | Direction of the order, from the current user's perspective. Possible values: incoming, outgoing.
var orderID = "orderID_example"; // String | ID of the order.
var partialUser = new OrderCloud.User(); // User |
apiInstance.PatchFromUser(direction, orderID, partialUser).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
direction | String | Direction of the order, from the current user's perspective. Possible values: incoming, outgoing. | |
orderID | String | ID of the order. | |
partialUser | User |
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json
Order PatchShippingAddress(direction, orderID, partialAddress)
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.Orders();
var direction = "direction_example"; // String | Direction of the order, from the current user's perspective. Possible values: incoming, outgoing.
var orderID = "orderID_example"; // String | ID of the order.
var partialAddress = new OrderCloud.Address(); // Address |
apiInstance.PatchShippingAddress(direction, orderID, partialAddress).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
direction | String | Direction of the order, from the current user's perspective. Possible values: incoming, outgoing. | |
orderID | String | ID of the order. | |
partialAddress | Address |
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json
Order RemovePromotion(direction, orderID, promoCode)
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.Orders();
var direction = "direction_example"; // String | Direction of the order, from the current user's perspective. Possible values: incoming, outgoing.
var orderID = "orderID_example"; // String | ID of the order.
var promoCode = "promoCode_example"; // String | Promo code of the order.
apiInstance.RemovePromotion(direction, orderID, promoCode).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
direction | String | Direction of the order, from the current user's perspective. Possible values: incoming, outgoing. | |
orderID | String | ID of the order. | |
promoCode | String | Promo code of the order. |
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json
Order Save(direction, orderID, order)
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.Orders();
var direction = "direction_example"; // String | Direction of the order, from the current user's perspective. Possible values: incoming, outgoing.
var orderID = "orderID_example"; // String | ID of the order.
var order = new OrderCloud.Order(); // Order |
apiInstance.Save(direction, orderID, order).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
direction | String | Direction of the order, from the current user's perspective. Possible values: incoming, outgoing. | |
orderID | String | ID of the order. | |
order | Order |
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json
Order SetBillingAddress(direction, orderID, address)
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.Orders();
var direction = "direction_example"; // String | Direction of the order, from the current user's perspective. Possible values: incoming, outgoing.
var orderID = "orderID_example"; // String | ID of the order.
var address = new OrderCloud.Address(); // Address |
apiInstance.SetBillingAddress(direction, orderID, address).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
direction | String | Direction of the order, from the current user's perspective. Possible values: incoming, outgoing. | |
orderID | String | ID of the order. | |
address | Address |
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json
Order SetShippingAddress(direction, orderID, address)
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.Orders();
var direction = "direction_example"; // String | Direction of the order, from the current user's perspective. Possible values: incoming, outgoing.
var orderID = "orderID_example"; // String | ID of the order.
var address = new OrderCloud.Address(); // Address |
apiInstance.SetShippingAddress(direction, orderID, address).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
direction | String | Direction of the order, from the current user's perspective. Possible values: incoming, outgoing. | |
orderID | String | ID of the order. | |
address | Address |
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json
Order Ship(direction, orderID, 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.Orders();
var direction = "direction_example"; // String | Direction of the order, from the current user's perspective. Possible values: incoming, outgoing.
var orderID = "orderID_example"; // String | ID of the order.
var shipment = new OrderCloud.Shipment(); // Shipment |
apiInstance.Ship(direction, orderID, shipment).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
direction | String | Direction of the order, from the current user's perspective. Possible values: incoming, outgoing. | |
orderID | String | ID of the order. | |
shipment | Shipment |
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json
OrderSplitResult Split(direction, orderID)
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.Orders();
var direction = "direction_example"; // String | Direction of the order, from the current user's perspective. Possible values: incoming, outgoing.
var orderID = "orderID_example"; // String | ID of the order.
apiInstance.Split(direction, orderID).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
direction | String | Direction of the order, from the current user's perspective. Possible values: incoming, outgoing. | |
orderID | String | ID of the order. |
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json
Order Submit(direction, orderID)
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.Orders();
var direction = "direction_example"; // String | Direction of the order, from the current user's perspective. Possible values: incoming, outgoing.
var orderID = "orderID_example"; // String | ID of the order.
apiInstance.Submit(direction, orderID).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
direction | String | Direction of the order, from the current user's perspective. Possible values: incoming, outgoing. | |
orderID | String | ID of the order. |
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json
Validate(direction, orderID)
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.Orders();
var direction = "direction_example"; // String | Direction of the order, from the current user's perspective. Possible values: incoming, outgoing.
var orderID = "orderID_example"; // String | ID of the order.
apiInstance.Validate(direction, orderID).then(function() {
console.log('API called successfully.');
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
direction | String | Direction of the order, from the current user's perspective. Possible values: incoming, outgoing. | |
orderID | String | ID of the order. |
null (empty response body)
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json