Attach financial data
Attach a business's financial data: a timeseries, documents (such as accounting reports sent as your integration returns them), or both. Documents are stored as received and read in the background.
Body
required
application/json
- Type: stringexternal
Id requiredPartner-defined business identifier
- Type: array of object …200documentsProperties: 2
Documents for this business, each stored as received: accounting reports (P&L, balance sheets, AR/AP aging, chart of accounts, bank accounts) or any other data. Up to 200 per call; a document Slate already holds isn't stored twice.
- Type: array of objecttimeseriesProperties: 2
Financial data timeseries
Responses
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
Request Example for post/attach-financial-data
curl https://api-sandbox.tryslatehq.com/attach-financial-data \
--request POST \
--header 'Content-Type: application/json' \
--header 'x-api-key: YOUR_SECRET_TOKEN' \
--data '{
"externalId": "biz_123",
"timeseries": [
{
"date": "2025-01-01",
"data": {
"key": "value"
}
}
],
"documents": [
{
"kind": "escrow",
"payload": {
"status_code": 200,
"status": "OK",
"service": "xero",
"resource": "ProfitAndLosses",
"operation": "one",
"data": {}
}
}
]
}'
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"customerId": "123e4567-e89b-12d3-a456-426614174000",
"timeseries": [
{
"date": "2025-01-01",
"data": {
"key": "value"
}
}
],
"documents": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"kind": "profit_and_loss",
"format": "apideck.profit_and_loss",
"recognized": true,
"duplicate": false
}
]
}