All URIs are relative to https://api.kinow.com/api
Method | HTTP request | Description |
---|---|---|
getCustomerOrders | GET /customers/{customer_id}/orders | |
getOrder | GET /orders/{order_id} | |
getOrderHistories | GET /orders/{order_id}/histories | |
getOrderInvoice | GET /orders/{order_id}/invoice | |
getOrders | GET /orders |
OrderListResponse getCustomerOrders(customerId, opts)
Get customer orders
var KinowJavascriptSdk = require('kinow-javascript-sdk');
var defaultClient = KinowJavascriptSdk.ApiClient.instance;
// Configure API key authorization: ApiClientId
var ApiClientId = defaultClient.authentications['ApiClientId'];
ApiClientId.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiClientId.apiKeyPrefix = 'Token';
// Configure API key authorization: ApiClientSecret
var ApiClientSecret = defaultClient.authentications['ApiClientSecret'];
ApiClientSecret.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiClientSecret.apiKeyPrefix = 'Token';
var apiInstance = new KinowJavascriptSdk.OrdersApi();
var customerId = 789; // Integer | Customer ID to fetch
var opts = {
'page': 789, // Integer |
'perPage': 789 // Integer |
};
apiInstance.getCustomerOrders(customerId, opts).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
customerId | Integer | Customer ID to fetch | |
page | Integer | [optional] | |
perPage | Integer | [optional] |
- Content-Type: Not defined
- Accept: Not defined
OrderResponse getOrder(orderId)
Get order
var KinowJavascriptSdk = require('kinow-javascript-sdk');
var defaultClient = KinowJavascriptSdk.ApiClient.instance;
// Configure API key authorization: ApiClientId
var ApiClientId = defaultClient.authentications['ApiClientId'];
ApiClientId.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiClientId.apiKeyPrefix = 'Token';
// Configure API key authorization: ApiClientSecret
var ApiClientSecret = defaultClient.authentications['ApiClientSecret'];
ApiClientSecret.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiClientSecret.apiKeyPrefix = 'Token';
var apiInstance = new KinowJavascriptSdk.OrdersApi();
var orderId = 789; // Integer | Order ID to fetch
apiInstance.getOrder(orderId).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
orderId | Integer | Order ID to fetch |
- Content-Type: Not defined
- Accept: Not defined
OrderHistoryListResponse getOrderHistories(orderId, opts)
Get order histories
var KinowJavascriptSdk = require('kinow-javascript-sdk');
var defaultClient = KinowJavascriptSdk.ApiClient.instance;
// Configure API key authorization: ApiClientId
var ApiClientId = defaultClient.authentications['ApiClientId'];
ApiClientId.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiClientId.apiKeyPrefix = 'Token';
// Configure API key authorization: ApiClientSecret
var ApiClientSecret = defaultClient.authentications['ApiClientSecret'];
ApiClientSecret.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiClientSecret.apiKeyPrefix = 'Token';
var apiInstance = new KinowJavascriptSdk.OrdersApi();
var orderId = 789; // Integer | Order ID to fetch
var opts = {
'page': 789, // Integer |
'perPage': 789 // Integer |
'sortBy': "sortBy_example", // String | Sort by this attribute (id by default)
'sortDirection': "sortDirection_example" // String | Sorting direction (asc by default)
};
apiInstance.getOrderHistories(orderId, opts).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
orderId | Integer | Order ID to fetch | |
page | Integer | [optional] | |
perPage | Integer | [optional] | |
sortBy | String | Sort by this attribute (id by default) | [optional] |
sortDirection | String | Sorting direction (asc by default) | [optional] |
- Content-Type: Not defined
- Accept: Not defined
'String' getOrderInvoice(orderId, opts)
Get order invoice
var KinowJavascriptSdk = require('kinow-javascript-sdk');
var defaultClient = KinowJavascriptSdk.ApiClient.instance;
// Configure API key authorization: ApiClientId
var ApiClientId = defaultClient.authentications['ApiClientId'];
ApiClientId.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiClientId.apiKeyPrefix = 'Token';
// Configure API key authorization: ApiClientSecret
var ApiClientSecret = defaultClient.authentications['ApiClientSecret'];
ApiClientSecret.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiClientSecret.apiKeyPrefix = 'Token';
var apiInstance = new KinowJavascriptSdk.OrdersApi();
var orderId = 789; // Integer | Order ID to fetch
var opts = {
'toBlob': true // Boolean | Get PDF content in blob
};
apiInstance.getOrderInvoice(orderId, opts).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
orderId | Integer | Order ID to fetch | |
toBlob | Boolean | Get PDF content in blob | [optional] [default to true] |
'String'
- Content-Type: Not defined
- Accept: Not defined
OrderListResponse getOrders(opts)
Get order list
var KinowJavascriptSdk = require('kinow-javascript-sdk');
var defaultClient = KinowJavascriptSdk.ApiClient.instance;
// Configure API key authorization: ApiClientId
var ApiClientId = defaultClient.authentications['ApiClientId'];
ApiClientId.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiClientId.apiKeyPrefix = 'Token';
// Configure API key authorization: ApiClientSecret
var ApiClientSecret = defaultClient.authentications['ApiClientSecret'];
ApiClientSecret.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiClientSecret.apiKeyPrefix = 'Token';
var apiInstance = new KinowJavascriptSdk.OrdersApi();
var opts = {
'page': 789, // Integer |
'perPage': 789 // Integer |
'filters': "filters_example", // String | ``` name[value]=string&name[operator]=contains&date_add[value]=string&date_add[operator]=lt _______________ { \"name\": { \"value\": \"string\", \"operator\": \"contains\" }, \"date_add\": { \"value\": \"string\", \"operator\": \"lt\" } } ``` Operator can be: strict, contains, between, in, gt (greater than), lt (lower than).
'sortBy': "sortBy_example", // String | Sort by this attribute (id by default)
'sortDirection': "sortDirection_example" // String | Sorting direction (asc by default)
};
apiInstance.getOrders(opts).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
page | Integer | [optional] | |
perPage | Integer | [optional] | |
filters | String | ``` name[value]=string&name[operator]=contains&date_add[value]=string&date_add[operator]=lt _______________ { "name": { "value": "string", "operator": "contains" }, "date_add": { "value": "string", "operator": "lt" } } ``` Operator can be: strict, contains, between, in, gt (greater than), lt (lower than). | [optional] |
sortBy | String | Sort by this attribute (id by default) | [optional] |
sortDirection | String | Sorting direction (asc by default) | [optional] |
- Content-Type: Not defined
- Accept: Not defined