All accounts returns related paths.
/accounts/{account_id}/returnsList account returns
start_datestringReturns account returns starting from and including this date (UTC)
end_datestringReturns account returns up until this date (UTC)
sortstringSort the result by date.
orderstringSort order of the result list if the sort parameter is specified. Use ASC for ascending or DESC for descending sort order.
offsetintUse the offset argument to specify where in the list of results to start when returning items for a particular query.
limitintUse the limit argument to specify the maximum number of items returned.
OK
{
"meta": {
"offset": 0,
"limit": 100,
"count": 2,
"total_count": 2,
"sort": "date",
"order": "ASC"
},
"data": [
{
"account_id": "bbe9e784-e009-4cb6-a07c-24831897327b",
"date": "2023-09-01",
"twr": {
"daily": "0.0132434142",
"cumulative": "0.0324353234",
"cumulative_start_date": "2023-08-01"
}
},
{
"account_id": "bbe9e784-e009-4cb6-a07c-24831897327b",
"date": "2023-09-02",
"twr": {
"daily": "-0.005116543491",
"cumulative": "0.0271528232",
"cumulative_start_date": "2023-08-01"
}
}
]
}idstringrequired
Event unique identifier
created_atstringrequired
Date and time when the event was created. RFC 3339-5, ISO8601 UTC
typestringrequired
Event type
objectobject (Account Returns)required
account_idstringrequired
Account unique identifier.
datestringrequired
Date when returns were calculated. RFC 3339-5, ISO8601 UTC
twrobjectrequired
webhook_idstringrequired
Webhook unique identifier.
{
"id": "399dc0a7-f4cb-42a4-9513-496df030381e",
"created_at": "2023-09-02T05:15:00Z",
"type": "ACCOUNT_RETURNS.CREATED",
"object": {
"account_id": "bbe9e784-e009-4cb6-a07c-24831897327b",
"date": "2023-09-01",
"twr": {
"daily": "0.0132434142",
"cumulative": "0.0324353234",
"cumulative_start_date": "2023-08-01"
}
},
"webhook_id": "435719ac-c064-4c7a-a8b9-6db9446965de"
}Request has been processed successfully.
Empty response
Was this page helpful?