Jasmin Developers - Web API Reference

GET Operations

GET Currencies

Returns the list of all the entity records available.

Response:

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

Response status codes:

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

Resource URL:

GET /corePatterns/currencies

GET Currencies (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 CurrencyResource.

Response status codes:

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

Resource URL:

GET /corePatterns/currencies?page={page}&pageSize={pageSize}

GET Currency 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 CurrencyResource.

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

GET Currency by key

Returns the entity record that matches the specified key.

The following elements are required:

currencyKey (string) The currency's logical key.

Response:

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

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 /corePatterns/currencies/{currencyKey}

GET Print Currency 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 /corePatterns/currencies/{id}/print?template={template}

GET Print Currency by key

Prints the specified entity record.

The following elements are required:

currencyKey (string) The currency's logical key.

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 /corePatterns/currencies/{currencyKey}/print

GET Original Print CurrencyOriginal 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 /corePatterns/currencies/{id}/printOriginal?template={template}

GET Original Print Currency by key

Prints the specified entity record.

The following elements are required:

currencyKey (string) The currency's logical key.

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 /corePatterns/currencies/{currencyKey}/printOriginal

GET Custom operation 'GetValidCurrencies'.

Custom operation 'GetValidCurrencies'.

The following elements are required:

referenceDate (DateTimeOffset) ReferenceDate.

Response:

When successful, the response body contains a list of resources of type 'CurrencyResource'. See CurrencyResource.

Response status codes:

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

Resource URL:

GET /corePatterns/currencies/getValidCurrencies

POST Operations

POST Currencies

Creates a new entity record.

The following elements are required:

currencyResource (ApiCurrencyResource) The request body should contain the entity record that should be created.
See ApiCurrencyResource.

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

Response status codes:

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

Resource URL:

POST /corePatterns/currencies

POST Currency

Inserts a new 'Currency Rate' in the 'Currency'.

The following elements are required:

currencyKey (string) The currency's logical key.
value (ApiCurrencyCurrencyRatesResource) The ApiCurrencyCurrencyRatesResource instance.
See ApiCurrencyCurrencyRatesResource.

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 /corePatterns/currencies/{currencyKey}/currencyRates

PUT Operations

PUT Set ConversionFactor Currency

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

The following elements are required:

currencyKey (string) The currency's logical key.
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 /corePatterns/currencies/{currencyKey}/conversionFactor

PUT Set CurrencyKey Currency

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

The following elements are required:

currencyKey (string) The currency's logical key.
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 /corePatterns/currencies/{currencyKey}/currencyKey

PUT Set CurrencySubUnit Currency

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

The following elements are required:

currencyKey (string) The currency's logical key.
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 /corePatterns/currencies/{currencyKey}/currencySubUnit

PUT Set CurrencyUnit Currency

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

The following elements are required:

currencyKey (string) The currency's logical key.
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 /corePatterns/currencies/{currencyKey}/currencyUnit

PUT Set Description Currency

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

The following elements are required:

currencyKey (string) The currency's logical key.
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 /corePatterns/currencies/{currencyKey}/description

PUT Set ExternalId Currency

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

The following elements are required:

currencyKey (string) The currency's logical key.
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 /corePatterns/currencies/{currencyKey}/externalId

PUT Set ExternalVersion Currency

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

The following elements are required:

currencyKey (string) The currency's logical key.
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 /corePatterns/currencies/{currencyKey}/externalVersion

PUT Set FixedRateReferenceCurrency Currency

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

The following elements are required:

currencyKey (string) The currency's logical key.
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 /corePatterns/currencies/{currencyKey}/fixedRateReferenceCurrency

PUT Set IsActive Currency

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

The following elements are required:

currencyKey (string) The currency's logical key.
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 /corePatterns/currencies/{currencyKey}/isActive

PUT Set IsExternallyManaged Currency

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

The following elements are required:

currencyKey (string) The currency's logical key.
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 /corePatterns/currencies/{currencyKey}/isExternallyManaged

PUT Set IsoCode Currency

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

The following elements are required:

currencyKey (string) The currency's logical key.
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 /corePatterns/currencies/{currencyKey}/isoCode

PUT Set PricesFractionDigits Currency

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

The following elements are required:

currencyKey (string) The currency's logical key.
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 /corePatterns/currencies/{currencyKey}/pricesFractionDigits

PUT Set Rate CurrencyRate

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

The following elements are required:

currencyKey (string) The currency's logical key.
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 /corePatterns/currencies/{currencyKey}/currencyRates/{lineId}/rate

PUT Set Symbol Currency

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

The following elements are required:

currencyKey (string) The currency's logical key.
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 /corePatterns/currencies/{currencyKey}/symbol

PUT Set TargetCurrency CurrencyRate

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

The following elements are required:

currencyKey (string) The currency's logical key.
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 /corePatterns/currencies/{currencyKey}/currencyRates/{lineId}/targetCurrency

PUT Set UseFixedRate Currency

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

The following elements are required:

currencyKey (string) The currency's logical key.
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 /corePatterns/currencies/{currencyKey}/useFixedRate

PUT Set ValidFrom Currency

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

The following elements are required:

currencyKey (string) The currency's logical key.
value (DateTime) 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 /corePatterns/currencies/{currencyKey}/validFrom

PUT Set ValidTo Currency

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

The following elements are required:

currencyKey (string) The currency's logical key.
value (DateTime) 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 /corePatterns/currencies/{currencyKey}/validTo

DELETE Operations

DELETE Currency Rate by identifier

Deletes the entity record that matches the specified identifier.

The following elements are required:

currencyKey (string) The currency's logical key.
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 /corePatterns/currencies/{currencyKey}/currencyRates/{lineId}

DELETE Currency 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 /corePatterns/currencies/{id}

DELETE Currency by key

Deletes the entity record that matches the specified key.

The following elements are required:

currencyKey (string) The currency's logical key.

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 /corePatterns/currencies/{currencyKey}

Resources


ApiCurrencyCurrencyRatesResource

The following elements are required:

targetCurrency (string) The Target Currency.

The following elements are optional:

rate (decimal) The Rate.


ApiCurrencyResource

The following elements are required:

currencyKey (string) The currency's logical key.
description (string) The description for the currency.
fractionDigits (int) The number of digits used to represent fraction values.
currencyUnit (string) The currency main unit (e.g. Euro).
isoCode (string) The ISO standard currency code.
symbol (string) The symbol used to represent values in the currency (e.g. $).
isExternallyManaged (bool) A flag indicating if the currency is externally managed.

The following elements are optional:

currencySubUnit (string) The currency sub unit (e.g. Cent).
validFrom (DateTime) The start date for validity period.
validTo (DateTime) The end date for validity period.
useFixedRate (bool) Use Fixed Rate.
conversionFactor (decimal) The Conversion Factor.
pricesFractionDigits (int) The explicit number of digits used to represent fraction values in Prices.
externalId (string) The external identifier.
externalVersion (string) The external version.
fixedRateReferenceCurrency (string) The Fixed Rate Reference Currency.
currencyRates (List of ApiCurrencyCurrencyRatesResource) The Currency Rates.
See ApiCurrencyCurrencyRatesResource.


CurrencyRateResource

The following elements are required:

targetCurrency (string) The Target Currency.

The following elements are optional:

rate (decimal) The Rate.


CurrencyResource

The following elements are required:

currencyKey (string) The currency's logical key.
description (string) The description for the currency.
fractionDigits (int) The number of digits used to represent fraction values.
currencyUnit (string) The currency main unit (e.g. Euro).
isoCode (string) The ISO standard currency code.
symbol (string) The symbol used to represent values in the currency (e.g. $).
isExternallyManaged (bool) A flag indicating if the currency is externally managed.

The following elements are optional:

currencySubUnit (string) The currency sub unit (e.g. Cent).
validFrom (DateTime) The start date for validity period.
validTo (DateTime) The end date for validity period.
useFixedRate (bool) Use Fixed Rate.
conversionFactor (decimal) The Conversion Factor.
pricesFractionDigits (int) The explicit number of digits used to represent fraction values in Prices.
externalId (string) The external identifier.
externalVersion (string) The external version.
fixedRateReferenceCurrency (string) The Fixed Rate Reference Currency.
currencyRates (List of CurrencyRateResource) The Currency Rates.
See CurrencyRateResource.