addManualPayment: "Pay plan must contain pay plan items."

We currently have a problem with booking returns on an invoice.

This is our workflow on a purchase:

  • Create an invoice
  • Add a position on the invoice
  • Add a payment with “addManualPayment”

If a return occurs we do the following:

  • Find the invoice
  • Add a negative position on the invoice
  • Add a negative payment with “addManualPayment”

We are able to add the negative position but the payment fails with the following error:
Failed to invoke method addManualPayment in class com.infusionsoft.api.xmlrpc.XmlRpcInvoiceService: Pay plan must contain pay plan items.

Can someone help us on this error?

Best Regards,
Gerd

What payment type are you using?

Hi @John_Borelli!

Thank you for your answer.

I checked and found out that we use a string that is not included in this list.

I will try to use a different one and will write the results here.

1 Like

@John_Borelli works like charm! Thanks a lot!

1 Like