Hello. I’m attempting to add a manual payment to an invoice, and it’s not working. All I get back is a 0 with no explanation or error of why the payment has not been added. Turning on the return header in cURL is of no help, there’s nothing there, either. Here is a sample request:
It’s still not working. I have tried so many combinations of strings and numbers and blah blah blah. I submitted a ticket to support. Maybe they can help.
The only things that come to mind is the following.
Have you set the Invoice Id for the Payment correctly? Invoice Ids may not always align withe Order Ids, so if you are using the wrong Id then the Payment may or may not be added correctly.
Are you passing special characters in the data?
Try putting Double Quotes for the XML part: <?xml version="1.0" encoding="UTF-8"?>
If all is okay, then you need to see what Support say about it.
Yep, the invoice ID is correct because I use InvoiceService.createBlankOrder, get the ID from that, add items to the invoice with InvoiceService.addOrderItem using the same ID. Is it the same ID to add a payment?
There are no special characters.
All of my other calls have single quotes in the XML part. Could that really make a difference?