Skip to main content

Billing

Billing contains subscription, payment, and credit information for an Organisation. It includes the plan type, payment system, document send credits, user limits, and invoice history.

Accessed via Organisation.billing (requires billing permission).

Implements: Node

Fields

FieldTypeDescription
idID!Unique identifier
customerNameString!Company name
address1StringAddress line 1
address2StringAddress line 2
address3StringAddress line 3
address4StringAddress line 4
address5StringAddress line 5
postcodeStringPostal code
createdAWSDateTimeWhen billing was created
modifiedAWSDateTimeWhen billing was last modified
cancelledAtAWSDateTimeCancellation date (past = cancelled, future = scheduled)
billingContactEmailAWSEmailPrimary billing contact
billingContactEmailCcAWSEmailCC for billing emails
technicalContactEmailAWSEmailTechnical contact for error alerts
taxRateFloatTax rate (e.g. 0.2 for UK VAT)
attachInvoiceToEmailsBooleanAttach PDF invoice to emails
invoiceCreditDaysIntDays to pay invoice (for invoice payment systems)
docSendCreditIntDocument send credit
bulkSendCreditIntBulk send credit
userLimitIntMaximum users allowed (null = unlimited)
userCountIntCurrent active user count
alertCountIntThreshold for low credit alert emails
libraryLimitIntMaximum templates allowed (null = unlimited)
groupLimitIntMaximum groups allowed (null = unlimited)
planNamePLANSSubscription plan (e.g. TEAM, BUSINESS, ENTERPRISE)
paymentSystemPAYMENTSYSTEMPayment method (STRIPE, GOCARDLESS, INVOICEMONTHLY, etc.)
currencyCURRENCYGBP, EURO, or USD

Connections

invoiceConnection

Invoice history. Supports cursor-based pagination.

ArgumentTypeDescription
firstIntNumber of items
afterIDPagination cursor

Query

Billing is accessed through the Organisation:

query GetBilling($orgId: ID) {
organisation(id: $orgId) {
billing {
planName
paymentSystem
currency
docSendCredit
userLimit
userCount
}
}
}

Example

Full billing query with invoice history (based on the Legalesign Console app):

query GetBillingDetails($orgId: ID) {
organisation(id: $orgId) {
billing {
customerName
address1
address2
address3
address4
address5
postcode
created
modified
cancelledAt
billingContactEmail
billingContactEmailCc
technicalContactEmail
taxRate
attachInvoiceToEmails
invoiceCreditDays
docSendCredit
userCount
userLimit
alertCount
libraryLimit
groupLimit
planName
paymentSystem
currency
invoiceConnection {
invoices {
id
created
supplyDate
currency
invoiceNumber
taxRate
subTotal
totalIncTax
creditReason
customerName
}
}
}
}
}

Export This Article

Save a copy of this page as PDF or plain text.