Sales | Sales Parameters
The Sales Setup is used to manage default values for each company, such as the default order type or default sales channel.
Overview
| URL | api/{tenantKey}/{orgKey}/salesCore/salesSetups |
| Methods Supported | GET, POST, PUT, DELETE |
All Operations
This service includes the following operations:
- GET:
- POST:
-
PUT:
- PUT Set Custom Attribute SalesSetup
- PUT Set IsActive SalesSetup
- PUT Set DefaultOrderType SalesSetup
- PUT Set DefaultMemoType SalesSetup
- PUT Set Company SalesSetup
- PUT Set DefaultInvoiceType SalesSetup
- PUT Set DefaultQuotationType SalesSetup
- PUT Set DefaultDeliveryType SalesSetup
- PUT Set QuotationValidity SalesSetup
- PUT Set DefaultSalesChannel SalesSetup
- PUT Set DefaultPriceList SalesSetup
- PUT Set DefaultReturnOrderType SalesSetup
- DELETE:
All Resources
This service uses the following resources:
GET SalesSetups
Returns the list of all the entity records available.
Response:
| When successful, the response body contains the list of records available. See SalesSetupResource. |
Response status codes:
| 200 | OK. The operation was completed successfully. |
| 400 | BadRequest. The request parameters are invalid. |
Resource URL:
GET SalesSetups (paged)
Returns a page of the list of all the entity records available.
The following elements are optional:
| page | (int) The index of the page of the list that should be returned. This is a query string parameter. |
| pageSize | (int) The number of page elements that should be returned (max. is 1000). This is a query string parameter. |
Response:
| When successful, the response body contains the list of records available. See SalesSetupResource. |
Response status codes:
| 200 | OK. The operation was completed successfully. |
| 400 | BadRequest. The request parameters are invalid. |
Resource URL:
GET SalesSetup by identifier
Returns the entity record that matches the specified identifier.
The following elements are required:
| id | (string) The record identifier. |
Response:
| When successful, the response body contains the entity record. See SalesSetupResource. |
Response status codes:
| 200 | OK. The operation was completed successfully. |
| 400 | BadRequest. The request parameters are invalid. |
| 404 | NotFound. The specified record does not exist. |
Resource URL:
GET SalesSetup by key
Returns the entity record that matches the specified key.
The following elements are required:
| company | (string) The company's code is the central organizational unit within the system. |
Response:
| When successful, the response body contains the entity record. See SalesSetupResource. |
Response status codes:
| 200 | OK. The operation was completed successfully. |
| 400 | BadRequest. The request parameters are invalid. |
| 404 | NotFound. The specified record does not exist. |
Resource URL:
GET Print SalesSetup by identifier
Prints the specified entity record.
The following elements are required:
| id | (string) The record identifier. |
The following elements are optional:
| template | (string) The report template that should be used. This is a query string parameter. |
Response:
| When successful, the response body contains a stream with the printed file. |
Response status codes:
| 200 | OK. The operation was completed successfully. |
| 404 | NotFound. The specified resord does not exist. |
Resource URL:
GET Print SalesSetup by key
Prints the specified entity record.
The following elements are required:
| company | (string) The company's code is the central organizational unit within the system. |
The following elements are optional:
| template | (string) The report template that should be used. This is a query string parameter. |
Response:
| When successful, the response body contains a stream with the printed file. |
Response status codes:
| 200 | OK. The operation was completed successfully. |
| 400 | BadRequest. The request parameters are invalid. |
| 404 | NotFound. The specified record does not exist. |
Resource URL:
GET Original Print SalesSetupOriginal by identifier
Prints the specified entity record.
The following elements are required:
| id | (string) The record identifier. |
The following elements are optional:
| template | (string) The report template that should be used. This is a query string parameter. |
Response:
| When successful, the response body contains a stream with the printed file. |
Response status codes:
| 200 | OK. The operation was completed successfully. |
| 404 | NotFound. The specified resord does not exist. |
Resource URL:
GET Original Print SalesSetup by key
Prints the specified entity record.
The following elements are required:
| company | (string) The company's code is the central organizational unit within the system. |
The following elements are optional:
| template | (string) The report template that should be used. This is a query string parameter. |
Response:
| When successful, the response body contains a stream with the printed file. |
Response status codes:
| 200 | OK. The operation was completed successfully. |
| 400 | BadRequest. The request parameters are invalid. |
| 404 | NotFound. The specified record does not exist. |
Resource URL:
POST SalesSetups
Creates a new entity record.
The following elements are required:
| salesSetupResource | (ApiSalesSetupResource) The request body should contain the entity record that should be created. See ApiSalesSetupResource. |
The following elements are optional:
| customAttributes | (JSON Document) A key-value pair in JSON format that represents the extensibility custom attributes for this entity. The key should be the custom attribute name prefixed with "custom_", e.g. "custom_attributeName". While the "customAttributes" element is optional, please notice that specific custom attributes might be marked as required. |
Response:
| When successful, the response body contains the new entity record identifier. The resource header location property contains the URL for the new entity record. See ApiSalesSetupResource. |
Response status codes:
| 201 | Created. The operation was completed successfully. |
| 400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set Company SalesSetup
Updates the value of attribute 'Company' in the specified entity record.
The following elements are required:
| company | (string) The company's code is the central organizational unit within the system. |
| value | (string) The request body should contain the new value for the attribute. |
Response:
| When successful, the response body is empty. |
Response status codes:
| 200 | OK. The operation was completed successfully. |
| 400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set DefaultDeliveryType SalesSetup
Updates the value of attribute 'DefaultDeliveryType' in the specified entity record.
The following elements are required:
| company | (string) The company's code is the central organizational unit within the system. |
| value | (string) The request body should contain the new value for the attribute. |
Response:
| When successful, the response body is empty. |
Response status codes:
| 200 | OK. The operation was completed successfully. |
| 400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set DefaultInvoiceType SalesSetup
Updates the value of attribute 'DefaultInvoiceType' in the specified entity record.
The following elements are required:
| company | (string) The company's code is the central organizational unit within the system. |
| value | (string) The request body should contain the new value for the attribute. |
Response:
| When successful, the response body is empty. |
Response status codes:
| 200 | OK. The operation was completed successfully. |
| 400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set DefaultMemoType SalesSetup
Updates the value of attribute 'DefaultMemoType' in the specified entity record.
The following elements are required:
| company | (string) The company's code is the central organizational unit within the system. |
| value | (string) The request body should contain the new value for the attribute. |
Response:
| When successful, the response body is empty. |
Response status codes:
| 200 | OK. The operation was completed successfully. |
| 400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set DefaultOrderType SalesSetup
Updates the value of attribute 'DefaultOrderType' in the specified entity record.
The following elements are required:
| company | (string) The company's code is the central organizational unit within the system. |
| value | (string) The request body should contain the new value for the attribute. |
Response:
| When successful, the response body is empty. |
Response status codes:
| 200 | OK. The operation was completed successfully. |
| 400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set DefaultPriceList SalesSetup
Updates the value of attribute 'DefaultPriceList' in the specified entity record.
The following elements are required:
| company | (string) The company's code is the central organizational unit within the system. |
| value | (string) The request body should contain the new value for the attribute. |
Response:
| When successful, the response body is empty. |
Response status codes:
| 200 | OK. The operation was completed successfully. |
| 400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set DefaultQuotationType SalesSetup
Updates the value of attribute 'DefaultQuotationType' in the specified entity record.
The following elements are required:
| company | (string) The company's code is the central organizational unit within the system. |
| value | (string) The request body should contain the new value for the attribute. |
Response:
| When successful, the response body is empty. |
Response status codes:
| 200 | OK. The operation was completed successfully. |
| 400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set DefaultReturnOrderType SalesSetup
Updates the value of attribute 'DefaultReturnOrderType' in the specified entity record.
The following elements are required:
| company | (string) The company's code is the central organizational unit within the system. |
| value | (string) The request body should contain the new value for the attribute. |
Response:
| When successful, the response body is empty. |
Response status codes:
| 200 | OK. The operation was completed successfully. |
| 400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set DefaultSalesChannel SalesSetup
Updates the value of attribute 'DefaultSalesChannel' in the specified entity record.
The following elements are required:
| company | (string) The company's code is the central organizational unit within the system. |
| value | (string) The request body should contain the new value for the attribute. |
Response:
| When successful, the response body is empty. |
Response status codes:
| 200 | OK. The operation was completed successfully. |
| 400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set IsActive SalesSetup
Updates the value of attribute 'IsActive' in the specified entity record.
The following elements are required:
| company | (string) The company's code is the central organizational unit within the system. |
| value | (bool) The request body should contain the new value for the attribute. |
Response:
| When successful, the response body is empty. |
Response status codes:
| 200 | OK. The operation was completed successfully. |
| 400 | BadRequest. The request parameters are invalid. |
| 404 | NotFound. The specified record does not exist. |
Resource URL:
PUT Set QuotationValidity SalesSetup
Updates the value of attribute 'QuotationValidity' in the specified entity record.
The following elements are required:
| company | (string) The company's code is the central organizational unit within the system. |
| value | (int) The request body should contain the new value for the attribute. |
Response:
| When successful, the response body is empty. |
Response status codes:
| 200 | OK. The operation was completed successfully. |
| 400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set Custom Attribute SalesSetup
Updates the value of 'CustomAttribute' in the specified entity record.
The following elements are required:
| companyKey | (string) The company key. |
| company | (string) The company's code is the central organizational unit within the system. |
| customAttributeName | (string) The custom attribute name. |
| value | (ExtensibilityCustomAttributeValueResource) The request body should contain the new value for the custom attribute. See ExtensibilityCustomAttributeValueResource. |
Response:
| When successful, the response body is empty. |
Response status codes:
| 200 | OK. The operation was completed successfully. |
| 400 | BadRequest. The request parameters are invalid. |
| 404 | NotFound. The specified record does not exist. |
Resource URL:
DELETE SalesSetup by identifier
Deletes the entity record that matches the specified identifier.
The following elements are required:
| id | (string) The record identifier. |
Response:
| When successful, the response body is empty. |
Response status codes:
| 204 | Deleted. The operation was completed successfully. |
| 400 | BadRequest. The request parameters are invalid. |
| 404 | NotFound. The specified record does not exist. |
Resource URL:
DELETE SalesSetup by key
Deletes the entity record that matches the specified key.
The following elements are required:
| company | (string) The company's code is the central organizational unit within the system. |
Response:
| When successful, the response body is empty. |
Response status codes:
| 204 | Deleted. The operation was completed successfully. |
| 400 | BadRequest. The request parameters are invalid. |
| 404 | NotFound. The specified record does not exist. |
Resource URL:
Resources
ApiSalesSetupResource
The following elements are required:
| company | (string) The company's code is the central organizational unit within the system. |
The following elements are optional:
| defaultOrderType | (string) The default order type when the orders are processed. |
| defaultMemoType | (string) The default memo type when the memos are processed. |
| defaultInvoiceType | (string) The default order type when the invoices are processed. |
| defaultQuotationType | (string) The default order type when the quotations are processed. |
| defaultDeliveryType | (string) The default order type when the deliveries are processed. |
| quotationValidity | (int) The quotation validity. |
| defaultSalesChannel | (string) The default sales channel to be used. |
| defaultPriceList | (string) The default price list to be used. |
| defaultReturnOrderType | (string) The default return order type to be used. |
SalesSetupResource
The following elements are required:
| company | (string) The company's code is the central organizational unit within the system.
(fk) Allowed value: the natural key of a record of type Company. These records are accessibly through the Companies service. |
The following elements are optional:
| defaultOrderType | (string) The default order type when the orders are processed.
(fk) Allowed value: the natural key of a record of type OrderType. These records are accessibly through the OrderTypes service. |
| defaultMemoType | (string) The default memo type when the memos are processed.
(fk) Allowed value: the natural key of a record of type MemoType. These records are accessibly through the MemoTypes service. |
| defaultInvoiceType | (string) The default order type when the invoices are processed.
(fk) Allowed value: the natural key of a record of type InvoiceType. These records are accessibly through the InvoiceTypes service. |
| defaultQuotationType | (string) The default order type when the quotations are processed.
(fk) Allowed value: the natural key of a record of type QuotationType. These records are accessibly through the QuotationTypes service. |
| defaultDeliveryType | (string) The default order type when the deliveries are processed.
(fk) Allowed value: the natural key of a record of type DeliveryType. These records are accessibly through the DeliveryTypes service. |
| quotationValidity | (int) The quotation validity. |
| defaultSalesChannel | (string) The default sales channel to be used.
(fk) Allowed value: the natural key of a record of type SalesChannel. These records are accessibly through the SalesChannels service. |
| defaultPriceList | (string) The default price list to be used.
(fk) Allowed value: the natural key of a record of type PriceList. These records are accessibly through the PriceLists service. |
| defaultReturnOrderType | (string) The default return order type to be used.
(fk) Allowed value: the natural key of a record of type OrderType. These records are accessibly through the OrderTypes service. |
ExtensibilityCustomAttributeValueResource
The following elements are required:
| value | (object) The custom attribute value. |