Skip to Content
0
Dec 29, 2022 at 11:34 PM

Update currency bridge by Service Layer

87 Views Last edit Dec 30, 2022 at 08:15 AM 2 rev

Hello Guys,

I have a currency with this configuration:

{ "Code": "$", "Name": "US Dollar", "DocumentsCode": "USD", "InternationalDescription": "US Dollar", "HundredthName": "/100***", "EnglishName": "USD", "EnglishHundredthName": "/100***", "PluralInternationalDescription": null, "PluralHundredthName": null, "PluralEnglishName": null, "PluralEnglishHundredthName": null, "Decimals": "cdDefault", "Rounding": "rsNoRounding", "RoundingInPayment": "tNO", "MaxIncomingAmtDiff": 0.0, "MaxOutgoingAmtDiff": 0.0, "MaxIncomingAmtDiffPercent": null, "MaxOutgoingAmtDiffPercent": null }

I'm trying to update the currency rate with this information in the POST Body (using SBOBobService_SetCurrencyRate)

{ "Currency": "$", "Rate": 4.8, "RateDate": "20221229"}

But I get this error:

{ "error": { "code": -10, "message": { "lang": "en-us", "value": "Enter valid currency code " } }}

How to fix it?