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 effective_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.

Response

Success

data
object[]
required