Skip to main content
POST
List customer contracts (v1)

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

List all contracts for a customer

customer_id
string<uuid>
required
include_ledgers
boolean

Include commit ledgers in the response. Setting this flag may cause the query to be slower.

include_balance
boolean

Include the balance of credits and commits in the response. Setting this flag may cause the query to be slower.

include_archived
boolean

Include archived contracts in the response

starting_at
string<date-time>

Optional RFC 3339 timestamp. If provided, the response will include only contracts where starting_at is on or after the provided date. This cannot be provided if the covering_date filter is provided.

covering_date
string<date-time>

Optional RFC 3339 timestamp. If provided, the response will include only contracts effective on the provided date. This cannot be provided if the starting_at filter is provided.

limit
integer

Max number of contracts to return per page. Range: 1-20. Default: 20.

Required range: x >= 1
cursor
string

Cursor from a previous response to fetch the next page of contracts.

Response

Success

data
object[]
required
cursor
string | null
required

Pass this value as cursor in a subsequent request to fetch the next page of contracts. Null if there are no more contracts.