All URIs are relative to https://prod.api.appcluster01.ca-central-1.ezmax.com/rest
Method | HTTP request | Description |
---|---|---|
paymenttermCreateObjectV1 | POST /1/object/paymentterm | Create a new Paymentterm |
paymenttermEditObjectV1 | PUT /1/object/paymentterm/{pkiPaymenttermID} | Edit an existing Paymentterm |
paymenttermGetAutocompleteV2 | GET /2/object/paymentterm/getAutocomplete/{sSelector} | Retrieve Paymentterms and IDs |
paymenttermGetListV1 | GET /1/object/paymentterm/getList | Retrieve Paymentterm list |
paymenttermGetObjectV2 | GET /2/object/paymentterm/{pkiPaymenttermID} | Retrieve an existing Paymentterm |
PaymenttermCreateObjectV1Response paymenttermCreateObjectV1(PaymenttermCreateObjectV1Request)
Create a new Paymentterm
The endpoint allows to create one or many elements at once.
import EZmaxApiDefinitionFull from 'e_zmax_api_definition__full';
let defaultClient = EZmaxApiDefinitionFull.ApiClient.instance;
// Configure API key authorization: Authorization
let Authorization = defaultClient.authentications['Authorization'];
Authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.apiKeyPrefix = 'Token';
let apiInstance = new EZmaxApiDefinitionFull.ObjectPaymenttermApi();
let PaymenttermCreateObjectV1Request = new EZmaxApiDefinitionFull.PaymenttermCreateObjectV1Request(); // PaymenttermCreateObjectV1Request |
apiInstance.paymenttermCreateObjectV1(PaymenttermCreateObjectV1Request, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
PaymenttermCreateObjectV1Request | PaymenttermCreateObjectV1Request |
PaymenttermCreateObjectV1Response
- Content-Type: application/json
- Accept: application/json
PaymenttermEditObjectV1Response paymenttermEditObjectV1(pkiPaymenttermID, PaymenttermEditObjectV1Request)
Edit an existing Paymentterm
import EZmaxApiDefinitionFull from 'e_zmax_api_definition__full';
let defaultClient = EZmaxApiDefinitionFull.ApiClient.instance;
// Configure API key authorization: Authorization
let Authorization = defaultClient.authentications['Authorization'];
Authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.apiKeyPrefix = 'Token';
let apiInstance = new EZmaxApiDefinitionFull.ObjectPaymenttermApi();
let pkiPaymenttermID = 56; // Number |
let PaymenttermEditObjectV1Request = new EZmaxApiDefinitionFull.PaymenttermEditObjectV1Request(); // PaymenttermEditObjectV1Request |
apiInstance.paymenttermEditObjectV1(pkiPaymenttermID, PaymenttermEditObjectV1Request, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
pkiPaymenttermID | Number | ||
PaymenttermEditObjectV1Request | PaymenttermEditObjectV1Request |
PaymenttermEditObjectV1Response
- Content-Type: application/json
- Accept: application/json
PaymenttermGetAutocompleteV2Response paymenttermGetAutocompleteV2(sSelector, opts)
Retrieve Paymentterms and IDs
Get the list of Paymentterm to be used in a dropdown or autocomplete control.
import EZmaxApiDefinitionFull from 'e_zmax_api_definition__full';
let defaultClient = EZmaxApiDefinitionFull.ApiClient.instance;
// Configure API key authorization: Authorization
let Authorization = defaultClient.authentications['Authorization'];
Authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.apiKeyPrefix = 'Token';
let apiInstance = new EZmaxApiDefinitionFull.ObjectPaymenttermApi();
let sSelector = "sSelector_example"; // String | The type of Paymentterms to return
let opts = {
'eFilterActive': "'Active'", // String | Specify which results we want to display.
'sQuery': "sQuery_example", // String | Allow to filter the returned results
'Accept_Language': new EZmaxApiDefinitionFull.HeaderAcceptLanguage() // HeaderAcceptLanguage |
};
apiInstance.paymenttermGetAutocompleteV2(sSelector, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
sSelector | String | The type of Paymentterms to return | |
eFilterActive | String | Specify which results we want to display. | [optional] [default to 'Active'] |
sQuery | String | Allow to filter the returned results | [optional] |
Accept_Language | HeaderAcceptLanguage | [optional] |
PaymenttermGetAutocompleteV2Response
- Content-Type: Not defined
- Accept: application/json
PaymenttermGetListV1Response paymenttermGetListV1(opts)
Retrieve Paymentterm list
import EZmaxApiDefinitionFull from 'e_zmax_api_definition__full';
let defaultClient = EZmaxApiDefinitionFull.ApiClient.instance;
// Configure API key authorization: Authorization
let Authorization = defaultClient.authentications['Authorization'];
Authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.apiKeyPrefix = 'Token';
let apiInstance = new EZmaxApiDefinitionFull.ObjectPaymenttermApi();
let opts = {
'eOrderBy': "eOrderBy_example", // String | Specify how you want the results to be sorted
'iRowMax': 10000, // Number |
'iRowOffset': 0, // Number |
'Accept_Language': new EZmaxApiDefinitionFull.HeaderAcceptLanguage(), // HeaderAcceptLanguage |
'sFilter': "sFilter_example" // String |
};
apiInstance.paymenttermGetListV1(opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
eOrderBy | String | Specify how you want the results to be sorted | [optional] |
iRowMax | Number | [optional] [default to 10000] | |
iRowOffset | Number | [optional] [default to 0] | |
Accept_Language | HeaderAcceptLanguage | [optional] | |
sFilter | String | [optional] |
- Content-Type: Not defined
- Accept: application/json, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
PaymenttermGetObjectV2Response paymenttermGetObjectV2(pkiPaymenttermID)
Retrieve an existing Paymentterm
import EZmaxApiDefinitionFull from 'e_zmax_api_definition__full';
let defaultClient = EZmaxApiDefinitionFull.ApiClient.instance;
// Configure API key authorization: Authorization
let Authorization = defaultClient.authentications['Authorization'];
Authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.apiKeyPrefix = 'Token';
let apiInstance = new EZmaxApiDefinitionFull.ObjectPaymenttermApi();
let pkiPaymenttermID = 56; // Number |
apiInstance.paymenttermGetObjectV2(pkiPaymenttermID, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
pkiPaymenttermID | Number |
PaymenttermGetObjectV2Response
- Content-Type: Not defined
- Accept: application/json