Get a member's cost
curl --request GET \ --url https://example.com/api/v1/members/example/cost \ --header 'Authorization: Bearer <token>'Resolves the member’s cost on a calendar day (on, defaults to today): the hourly rate and monthly equivalent of the cost set for that day, plus the member’s full cost history. costPerHour is null when the day has no cost set — never reported as zero. Requires the reports.costs permission, unlike every other /members endpoint.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Resource identifier (CUID2).
Resource identifier (CUID2).
Query Parameters
Section titled “Query Parameters”Calendar date (YYYY-MM-DD) to resolve cost on. Defaults to today.
Calendar date (YYYY-MM-DD) to resolve cost on. Defaults to today.
Responses
Section titled “Responses”The member’s cost.
object
A member’s resolved cost on one day, plus their full cost history.
object
Null when the day has no cost set — never reported as zero.
A member’s cost on one day, with the amount and hours it was resolved from.
object
The configured amount, in unit.
Cost per month, rounded to two decimals.
Cost per hour, rounded to two decimals.
Calendar date (YYYY-MM-DD) the cost was resolved for.
One dated cost of a member, per hour or per month, with its succession trail.
object
Example
{ "data": { "costPerHour": { "unit": "HOUR" }, "history": [ { "unit": "HOUR" } ] }}Unauthorized.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Missing the reports.costs permission.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Not found.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Rate limit exceeded. Wait for Retry-After before retrying.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Headers
Section titled “Headers”Maximum requests in the current quota window.
Quota policy in requests and window seconds, for example 60;w=60.
Requests left in this quota window (zero when blocked).
Seconds until the current quota window resets, when available from the rate-limit store.
Seconds until another request may be attempted.
Chelsea is operated by Arepa Labs LLC