Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Connect with and learn from others in the QuickBooks Community.
Join nowThe 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
Solved! Go to Solution.
It's great to see you here today, @Nissaya. I'm here to ensure you'll get the right support in completing your task to automatically pay invoices from deposits for all customers.
We have a separate and dedicated forum that handles SDK concerns for QuickBooks Desktop (QBDT) Enterprise. This is the place where developers, like you, engage with others to discuss programming concerns. I'd suggest posting your question from there. This way, our developers can provide you an accurate resolution to fix the error 3040 so you can complete your task. I'll guide you how.
The screenshot below shows you the last two steps.
Additionally, you can always utilize the helpful SDK topics by going to the API Docs & Tools menu. Then, select QuickBooks Desktop and choose SDKs. You'll be able to browse them from the left panel of the page as seen in the screenshot below.
You can count me in if you have other concerns. I'll gladly help, @Nissaya.
It's great to see you here today, @Nissaya. I'm here to ensure you'll get the right support in completing your task to automatically pay invoices from deposits for all customers.
We have a separate and dedicated forum that handles SDK concerns for QuickBooks Desktop (QBDT) Enterprise. This is the place where developers, like you, engage with others to discuss programming concerns. I'd suggest posting your question from there. This way, our developers can provide you an accurate resolution to fix the error 3040 so you can complete your task. I'll guide you how.
The screenshot below shows you the last two steps.
Additionally, you can always utilize the helpful SDK topics by going to the API Docs & Tools menu. Then, select QuickBooks Desktop and choose SDKs. You'll be able to browse them from the left panel of the page as seen in the screenshot below.
You can count me in if you have other concerns. I'll gladly help, @Nissaya.
You have clicked a link to a site outside of the QuickBooks or ProFile Communities. By clicking "Continue", you will leave the community and be taken to that site instead.