Xero - beautiful accounting software

Xero Developer Help Center

Xero Developer Community

Community > Getting Started >

How do I store a payment made to a supplier through the API?

Started by Alex Dean -   in Getting Started

I can see the API resource for generating an Invoice - how do I generate a payment to a supplier?
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.
 

Ronan Quirke (Community Manager)  

I am getting:

Account type is invalid for making a payment.

When I use Account Code 200 on my.xero.com.
 

Nigel Evenden  

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
 

Ronan Quirke (Community Manager)