Xero - beautiful accounting software

Xero Developer Help Center

Xero Developer Community

Community > API Endpoints >

Deposits and refunds, help please!

Started by Jonathan Bell -   in API Endpoints

How can we process overpayments and refunds through the API while keeping 1 invoice number and not using credit notes?

For example:
Invoice raised for $1000
Customer pays $1000+$500 deposit ($1500)
Invoice is in $500 credit.
Customer is refunded $500.

How do I record this scenario in Xero and keep all the transactions together on the one Sale. Don’t want separate Credit Notes or Overpayment records and so on. Want it all together.

Currently the -$500 can't be applied to the invoice.