API referenceReferenceDocuments
Document relation suggestions — list
List suggested document relations for a document, based on business rules and context (for example matching accrual/settlement pairs).
Path Parameters
business_slug*string
Business slug that scopes this request. If you do not have one yet, call common_accessible_businesses_list and pick a slug from the response.
document_id*integer
Identifier of the target document. If the ID is not known, use the corresponding list endpoint with relevant filters and/or the search parameter to discover valid IDs.
Response Body
application/json
curl -X GET "https://example.com/v1/business/string/document/0/relation/suggestions/"[ { "related_document": 0, "role": "ACCRUAL", "type": "ACCRUAL_PAIR", "reason": "string", "score": 0 }]