Jasmin Developers - Web API Reference

Logistics | Stock Settings

Service to manage entities of type 'Stock Settings'.

Overview


URL api/{tenantKey}/{orgKey}/logisticsCore/logisticsSetups
Methods Supported GET, PUT

All Operations

This service includes the following operations:

All Resources

This service uses the following resources:

GET Operations

GET LogisticsSetups

Returns the list of all the entity records available.

Response:

When successful, the response body contains the list of records available. See LogisticsSetupResource.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

GET /logisticsCore/logisticsSetups

GET LogisticsSetups (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 LogisticsSetupResource.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

GET /logisticsCore/logisticsSetups?page={page}&pageSize={pageSize}

GET LogisticsSetup 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 LogisticsSetupResource.

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 /logisticsCore/logisticsSetups/{id}

GET LogisticsSetup by key

Returns the entity record that matches the specified key.

The following elements are required:

company (string) Company.

Response:

When successful, the response body contains the entity record. See LogisticsSetupResource.

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 /logisticsCore/logisticsSetups/{company}

GET Print LogisticsSetup 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 /logisticsCore/logisticsSetups/{id}/print?template={template}

GET Print LogisticsSetup by key

Prints the specified entity record.

The following elements are required:

company (string) Company.

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 /logisticsCore/logisticsSetups/{company}/print

GET Original Print LogisticsSetupOriginal 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 /logisticsCore/logisticsSetups/{id}/printOriginal?template={template}

GET Original Print LogisticsSetup by key

Prints the specified entity record.

The following elements are required:

company (string) Company.

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 /logisticsCore/logisticsSetups/{company}/printOriginal

PUT Operations

PUT Set Company LogisticsSetup

Updates the value of attribute 'Company' in the specified entity record.

The following elements are required:

company (string) Company.
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 /logisticsCore/logisticsSetups/{company}/company

PUT Set DefaultStockTransferOrderType LogisticsSetup

Updates the value of attribute 'DefaultStockTransferOrderType' in the specified entity record.

The following elements are required:

company (string) Company.
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 /logisticsCore/logisticsSetups/{company}/defaultStockTransferOrderType

PUT Set DefaultWarehouse LogisticsSetup

Updates the value of attribute 'DefaultWarehouse' in the specified entity record.

The following elements are required:

company (string) Company.
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 /logisticsCore/logisticsSetups/{company}/defaultWarehouse

PUT Set InventoryManagementForNewItems LogisticsSetup

Updates the value of attribute 'InventoryManagementForNewItems' in the specified entity record.

The following elements are required:

company (string) Company.
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.

Resource URL:

PUT /logisticsCore/logisticsSetups/{company}/inventoryManagementForNewItems

PUT Set IsActive LogisticsSetup

Updates the value of attribute 'IsActive' in the specified entity record.

The following elements are required:

company (string) Company.
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 /logisticsCore/logisticsSetups/{company}/isActive

PUT Set NegativeStock LogisticsSetup

Updates the value of attribute 'NegativeStock' in the specified entity record.

The following elements are required:

company (string) Company.
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.

Resource URL:

PUT /logisticsCore/logisticsSetups/{company}/negativeStock

Resources


LogisticsSetupResource

The following elements are required:

company (string) Company.
(fk) Allowed value: the natural key of a record of type Company. These records are accessibly through the Companies service.
negativeStock (bool) Allow Negative Stock.
inventoryManagementForNewItems (bool) Indicates whether it's suggested inventory management for new Items.

The following elements are optional:

defaultStockTransferOrderType (string) Stock Transfer Order Type.
(fk) Allowed value: the natural key of a record of type DeliveryType. These records are accessibly through the DeliveryTypes service.
lastInventoryCloseDate (DateTime) Last Inventory Close Date.
defaultWarehouse (string) The default warehouse for the Logistics Setup.
(fk) Allowed value: the natural key of a record of type Warehouse. These records are accessibly through the Warehouses service.