Open order doesn't change it state

I faced with strange behavior from Orders API.

I’ve got the OPEN Order without total_money field. The Order has completed payment.

I don’t understand why Order is still OPEN. Is it partially paid? If yes, so what the total amount of Order? If it is fully paid why it is OPEN?

We cannot process such Order because it has unpredictable state. We need to see money flows. It is important to reconciliation process.

Order:
{
“id”: “VnBjH9A2o96D3z2QDDDBbxMF”,
“location_id”: “FES3781XXYA9C”,
“created_at”: “2019-09-25T19:00:38.000Z”,
“updated_at”: “2019-09-25T19:00:38.000Z”,
“state”: “OPEN”,
“tenders”: [
{
“id”: “nAAhj7NMoX4MRHo8b4qAksMF”,
“location_id”: “FES3781XXYA9C”,
“transaction_id”: “VnBjH9A2o96D3z2QDDDBbxMF”,
“created_at”: “2019-09-25T19:00:38Z”,
“amount_money”: {
“amount”: 28250,
“currency”: “CAD”
},
“type”: “CARD”,
“card_details”: {
“status”: “CAPTURED”,
“card”: {
“card_brand”: “VISA”
},
“entry_method”: “KEYED”
},
“tip_money”: {
“amount”: 0,
“currency”: “CAD”
}
}
]
}

Related V2Payment:
{
“payment”: {
“id”: “nAAhj7NMoX4MRHo8b4qAksMF”,
“created_at”: “2019-09-25T19:00:38.803Z”,
“updated_at”: “2019-09-25T19:00:42.027Z”,
“amount_money”: {
“amount”: 28250,
“currency”: “CAD”
},
“status”: “COMPLETED”,
“source_type”: “CARD”,
“card_details”: {
“status”: “CAPTURED”,
“card”: {
“card_brand”: “VISA”,
“card_type”: “CREDIT”,
“prepaid_type”: “NOT_PREPAID”
},
“entry_method”: “KEYED”,
“cvv_status”: “CVV_ACCEPTED”,
“avs_status”: “AVS_NOT_CHECKED”,
},
“location_id”: “FES3781XXYA9C”,
“order_id”: “VnBjH9A2o96D3z2QDDDBbxMF”,
“processing_fee”: [
{
“effective_at”: “2019-09-25T21:00:39.000Z”,
“type”: “INITIAL”,
“amount_money”: {
“amount”: 849,
“currency”: “CAD”
}
}
],
“total_money”: {
“amount”: 28250,
“currency”: “CAD”
},
“employee_id”: “FES3781XXYA9C”,
“receipt_number”: “nAAh”,
“receipt_url”: “https://squareup.com/receipt/preview/nAAhj7NMoX4MRHo8b4qAksMF
}
}

Looking this order up it appears to be a partially paid invoice. Unfortunately there’s not a great way to figure that out via the Orders API. Basically, if there’s no total_money field along with a captured tender, that typically means it’s a partial payment. Invoices won’t show anything about the total_money until they’re completely paid for.