Jasmin Developers - Web API Reference

GET Operations

GET ShippingMethods

Returns the list of all the entity records available.

Response:

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

Response status codes:

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

Resource URL:

GET /logisticsCore/shippingMethods

GET ShippingMethods (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 ShippingMethodResource.

Response status codes:

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

Resource URL:

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

GET ShippingMethod 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 ShippingMethodResource.

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

GET ShippingMethod by key

Returns the entity record that matches the specified key.

The following elements are required:

shippingMethodKey (string) The key of the shipping method. The shipping method that the user can select before finalize the purchase.

Response:

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

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/shippingMethods/{shippingMethodKey}

GET Print ShippingMethod 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/shippingMethods/{id}/print?template={template}

GET Print ShippingMethod by key

Prints the specified entity record.

The following elements are required:

shippingMethodKey (string) The key of the shipping method. The shipping method that the user can select before finalize the purchase.

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/shippingMethods/{shippingMethodKey}/print

GET Original Print ShippingMethodOriginal 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/shippingMethods/{id}/printOriginal?template={template}

GET Original Print ShippingMethod by key

Prints the specified entity record.

The following elements are required:

shippingMethodKey (string) The key of the shipping method. The shipping method that the user can select before finalize the purchase.

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/shippingMethods/{shippingMethodKey}/printOriginal

POST Operations

POST ShippingMethods

Creates a new entity record.

The following elements are required:

shippingMethodResource (ApiShippingMethodResource) The request body should contain the entity record that should be created.
See ApiShippingMethodResource.

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 ApiShippingMethodResource.

Response status codes:

201 Created. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

POST /logisticsCore/shippingMethods

POST Shipping Method

Inserts a new 'Shipping Method Detail' in the 'Shipping Method'.

The following elements are required:

shippingMethodKey (string) The key of the shipping method. The shipping method that the user can select before finalize the purchase.
value (ApiShippingMethodShippingMethodDetailsResource) The ApiShippingMethodShippingMethodDetailsResource instance.
See ApiShippingMethodShippingMethodDetailsResource.

Response:

When successful, the response body is empty.

Response status codes:

204 NoContent. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

POST /logisticsCore/shippingMethods/{shippingMethodKey}/shippingMethodDetails

PUT Operations

PUT Set AdditionalWeight ShippingMethod

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

The following elements are required:

shippingMethodKey (string) The key of the shipping method. The shipping method that the user can select before finalize the purchase.
value (decimal) 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/shippingMethods/{shippingMethodKey}/additionalWeight

PUT Set AdditionalWeightPrice ShippingMethod

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

The following elements are required:

shippingMethodKey (string) The key of the shipping method. The shipping method that the user can select before finalize the purchase.
value (decimal) 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/shippingMethods/{shippingMethodKey}/additionalWeightPrice

PUT Set Currency ShippingMethod

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

The following elements are required:

shippingMethodKey (string) The key of the shipping method. The shipping method that the user can select before finalize the purchase.
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/shippingMethods/{shippingMethodKey}/currency

PUT Set Currency ShippingMethodDetail

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

The following elements are required:

shippingMethodKey (string) The key of the shipping method. The shipping method that the user can select before finalize the purchase.
lineId (string) The detail identifier.
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/shippingMethods/{shippingMethodKey}/shippingMethodDetails/{lineId}/currency

PUT Set DeliverySpeed ShippingMethod

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

The following elements are required:

shippingMethodKey (string) The key of the shipping method. The shipping method that the user can select before finalize the purchase.
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 /logisticsCore/shippingMethods/{shippingMethodKey}/deliverySpeed

PUT Set DeliveryTerm ShippingMethod

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

The following elements are required:

shippingMethodKey (string) The key of the shipping method. The shipping method that the user can select before finalize the purchase.
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/shippingMethods/{shippingMethodKey}/deliveryTerm

PUT Set Description ShippingMethod

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

The following elements are required:

shippingMethodKey (string) The key of the shipping method. The shipping method that the user can select before finalize the purchase.
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/shippingMethods/{shippingMethodKey}/description

PUT Set FreeShipping ShippingMethod

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

The following elements are required:

shippingMethodKey (string) The key of the shipping method. The shipping method that the user can select before finalize the purchase.
value (decimal) 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/shippingMethods/{shippingMethodKey}/freeShipping

PUT Set From ShippingMethodDetail

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

The following elements are required:

shippingMethodKey (string) The key of the shipping method. The shipping method that the user can select before finalize the purchase.
lineId (string) The detail identifier.
value (decimal) 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/shippingMethods/{shippingMethodKey}/shippingMethodDetails/{lineId}/from

PUT Set IsActive ShippingMethod

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

The following elements are required:

shippingMethodKey (string) The key of the shipping method. The shipping method that the user can select before finalize the purchase.
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/shippingMethods/{shippingMethodKey}/isActive

PUT Set ShippingMethodKey ShippingMethod

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

The following elements are required:

shippingMethodKey (string) The key of the shipping method. The shipping method that the user can select before finalize the purchase.
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/shippingMethods/{shippingMethodKey}/shippingMethodKey

PUT Set ShippingValue ShippingMethodDetail

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

The following elements are required:

shippingMethodKey (string) The key of the shipping method. The shipping method that the user can select before finalize the purchase.
lineId (string) The detail identifier.
value (decimal) 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/shippingMethods/{shippingMethodKey}/shippingMethodDetails/{lineId}/shippingValue

PUT Set To ShippingMethodDetail

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

The following elements are required:

shippingMethodKey (string) The key of the shipping method. The shipping method that the user can select before finalize the purchase.
lineId (string) The detail identifier.
value (decimal) 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/shippingMethods/{shippingMethodKey}/shippingMethodDetails/{lineId}/to

PUT Set Unit ShippingMethod

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

The following elements are required:

shippingMethodKey (string) The key of the shipping method. The shipping method that the user can select before finalize the purchase.
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/shippingMethods/{shippingMethodKey}/unit

DELETE Operations

DELETE Shipping Method Detail by identifier

Deletes the entity record that matches the specified identifier.

The following elements are required:

shippingMethodKey (string) The key of the shipping method. The shipping method that the user can select before finalize the purchase.
lineId (string) The line identifier.

Response:

When successful, the response body is empty.

Response status codes:

204 NoContent. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.
404 NotFound. The specified record does not exist.

Resource URL:

DELETE /logisticsCore/shippingMethods/{shippingMethodKey}/shippingMethodDetails/{lineId}

DELETE ShippingMethod 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 /logisticsCore/shippingMethods/{id}

DELETE ShippingMethod by key

Deletes the entity record that matches the specified key.

The following elements are required:

shippingMethodKey (string) The key of the shipping method. The shipping method that the user can select before finalize the purchase.

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 /logisticsCore/shippingMethods/{shippingMethodKey}

Resources


ApiShippingMethodResource

The following elements are required:

shippingMethodKey (string) The key of the shipping method. The shipping method that the user can select before finalize the purchase.
additionalWeight (decimal) The shipping method's additional weight.
additionalWeightPrice (decimal) The shipping method's additional weight price.
freeShipping (decimal) The shipping method's free shipping amount.
deliveryTerm (string) The delivery term for the shipping method.
unit (string) The unit for the shipping method.
currency (string) The currency for the shipping method.

The following elements are optional:

description (string) The description for the shipping method.
deliverySpeed (int) The shipping method delivery speed in work days.
shippingMethodDetails (List of ApiShippingMethodShippingMethodDetailsResource) The details of the shipping method.
See ApiShippingMethodShippingMethodDetailsResource.


ApiShippingMethodShippingMethodDetailsResource

The following elements are required:

from (decimal) The min weigth for the item for the shipping value.
to (decimal) The max weigth for the item for the shipping value.
shippingValue (decimal) The shipping value for the shipping method detail.
currency (string) The currency for the shipping method detail.


ShippingMethodDetailResource

The following elements are required:

from (decimal) The min weigth for the item for the shipping value.
to (decimal) The max weigth for the item for the shipping value.
shippingValue (decimal) The shipping value for the shipping method detail.
currency (string) The currency for the shipping method detail.


ShippingMethodResource

The following elements are required:

shippingMethodKey (string) The key of the shipping method. The shipping method that the user can select before finalize the purchase.
additionalWeight (decimal) The shipping method's additional weight.
additionalWeightPrice (decimal) The shipping method's additional weight price.
freeShipping (decimal) The shipping method's free shipping amount.
deliveryTerm (string) The delivery term for the shipping method.
(fk) Allowed value: the natural key of a record of type DeliveryTerm. These records are accessibly through the DeliveryTerms service.
unit (string) The unit for the shipping method.
(fk) Allowed value: the natural key of a record of type Unit. These records are accessibly through the Units service.
currency (string) The currency for the shipping method.
(fk) Allowed value: the natural key of a record of type Currency. These records are accessibly through the Currencies service.

The following elements are optional:

description (string) The description for the shipping method.
deliverySpeed (int) The shipping method delivery speed in work days.
shippingMethodDetails (List of ShippingMethodDetailResource) The details of the shipping method.
See ShippingMethodDetailResource.