Jasmin Developers - Web API Reference

GET Operations

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 /salesCore/salesSetups

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 /salesCore/salesSetups?page={page}&pageSize={pageSize}

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 /salesCore/salesSetups/{id}

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 /salesCore/salesSetups/{company}

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 /salesCore/salesSetups/{id}/print?template={template}

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 /salesCore/salesSetups/{company}/print

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 /salesCore/salesSetups/{id}/printOriginal?template={template}

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:

GET /salesCore/salesSetups/{company}/printOriginal

POST Operations

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.

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:

POST /salesCore/salesSetups

PUT Operations

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 /salesCore/salesSetups/{company}/company

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 /salesCore/salesSetups/{company}/defaultDeliveryType

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 /salesCore/salesSetups/{company}/defaultInvoiceType

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 /salesCore/salesSetups/{company}/defaultMemoType

PUT Set DefaultOneTimeCustomer SalesSetup

Updates the value of attribute 'DefaultOneTimeCustomer' 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 /salesCore/salesSetups/{company}/defaultOneTimeCustomer

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 /salesCore/salesSetups/{company}/defaultOrderType

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 /salesCore/salesSetups/{company}/defaultPriceList

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 /salesCore/salesSetups/{company}/defaultQuotationType

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 /salesCore/salesSetups/{company}/defaultSalesChannel

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 /salesCore/salesSetups/{company}/isActive

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 /salesCore/salesSetups/{company}/quotationValidity

DELETE Operations

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 /salesCore/salesSetups/{id}

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:

DELETE /salesCore/salesSetups/{company}

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) Indicates the default order type when the orders are processed.
defaultMemoType (string) Indicates the default memo type when the memos are processed.
defaultInvoiceType (string) Indicates the default order type when the invoices are processed.
defaultQuotationType (string) Indicates the default order type when the quotations are processed.
defaultDeliveryType (string) Indicates the default order type when the deliveries are processed.
quotationValidity (int) Indicates the quotation validity.
defaultSalesChannel (string) Indicates the default sales channel to be used.
defaultPriceList (string) Indicates the default price list to be used.
defaultOneTimeCustomer (string) Indicates the default non-regular customer to use.


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) Indicates 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) Indicates 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) Indicates 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) Indicates 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) Indicates 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) Indicates the quotation validity.
defaultSalesChannel (string) Indicates 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) Indicates 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.
defaultOneTimeCustomer (string) Indicates the default non-regular customer to use.
(fk) Allowed value: the natural key of a record of type CustomerParty. These records are accessibly through the CustomerParties service.