Query
query GetContracts($input: GetContractsInput!) {
getContracts(input: $input) {
contracts {
activationEndDate
activationStartDate
billingId
billingState
contractId
createdAt
}
totalCount
}
}Variables
{
"input": {}
}Response
{
"data": {
"getContracts": {
"contracts": [
{
"activationEndDate": "value",
"activationStartDate": "value",
"billingId": "string",
"billingState": "ACTIVE",
"contractId": "string",
"createdAt": "value"
}
],
"totalCount": 1
}
}
}Queries
getContracts
Get all contracts in the environment (across every customer), with offset pagination. Contracts that have a billing contract are enriched with a preview of their upcoming invoice.
QUERY
getContracts(input: GetContractsInput!): ContractsPageDTO!Arguments
input
required
Returns
contracts
[ContractDTO!]!
The contracts in this page
totalCount
Int!
Total number of contracts across all pages
Query
query GetContracts($input: GetContractsInput!) {
getContracts(input: $input) {
contracts {
activationEndDate
activationStartDate
billingId
billingState
contractId
createdAt
}
totalCount
}
}Variables
{
"input": {}
}Response
{
"data": {
"getContracts": {
"contracts": [
{
"activationEndDate": "value",
"activationStartDate": "value",
"billingId": "string",
"billingState": "ACTIVE",
"contractId": "string",
"createdAt": "value"
}
],
"totalCount": 1
}
}
}