Incorrect value of Amount field QuickBooks SDK
The task is to pay invoices from deposites automatically for all customers. I create an application that will do everything when you click the button. I decided that it would be correct to create a customer payment that will pay for all open invoices. I work through qbXML and C# sdk. The XML query looks like this:
<?xml version="1.0" encoding="utf-8"?> <?qbxml version="13.0"?> <QBXML> <QBXMLMsgsRq onError="stopOnError"> <ReceivePaymentAddRq> <ReceivePaymentAdd> <CustomerRef> <FullName>#1 ASAP Transport Inc</FullName> </CustomerRef> <RefNumber>LS-2-39</RefNumber> <TotalAmount>1000.00</TotalAmount> <AppliedToTxnAdd> <TxnID>399DB-[removed]</TxnID> <SetCredit> <CreditTxnID>39A[removed]</CreditTxnID> <AppliedAmount>0.00</AppliedAmount> </SetCredit> </AppliedToTxnAdd> </ReceivePaymentAdd> </ReceivePaymentAddRq> </QBXMLMsgsRq> </QBXML>
Response:
<?xml version="1.0" ?> <QBXML> <QBXMLMsgsRs> <ReceivePaymentAddRs statusCode="3210" statusSeverity="Error" statusMessage="The "receive payment total amount" field has an invalid value "1000.00". QuickBooks error message: This field contains an invalid character." /> </QBXMLMsgsRs> </QBXML>
I tried changing the point to a comma, removing decimal numbers. Then error 3040: There was an error when converting the amount & quot;1000" in the field & quot; TotalAmount".
I also tried sending a similar xml example from the documentation, but ended up with the same error. When you try to add a Receive Payment via c#, the objects in the C# example have the same error numbers. There is a similar problem with other operations where I specify amounts (for example, creating an invoice or changing the amount in it)
I use QuickBooks Enterprise Solutions 20.0


