Currency conversion
Endpoints
Create new currency conversion
| /companies/{companycode}/currency-conversions | 
Parameters
| Type | Name | Description | Schema | Business Rules | 
|---|---|---|---|---|
| Path | companyCode | Current context company code | string | 2 characters max | 
| Body | body | 
Get entity list
| /companies/{companycode}/currency-conversions | 
Parameters
| Type | Name | Description | Schema | Business Rules | 
|---|---|---|---|---|
| Path | companyCode | Current context company code | string | 2 characters max | 
| Query | page | Page index | integer (int32) | |
| Query | size | Entity count per page | integer (int32) | 
Responses
| HTTP Code | Description | Schema | 
|---|---|---|
| 200 | Successfull | < CurrencyConversionDTO > array | 
| 400 | Functionnal error | No Content | 
| 500 | Internal server error | No Content | 
Import entity list
| /companies/{companycode}/currency-conversions/import | 
Parameters
| Type | Name | Description | Schema | Business Rules | 
|---|---|---|---|---|
| Path | companyCode | Current context company code | string | 2 characters max | 
| Body | body | 
Get one currency conversion
| /companies/{companycode}/currency-conversions/{effectdate}/{currency1}/{currency2} | 
| operation.deprecated | 
Parameters
| Type | Name | Description | Schema | Business Rules | 
|---|---|---|---|---|
| Path | companyCode | Current context company code | string | 2 characters max | 
| Path | currency1 | First currency code | string | 3 characters max | 
| Path | currency2 | Second currency ode | string | 3 characters max | 
| Path | effectDate | Effective date | string (date) | AAAA-MM-JJTHH:MM:SSZ | 
Delete currency conversion
| /companies/{companycode}/currency-conversions/{effectdate}/{currency1}/{currency2} | 
Parameters
| Type | Name | Description | Schema | Business Rules | 
|---|---|---|---|---|
| Path | companyCode | Current context company code | string | 2 characters max | 
| Path | currency1 | First currency public uuid code | string | 3 characters max | 
| Path | currency2 | Second currency public uuid code | string | 3 characters max | 
| Path | effectDate | Effective date | string (date) | AAAA-MM-JJTHH:MM:SSZ | 
Data structure
CurrencyConversionDTO
| Name | Description | Value | Business Rules | 
|---|---|---|---|
| coefficient1 | First currency coefficient | double | |
| coefficient2 | Second currency coefficient | double | |
| companyCode | Current company code | string | 2 characters max | 
| currency1 | First currency code | string | 3 characters max | 
| currency2 | Second currency code | string | 3 characters max | 
| effectDate | Conversion effect date | date | AAAA-MM-JJTHH:MM:SSZ |