All URIs are relative to https://api.ordercloud.io/v1
Method | HTTP request | Description |
---|---|---|
Create | POST /messagesenders | |
Delete | DELETE /messagesenders/{messageSenderID} | |
DeleteAssignment | DELETE /messagesenders/{messageSenderID}/assignments | |
Get | GET /messagesenders/{messageSenderID} | |
List | GET /messagesenders | |
ListAssignments | GET /messagesenders/assignments | |
ListCCListenerAssignments | GET /messagesenders/CCListenerAssignments | |
Patch | PATCH /messagesenders/{messageSenderID} | |
Save | PUT /messagesenders/{messageSenderID} | |
SaveAssignment | POST /messagesenders/assignments | |
SaveCCListenerAssignment | POST /messagesenders/CCListenerAssignments |
MessageSender Create(messageSender)
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.MessageSenders();
var messageSender = new OrderCloud.MessageSender(); // MessageSender |
apiInstance.Create(messageSender).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
messageSender | MessageSender |
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json
Delete(messageSenderID)
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.MessageSenders();
var messageSenderID = "messageSenderID_example"; // String | ID of the message sender.
apiInstance.Delete(messageSenderID).then(function() {
console.log('API called successfully.');
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
messageSenderID | String | ID of the message sender. |
null (empty response body)
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json
DeleteAssignment(messageSenderID, 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.MessageSenders();
var messageSenderID = "messageSenderID_example"; // String | ID of the message sender.
var opts = {
'buyerID': "buyerID_example", // String | ID of the buyer.
'userID': "userID_example", // String | ID of the user.
'userGroupID': "userGroupID_example", // String | ID of the user group.
'supplierID': "supplierID_example" // String | ID of the supplier.
};
apiInstance.DeleteAssignment(messageSenderID, opts).then(function() {
console.log('API called successfully.');
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
messageSenderID | String | ID of the message sender. | |
buyerID | String | ID of the buyer. | [optional] |
userID | String | ID of the user. | [optional] |
userGroupID | String | ID of the user group. | [optional] |
supplierID | String | ID of the supplier. | [optional] |
null (empty response body)
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json
MessageSender Get(messageSenderID)
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.MessageSenders();
var messageSenderID = "messageSenderID_example"; // String | ID of the message sender.
apiInstance.Get(messageSenderID).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
messageSenderID | String | ID of the message sender. |
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json
ListMessageSender 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.MessageSenders();
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.List(opts).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
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
ListMessageSenderAssignment ListAssignments(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.MessageSenders();
var opts = {
'buyerID': "buyerID_example", // String | ID of the buyer.
'messageSenderID': "messageSenderID_example", // String | ID of the message sender.
'userID': "userID_example", // String | ID of the user.
'userGroupID': "userGroupID_example", // String | ID of the user group.
'level': "level_example", // String | Level of the message sender assignment. Possible values: User, Group, Company.
'page': 56, // Number | Page of results to return. Default: 1
'pageSize': 56, // Number | Number of results to return per page. Default: 20, max: 100.
'supplierID': "supplierID_example" // String | ID of the supplier.
};
apiInstance.ListAssignments(opts).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
buyerID | String | ID of the buyer. | [optional] |
messageSenderID | String | ID of the message sender. | [optional] |
userID | String | ID of the user. | [optional] |
userGroupID | String | ID of the user group. | [optional] |
level | String | Level of the message sender assignment. Possible values: User, Group, Company. | [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] |
supplierID | String | ID of the supplier. | [optional] |
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json
ListMessageCCListenerAssignment ListCCListenerAssignments(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.MessageSenders();
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.ListCCListenerAssignments(opts).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
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] |
ListMessageCCListenerAssignment
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json
MessageSender Patch(messageSenderID, partialMessageSender)
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.MessageSenders();
var messageSenderID = "messageSenderID_example"; // String | ID of the message sender.
var partialMessageSender = new OrderCloud.MessageSender(); // MessageSender |
apiInstance.Patch(messageSenderID, partialMessageSender).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
messageSenderID | String | ID of the message sender. | |
partialMessageSender | MessageSender |
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json
MessageSender Save(messageSenderID, messageSender)
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.MessageSenders();
var messageSenderID = "messageSenderID_example"; // String | ID of the message sender.
var messageSender = new OrderCloud.MessageSender(); // MessageSender |
apiInstance.Save(messageSenderID, messageSender).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
messageSenderID | String | ID of the message sender. | |
messageSender | MessageSender |
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json
SaveAssignment(messageSenderAssignment)
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.MessageSenders();
var messageSenderAssignment = new OrderCloud.MessageSenderAssignment(); // MessageSenderAssignment |
apiInstance.SaveAssignment(messageSenderAssignment).then(function() {
console.log('API called successfully.');
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
messageSenderAssignment | MessageSenderAssignment |
null (empty response body)
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json
SaveCCListenerAssignment(messageCCListenerAssignment)
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.MessageSenders();
var messageCCListenerAssignment = new OrderCloud.MessageCCListenerAssignment(); // MessageCCListenerAssignment |
apiInstance.SaveCCListenerAssignment(messageCCListenerAssignment).then(function() {
console.log('API called successfully.');
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
messageCCListenerAssignment | MessageCCListenerAssignment |
null (empty response body)
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json