Skip to main content
POST
Show balances
This endpoint is in preview: it may change without notice until it becomes part of a stable version.

Body

application/json
resource_id
string<snowflake>
required
Example:

"872815618512410358"

periods
object[]
required

Together, the periods must not cover more than 366 days, a day covered by several of them counting once.

Required array length: 1 - 366 elements

Response

200 - application/json
balance_id
string<snowflake>
required
Example:

"872815618512410358"

date_range
string<local-date-interval> | null
required

The days the values cover, within the date range of the period. Null when the balance does not apply to the resource at any point of it, every value being then empty.

Example:

"2019-11-11/2019-12-12"

carryover
object
required
due
object
required
done
object
required
adjustments
object
required
balance
object
required