returns DischargeCandidates
The open invoices or bills a payment or bank line may settle.
Its own entity's and counterparty's, open at its date: an exact amount
match first, then the oldest due date. A person picks; the commit records
the choice with discharge_allocations. Null when there is no such event.
| Name | Type | Description |
|---|---|---|
| eventId | String! | The payment or bank line. |
The open invoices or bills a payment may settle, best match first.
| Field | Type | Description |
|---|---|---|
| eventId | String! | The payment or bank line. |
| kind | String | receivables for money in, payables for money out; null when the line has no amount to say which. |
| amountCents | Int! | The payment's magnitude. |
| classifiedToControl | Boolean! | Whether the line is classified to a receivables or payables control account, where a settlement is expected. |
| candidates | [OpenItem!]! | Open items of the same entity and counterparty at the line's date: an exact amount match first, then the oldest due date. |
{ dischargeCandidates(eventId: "...") { eventId kind amountCents classifiedToControl } }curl -X POST "https://api.robosystems.ai/extensions/$GRAPH_ID/graphql" \
-H "X-API-Key: $ROBOSYSTEMS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "{ dischargeCandidates(eventId: \"...\") { eventId kind amountCents classifiedToControl } }"}'