
How do I store a payment made to a supplier through the API?
I can see the API resource for generating an Invoice - how do I generate a payment to a supplier?
3
Replies

Hi Alex
There is a Payments API endpoint: http://blog.xero.com/developer/api/payments/
You can use this to attach a payment to an invoice.
There is a Payments API endpoint: http://blog.xero.com/developer/api/payments/
You can use this to attach a payment to an invoice.

I am getting:
Account type is invalid for making a payment.
When I use Account Code 200 on my.xero.com.
Account type is invalid for making a payment.
When I use Account Code 200 on my.xero.com.

Yep - only specific accounts will have the apply payments flag set on them. You want to apply a payment to a bank account or other account to which you will later reconcile, not the sales account