cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot Post Incoming Payment with DocCurrency KHR.

SayEangKheang
Explorer
0 Kudos

Hi,

I am trying to create incoming payment by service layer api. but I still got message.

{ "error" : { "code": -4006, "message": { "lang": "en-us", "value" : "Update the exchange rate" } } }

with payloads

bs1/v1/IncomingPayments

{
    "BPLID": 1,
    "DocType": "C",
    "DocDate": "2023-04-05T00:00:00Z",
    "TaxDate": "2023-04-05T00:00:00Z",
    "DueDate": "2023-04-04T00:00:00Z",
    "VatDate": null,
    "CardCode": "C20000",
    "Address": null,
    "DocCurrency" : "KHR",
    "DocRate" : "4100.0",
    "ContactPersonCode": null,
    "PayToBankCode": null,
    "PayToBankBranch": null,
    "PayToCode": "",
    "PaymentChecks": [
        {
            "CheckNumber": 1,
            "DueDate": "2023-04-04T00:00:00Z",
            "CheckSum": 48.290,
            "Currency": "KHR",
            "CountryCode": "KH"
        }
    ],
    "PaymentInvoices": [
        {
            "DocLine": 0,
            "DocEntry": 143,
            "DocNum": 1010000072,
            "SumApplied": 48.290,
            "AppliedFC": 48.290,
            "AppliedSys": 48.290,
            "DocRate": 4100.0
        }
    ]
}
<br>

Thank you.

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi sayeang,

Can you confirm the SAP Business One localization?

Kind regards,

ANKIT CHAUHAN

SAP Business One Support

Accepted Solutions (0)

Answers (1)

Answers (1)

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert

Hi sayeang,

The error message clearly explains to update the exchange rate. Can you make sure that the exchange rate is updated?

Also, can you create the same document manually using SAP Business One client inputting the same values as supplied in the JSON request?

Kind regards,

ANKIT CHAUHAN

SAP Business One Support

SayEangKheang
Explorer
0 Kudos

I have updated on exchange rate in SAP client.

And i have also create new document in SAP client it work fine except Service Layer API.