List relations
List the company group and the third-party payers of a counterparty.
Returns the relations of the counterparty. group holds the members of its company group with their open amounts, and is empty when it belongs to none. groupRelations holds the relations that name it as a subsidiary or a parent company. paidBy holds its third-party payers, and paysFor the counterparties whose invoices it pays. remainderPercent is what the counterparty itself owes of its invoices today when payers hold shares, and null otherwise. Relations outside their dates are returned too.
Path parameters
| Name | Type | Required |
|---|---|---|
code Counterparty code ( Example: CPT-042 | string Max 50 | Required |
Errors
This operation can return the following errors in addition to generic HTTP failures.
| Error | HTTP code | Description |
|---|---|---|
Missing Bearer token | 401 | The Authorization header is missing or is not a Bearer token. |
Invalid or revoked API key | 401 | The API key is unknown, malformed, expired, or has been revoked. |
API key is missing scope counterparties:read | 403 | The key does not include counterparties:read. A write scope does not imply the matching read scope. |
Too many requests, please try again later | 429 | More than 100 requests in one minute from this API key or IP address. Wait for the Retry-After header (seconds) and retry. |
Counterparty not found | 404 | No counterparty with this code exists in the authenticated tenant. |
Internal server error | 500 | Unexpected server error. The JSON body includes correlationId. Retry with backoff. |