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 classes:
//import org.openapitools.client.api.ObjectPaymenttermApi;
ObjectPaymenttermApi apiInstance = new ObjectPaymenttermApi();
PaymenttermCreateObjectV1Request paymenttermCreateObjectV1Request = new PaymenttermCreateObjectV1Request(); // PaymenttermCreateObjectV1Request |
try {
PaymenttermCreateObjectV1Response result = apiInstance.paymenttermCreateObjectV1(paymenttermCreateObjectV1Request);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ObjectPaymenttermApi#paymenttermCreateObjectV1");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
paymenttermCreateObjectV1Request | PaymenttermCreateObjectV1Request |
PaymenttermCreateObjectV1Response
- Content-Type: application/json
- Accept: application/json
PaymenttermEditObjectV1Response paymenttermEditObjectV1(pkiPaymenttermID, paymenttermEditObjectV1Request)
Edit an existing Paymentterm
// Import classes:
//import org.openapitools.client.api.ObjectPaymenttermApi;
ObjectPaymenttermApi apiInstance = new ObjectPaymenttermApi();
Integer pkiPaymenttermID = null; // Integer |
PaymenttermEditObjectV1Request paymenttermEditObjectV1Request = new PaymenttermEditObjectV1Request(); // PaymenttermEditObjectV1Request |
try {
PaymenttermEditObjectV1Response result = apiInstance.paymenttermEditObjectV1(pkiPaymenttermID, paymenttermEditObjectV1Request);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ObjectPaymenttermApi#paymenttermEditObjectV1");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
pkiPaymenttermID | Integer | [default to null] | |
paymenttermEditObjectV1Request | PaymenttermEditObjectV1Request |
PaymenttermEditObjectV1Response
- Content-Type: application/json
- Accept: application/json
PaymenttermGetAutocompleteV2Response paymenttermGetAutocompleteV2(sSelector, eFilterActive, sQuery, acceptLanguage)
Retrieve Paymentterms and IDs
Get the list of Paymentterm to be used in a dropdown or autocomplete control.
// Import classes:
//import org.openapitools.client.api.ObjectPaymenttermApi;
ObjectPaymenttermApi apiInstance = new ObjectPaymenttermApi();
String sSelector = null; // String | The type of Paymentterms to return
String eFilterActive = Active; // String | Specify which results we want to display.
String sQuery = null; // String | Allow to filter the returned results
HeaderAcceptLanguage acceptLanguage = null; // HeaderAcceptLanguage |
try {
PaymenttermGetAutocompleteV2Response result = apiInstance.paymenttermGetAutocompleteV2(sSelector, eFilterActive, sQuery, acceptLanguage);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ObjectPaymenttermApi#paymenttermGetAutocompleteV2");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
sSelector | String | The type of Paymentterms to return | [default to null] [enum: All] |
eFilterActive | String | Specify which results we want to display. | [optional] [default to Active] [enum: All, Active, Inactive] |
sQuery | String | Allow to filter the returned results | [optional] [default to null] |
acceptLanguage | HeaderAcceptLanguage | [optional] [default to null] [enum: *, en, fr] |
PaymenttermGetAutocompleteV2Response
- Content-Type: Not defined
- Accept: application/json
PaymenttermGetListV1Response paymenttermGetListV1(eOrderBy, iRowMax, iRowOffset, acceptLanguage, sFilter)
Retrieve Paymentterm list
// Import classes:
//import org.openapitools.client.api.ObjectPaymenttermApi;
ObjectPaymenttermApi apiInstance = new ObjectPaymenttermApi();
String eOrderBy = null; // String | Specify how you want the results to be sorted
Integer iRowMax = null; // Integer |
Integer iRowOffset = 0; // Integer |
HeaderAcceptLanguage acceptLanguage = null; // HeaderAcceptLanguage |
String sFilter = null; // String |
try {
PaymenttermGetListV1Response result = apiInstance.paymenttermGetListV1(eOrderBy, iRowMax, iRowOffset, acceptLanguage, sFilter);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ObjectPaymenttermApi#paymenttermGetListV1");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
eOrderBy | String | Specify how you want the results to be sorted | [optional] [default to null] [enum: pkiPaymenttermID_ASC, pkiPaymenttermID_DESC, sPaymenttermCode_ASC, sPaymenttermCode_DESC, ePaymenttermType_ASC, ePaymenttermType_DESC, iPaymenttermDay_ASC, iPaymenttermDay_DESC, sPaymenttermDescriptionX_ASC, sPaymenttermDescriptionX_DESC, bPaymenttermIsactive_ASC, bPaymenttermIsactive_DESC] |
iRowMax | Integer | [optional] [default to null] | |
iRowOffset | Integer | [optional] [default to 0] | |
acceptLanguage | HeaderAcceptLanguage | [optional] [default to null] [enum: *, en, fr] | |
sFilter | String | [optional] [default to null] |
- Content-Type: Not defined
- Accept: application/json, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
PaymenttermGetObjectV2Response paymenttermGetObjectV2(pkiPaymenttermID)
Retrieve an existing Paymentterm
// Import classes:
//import org.openapitools.client.api.ObjectPaymenttermApi;
ObjectPaymenttermApi apiInstance = new ObjectPaymenttermApi();
Integer pkiPaymenttermID = null; // Integer |
try {
PaymenttermGetObjectV2Response result = apiInstance.paymenttermGetObjectV2(pkiPaymenttermID);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ObjectPaymenttermApi#paymenttermGetObjectV2");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
pkiPaymenttermID | Integer | [default to null] |
PaymenttermGetObjectV2Response
- Content-Type: Not defined
- Accept: application/json