Invoices API
| Action | Endpoint |
|---|---|
| Fetch Invoices for a Quote | GET/billing/{tenantLocator}/invoices/quotes/{quoteLocator}/list |
| Fetch Invoices for a Policy | GET/billing/{tenantLocator}/invoices/policies/{policyLocator}/list |
| Fetch Invoices for an Account | GET/billing/{tenantLocator}/invoices/accounts/{accountLocator}/list |
| Fetch an Invoice with Its Items | GET/billing/{tenantLocator}/invoices/{locator} |
| Fetch Invoice Details | GET/billing/{tenantLocator}/invoices/{locator}/details |
| Fetch Payments For An Invoice | GET/billing/{tenantLocator}/invoices/{locator}/payments/list |
| Fetch Credits For An Invoice | GET/billing/{tenantLocator}/invoices/{locator}/credits/list |
| Fetch Invoices Targeted By APayment | GET/billing/{tenantLocator}/payments/{locator}/invoices/list |
| Update Invoice | PATCH/billing/{tenantLocator}/invoices/{locator} |
| Settle Negative Or Zero Invoice | POST/billing/{tenantLocator}/invoices/{locator}/settle |
| Fetch Debits For An Invoice | GET/billing/{tenantLocator}/invoices/{invoiceLocator}/debits/list |
| Preview Invoices For Quote | GET/billing/{tenantLocator}/invoices/quotes/{locator}/previewInvoices |
| Preview Invoices For Transaction | GET/billing/{tenantLocator}/invoices/transactions/{locator}/previewInvoices |
| Preview Invoices For Stateless Quote | GET/billing/{tenantLocator}/invoices/quotes/statelessPreview |
| Fetch Invoice With Number | GET/billing/{tenantLocator}/invoices/numbers/{invoiceNumber} |
| Set Invoice Number | POST/billing/{tenantLocator}/invoices/{locator}/number/set |
| Generate Invoice Number | POST/billing/{tenantLocator}/invoices/{locator}/number/generate |
| Initiate Early Invoicing | POST/billing/{tenantLocator}/invoices/earlyInvoicing |
Fetch
Fetch Invoices for a Quote
Fetch Invoices for a Quote
fetchInvoicesForQuoteGET
/billing/{tenantLocator}/invoices/quotes/{quoteLocator}/listParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
quoteLocator | path | ulid | Yes | |
includeZeroAmountInvoices | query | boolean? | No | |
offset | query | integer? | No | |
count | query | integer? | No | |
extended | query | boolean? | No |
Response:
InvoiceListResponseSecurity Group:
invoicesPermissions:
read,listFetch Invoices for a Policy
Fetch Invoices for a Policy
fetchInvoicesForPolicyGET
/billing/{tenantLocator}/invoices/policies/{policyLocator}/listParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
policyLocator | path | ulid | Yes | |
includeZeroAmountInvoices | query | boolean? | No | |
offset | query | integer? | No | |
count | query | integer? | No | |
extended | query | boolean? | No |
Response:
InvoiceListResponseSecurity Group:
invoicesPermissions:
read,listFetch Invoices for an Account
Fetch Invoices for an Account
fetchInvoicesForAccountGET
/billing/{tenantLocator}/invoices/accounts/{accountLocator}/listParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
accountLocator | path | ulid | Yes | |
includeZeroAmountInvoices | query | boolean? | No | |
offset | query | integer? | No | |
count | query | integer? | No | |
extended | query | boolean? | No |
Response:
InvoiceListResponseSecurity Group:
invoicesPermissions:
read,listFetch an Invoice with Its Items
Fetch an Invoice with Its Items
getInvoiceWithItemsGET
/billing/{tenantLocator}/invoices/{locator}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
locator | path | ulid | Yes |
Response:
InvoiceResponseSecurity Group:
invoicesPermission:
readInvoiceResponse
Required properties
| Property | Type | Description |
|---|---|---|
locator | ulid | |
accountLocator | ulid | |
startTime | datetime | |
endTime | datetime | |
dueTime | datetime | |
currency | string | |
timezone | string | |
invoiceState | Enum open | settled | discarded | |
generatedTime | datetime | |
invoiceType | Enum normal | aggregate |
Optional properties
| Property | Type | Description |
|---|---|---|
aggregatedInvoiceLocator | ulid? | |
autopayTime | datetime? | |
invoiceNumber | string? | |
settledTime | datetime? | |
totalAmount | number? | |
totalRemainingAmount | number? | |
unsettledTime | datetime? | |
invoiceItems | InvoiceItemResponse[]? | Not included when part of a list response |
InvoiceItemResponse
Required properties
| Property | Type | Description |
|---|---|---|
locator | ulid | |
invoiceLocator | ulid | |
timezone | string | |
amount | number | |
chargeCategory | string | |
chargeType | string | |
installmentItemLocators | ulid[] | |
transactionLocators | ulid[] |
Optional properties
| Property | Type | Description |
|---|---|---|
policyLocator | ulid? | |
elementStaticLocator | ulid? | |
quoteLocator | ulid? | |
elementType | string? | |
remainingAmount | number? | |
settlementTime | datetime? | |
unsettledTime | datetime? |
Fetch Invoice Details
Fetch Invoice Details
fetchInvoiceDetailsGET
/billing/{tenantLocator}/invoices/{locator}/detailsParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
locator | path | ulid | Yes |
Response:
InvoiceDetailsResponseSecurity Group:
invoicesPermission:
readInvoiceDetailsResponse
Required properties
| Property | Type | Description |
|---|---|---|
accountLocator | ulid | |
invoiceLocator | ulid | |
startTime | datetime | |
endTime | datetime | |
dueTime | datetime | |
currency | string | |
timezone | string | |
invoiceState | Enum open | settled | discarded | |
generatedTime | datetime | |
invoiceType | Enum normal | aggregate | |
totalAmount | number | |
totalRemainingAmount | number | |
invoiceSummaries | InvoiceSummary[] |
Optional properties
| Property | Type | Description |
|---|---|---|
aggregatedInvoiceLocator | ulid? | |
autopayTime | datetime? | |
invoiceNumber | string? | |
settledTime | datetime? | |
unsettledTime | datetime? |
Fetch Payments For An Invoice
Fetch Payments For An Invoice
fetchPaymentsForAnInvoiceGET
/billing/{tenantLocator}/invoices/{locator}/payments/listParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
locator | path | ulid | Yes | |
includeReversed | query | boolean? | No | |
offset | query | integer? | No | |
count | query | integer? | No | |
extended | query | boolean? | No |
Response:
PaymentListResponseSecurity Group:
invoicesPermissions:
read,listPaymentListResponse
Required properties
| Property | Type | Description |
|---|---|---|
listCompleted | boolean | |
items | PaymentResponse[] |
Fetch Credits For An Invoice
Fetch Credits For An Invoice
fetchCreditsForAnInvoiceGET
/billing/{tenantLocator}/invoices/{locator}/credits/listParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
locator | path | ulid | Yes | |
includeReversed | query | boolean? | No | |
offset | query | integer? | No | |
count | query | integer? | No | |
extended | query | boolean? | No |
Response:
CreditListResponseSecurity Group:
invoicesPermissions:
read,listFetch Invoices Targeted By APayment
Fetch Invoices Targeted By A Payment
fetchInvoicesTargetedByAPaymentGET
/billing/{tenantLocator}/payments/{locator}/invoices/listParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
locator | path | ulid | Yes | |
includeReversed | query | boolean? | No | |
offset | query | integer? | No | |
count | query | integer? | No | |
extended | query | boolean? | No |
Response:
InvoiceListResponseSecurity Group:
paymentsPermissions:
read,listInvoiceListResponse
Required properties
| Property | Type | Description |
|---|---|---|
listCompleted | boolean | |
items | InvoiceSummary[] |
InvoiceSummary
Required properties
| Property | Type | Description |
|---|---|---|
locator | ulid | |
accountLocator | ulid | |
startTime | datetime | |
endTime | datetime | |
dueTime | datetime | |
currency | string | |
timezone | string | |
invoiceState | Enum open | settled | discarded | |
generatedTime | datetime | |
totalAmount | number | |
totalRemainingAmount | number |
Optional properties
| Property | Type | Description |
|---|---|---|
autopayTime | datetime? | |
invoiceNumber | string? | |
settledTime | datetime? | |
unsettledTime | datetime? |
Update
Update Invoice
Update Invoice
updateInvoicePATCH
/billing/{tenantLocator}/invoices/{locator}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
locator | path | ulid | Yes |
InvoiceUpdateRequest
Required properties
| Property | Type | Description |
|---|---|---|
autopayTime | datetime | |
suppressAutopay | boolean |
Negative Invoice Handling
Settle Negative Or Zero Invoice
Settle Negative Or Zero Invoice
settleNegativeOrZeroInvoicePOST
/billing/{tenantLocator}/invoices/{locator}/settleParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
locator | path | ulid | Yes | |
forced | query | boolean? | No |
Security Group:
invoicesPermission:
writeFetch Debits For An Invoice
Fetch Debits For An Invoice
fetchDebitsForAnInvoiceGET
/billing/{tenantLocator}/invoices/{invoiceLocator}/debits/listParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
invoiceLocator | path | ulid | Yes | |
includeReversed | query | boolean? | No | |
offset | query | integer? | No | |
count | query | integer? | No |
Response:
ListPageResponseDebitResponseSecurity Group:
invoicesPermissions:
read,listListPageResponseDebitResponse
Required properties
| Property | Type | Description |
|---|---|---|
listCompleted | boolean | |
items | DebitResponse[] |
DebitResponse
Required properties
| Property | Type | Description |
|---|---|---|
invoiceLocator | ulid | |
targetLocator | ulid | |
amount | number | |
targetType | Enum invoice | account | subpayment | invoiceItem |
Optional properties
| Property | Type | Description |
|---|---|---|
reversed | boolean? | |
reversedAt | datetime? |
ListPageResponseCreditDistributionResponse
Required properties
| Property | Type | Description |
|---|---|---|
listCompleted | boolean | |
items | CreditDistributionResponse[] |
Invoice Documents
If you have configured invoicing to generate an invoice document, you can fetch it with the Fetch Invoice Document endpoint.
Invoice Preview
Preview Invoices For Quote
Preview Invoices For Quote
previewInvoicesForQuoteGET
/billing/{tenantLocator}/invoices/quotes/{locator}/previewInvoicesParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
locator | path | ulid | Yes | |
includeZeroAmountInvoices | query | boolean? | No | |
count | query | integer? | No |
Response:
InvoicePreviewResponse[]Security Group:
invoicesPermission:
readPreview Invoices For Transaction
Preview Invoices For Transaction
previewInvoicesForTransactionGET
/billing/{tenantLocator}/invoices/transactions/{locator}/previewInvoicesParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
locator | path | ulid | Yes | |
includeZeroAmountInvoices | query | boolean? | No | |
count | query | integer? | No |
Response:
InvoicePreviewResponse[]Security Group:
invoicesPermission:
readInvoicePreviewResponse
Required properties
| Property | Type | Description |
|---|---|---|
startTime | datetime | |
endTime | datetime | |
dueTime | datetime | |
generateTime | datetime | |
autopayTime | datetime | |
totalAmount | number | |
installmentLocators | ulid[] | |
invoiceItems | InvoiceItemPreview[] |
InvoiceItemPreview
Required properties
| Property | Type | Description |
|---|---|---|
elementStaticLocator | ulid | |
amount | number | |
chargeCategory | string | |
chargeType | string | |
elementType | string | |
transactionLocators | ulid[] |
Optional properties
| Property | Type | Description |
|---|---|---|
policyLocator | ulid? | |
quoteLocator | ulid? |
Preview Invoices For Stateless Quote
Preview Invoices For Stateless Quote
previewInvoicesForStatelessQuoteGET
/billing/{tenantLocator}/invoices/quotes/statelessPreviewParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
quotePreviewRequest | query | QuoteBillingPreviewRequest | Yes | |
includeZeroAmountInvoices | query | boolean? | No | |
count | query | integer? | No |
Response:
InvoicePreviewResponse[]Security Group:
invoicesPermission:
readNumbering
Fetch Invoice With Number
Fetch Invoice With Number
fetchInvoiceWithNumberGET
/billing/{tenantLocator}/invoices/numbers/{invoiceNumber}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
invoiceNumber | path | string | Yes |
Response:
InvoiceResponse[]Security Group:
invoicesPermission:
readSet Invoice Number
Set Invoice Number
setInvoiceNumberPOST
/billing/{tenantLocator}/invoices/{locator}/number/setParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
locator | path | ulid | Yes | |
invoiceNumber | query | string | Yes |
Response:
InvoiceResponseSecurity Group:
invoicesPermission:
writeGenerate Invoice Number
Generate Invoice Number
generateInvoiceNumberPOST
/billing/{tenantLocator}/invoices/{locator}/number/generateParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
locator | path | ulid | Yes |
Response:
InvoiceResponseSecurity Group:
invoicesPermission:
writeEarly Invoicing
Initiate Early Invoicing
Initiate Early Invoicing
initiateEarlyInvoicingPOST
/billing/{tenantLocator}/invoices/earlyInvoicingParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes |
EarlyInvoicingRequest
Required properties
| Property | Type | Description |
|---|---|---|
ignoreHolds | boolean | |
installmentLocators | ulid[] |
Optional properties
| Property | Type | Description |
|---|---|---|
accountLocator | ulid? | |
timezone | string? | |
invoiceDueTime | datetime? | |
invoiceThroughTime | datetime? |
EarlyInvoicingResponse
Required properties
| Property | Type | Description |
|---|---|---|
jobLocator | ulid | |
candidateInstallmentsCount | integer |