Skip to main content
QUERY
getCustomerContracts(input: GetCustomerContractsInput!): [ContractDTO!]!

Arguments

Returns

activationEndDate
DateTime

Activation end date (ISO 8601)

activationStartDate
DateTime

Activation start date (ISO 8601)

billingId
String

The billing provider (Received) contract ID; null until the contract has synced to the billing provider

billingState

Contract state

contractId
String!

The Stigg contract ref ID (the key used to fetch/update/delete this contract)

createdAt
DateTime

Timestamp of creation (ISO 8601)

customerExternalId
String

External ID of the customer the contract belongs to (the Stigg customer ref ID)

externalId
String!

External ID for the contract: the metering provider externalId when one is mapped, otherwise the contract ID.

id
String

The persisted Stigg contract id (matches Subscription.contractId; present for Stigg-managed contracts)

latestInvoice

The most recent non-draft invoice for this contract (open, paid, or canceled), when one exists

name
String

Contract name

Preview of the contract's next (upcoming) invoice, when the contract has one

poNumber
String

Purchase-order number, when set on the contract

refId
String

The Stigg contract ref ID (present for Stigg-managed contracts; the key used to update/delete)

Contract state

subscriptions

Custom subscriptions attached to this contract (empty when none)

Query
Variables
Response