House Account order with no clear linkage to repayment order

Hello,
We are helping a merchant with bookkeeping and we have observed two separate orders that represent the tender for the original house account issuance and then a second order with the repayment of the house account balance.

Since these appear as two separate orders, there is no clear linkage that the 2nd order represents the repayment of the first order with the house account balance. I was looking for clarity on how to link the two orders via API data.

Ideally, this would be 1 order with two tenders since that is really what is happening with an accounts receivable balance being created and then being repaid.

See details:

Location ID: LQ8E61WHBQKR0
Customer ID: PJN95Z1FSENXAE74675J7G18GW

Order ID with the repayment of house account: U6UbWdphCV9WO0HPDNNTDs4LbQaZY

Order ID with the original house account tender: ECmqfLFVjq0y9o1JXjEyAdarvjKZY

There is no clear way to link order U6UbWdphCV9WO0HPDNNTDs4LbQaZY as being a repayment to the order ECmqfLFVjq0y9o1JXjEyAdarvjKZY. At a minimum, it would be helpful to know that an order represents a house account repayment. Any guidance is much appreciated.

Thanks!

:wave: I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:

Additional Documentation

Orders API: How It Works
Orders API
Bank Accounts API

If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.

This unfortunately is a known gap at this time. We’re constantly working to improve our features based on feedback like this, so I’ll be sure to share your request to the API product team. :slightly_smiling_face: