Receivables
List all documents
Changed onget/receivables/{id}/documents
Request
- Base URLhttps://core.sivo.com
- Auth
- API key in header Authorization
- or OAuth 2Authorization codehttps://dashboard.sivo.com/oauth/authorizeClient credentialsToken URLhttps://core.sivo.com/oauth/token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring required
An object ID assigned and owned by the originator
Example:acct-123
Query parameters
limitinteger
Maximum number of results to return, from 1 to 100; defaults to 25
pagestring
Opaque page token from a previous response's next_page or previous_page; pass it back unchanged, with the same sort and filters
expandstring[]
Extra fields to include in the page; total_count counts the matching results, exactly up to 10000
sort'created_at_desc'
Result order; defaults to created_at_desc
type'invoice' | 'contract' | 'proof_of_delivery' | 'other'
Kind of document attached to the receivable
status'pending_upload' | 'uploaded' | 'quarantined'
Lifecycle status of the document: pending_upload until the file upload is confirmed, quarantined when the file failed malware scanning (upload a replacement file to clear it)
Response
Successful operation
Example response
{
"data": [
{
"metadata": {
"key": "value"
},
"id": "acct-123",
"created_at": "2024-01-15T10:30:00Z",
"created_by": "user_0123456789ABCDEFGHIJKLMNOPq",
"updated_at": "2024-01-15T10:30:00Z",
"updated_by": "user_0123456789ABCDEFGHIJKLMNOPq"
}
]
}Changes
- info
endpoint added
- info