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
fetchInvoicesForQuote/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 |
InvoiceListResponseinvoicesread,listFetch Invoices for a Policy
fetchInvoicesForPolicy/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 |
InvoiceListResponseinvoicesread,listFetch Invoices for an Account
fetchInvoicesForAccount/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 |
InvoiceListResponseinvoicesread,listFetch an Invoice with Its Items
getInvoiceWithItems/billing/{tenantLocator}/invoices/{locator}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
locator | path | ulid | Yes |
InvoiceResponseinvoicesreadRequired 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 |
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
fetchInvoiceDetails/billing/{tenantLocator}/invoices/{locator}/detailsParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
locator | path | ulid | Yes |
InvoiceDetailsResponseinvoicesreadRequired 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
fetchPaymentsForAnInvoice/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 |
PaymentListResponseinvoicesread,listRequired properties
| Property | Type | Description |
|---|---|---|
listCompleted | boolean | |
items | PaymentResponse[] |
Fetch Credits For An Invoice
fetchCreditsForAnInvoice/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 |
CreditListResponseinvoicesread,listFetch Invoices Targeted By APayment
fetchInvoicesTargetedByAPayment/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 |
InvoiceListResponsepaymentsread,listRequired properties
| Property | Type | Description |
|---|---|---|
listCompleted | boolean | |
items | InvoiceSummaryView[] |
Required properties
| Property | Type | Description |
|---|---|---|
invoiceItemSummaries | InvoiceItemSummary[] |
Optional properties
| Property | Type | Description |
|---|---|---|
policyLocator | ulid? | |
quoteLocator | ulid? | |
productName | string? |
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? |
Required properties
| Property | Type | Description |
|---|---|---|
amount | number |
Optional properties
| Property | Type | Description |
|---|---|---|
transactionLocator | ulid? | |
transactionCategory | string? | |
transactionEffectiveTime | datetime? | |
transactionType | string? |
Required properties
| Property | Type | Description |
|---|---|---|
elementLocator | ulid | |
installmentItemLocator | ulid | |
installmentLocator | ulid | |
amount | number |
Optional properties
| Property | Type | Description |
|---|---|---|
transactionLocator | ulid? | |
transactionCategory | string? | |
transactionEffectiveTime | datetime? | |
transactionType | string? |
Required properties
| Property | Type | Description |
|---|---|---|
invoiceItemLocator | ulid | |
amount | number | |
chargeCategory | string | |
chargeType | string | |
remainingAmount | number | |
installmentItemSummaries | InstallmentItemSummary[] |
Optional properties
| Property | Type | Description |
|---|---|---|
elementStaticLocator | ulid? | |
elementType | string? | |
flatChargeSummary | FlatChargeSummary? | |
settlementTime | datetime? | |
unsettledTime | datetime? |
Required properties
| Property | Type | Description |
|---|---|---|
matching | Enum generateTime | startTime | all | |
window | Enum start | startAndEnd | catchUp |
Update
Update Invoice
updateInvoice/billing/{tenantLocator}/invoices/{locator}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
locator | path | ulid | Yes |
Required properties
| Property | Type | Description |
|---|---|---|
autopayTime | datetime | |
suppressAutopay | boolean |
Negative Invoice Handling
Settle Negative Or Zero Invoice
settleNegativeOrZeroInvoice/billing/{tenantLocator}/invoices/{locator}/settleParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
locator | path | ulid | Yes | |
forced | query | boolean? | No |
invoiceswriteFetch Debits For An Invoice
fetchDebitsForAnInvoice/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 |
ListPageResponseDebitResponseinvoicesread,listRequired properties
| Property | Type | Description |
|---|---|---|
listCompleted | boolean | |
items | 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? |
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
previewInvoicesForQuote/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 |
InvoicePreviewResponse[]invoicesreadPreview Invoices For Transaction
previewInvoicesForTransaction/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 |
InvoicePreviewResponse[]invoicesreadRequired properties
| Property | Type | Description |
|---|---|---|
startTime | datetime | |
endTime | datetime | |
dueTime | datetime | |
generateTime | datetime | |
autopayTime | datetime | |
totalAmount | number | |
installmentLocators | ulid[] | |
invoiceItems | 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
previewInvoicesForStatelessQuote/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 |
InvoicePreviewResponse[]invoicesreadNumbering
Fetch Invoice With Number
fetchInvoiceWithNumber/billing/{tenantLocator}/invoices/numbers/{invoiceNumber}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
invoiceNumber | path | string | Yes |
InvoiceResponse[]invoicesreadSet Invoice Number
setInvoiceNumber/billing/{tenantLocator}/invoices/{locator}/number/setParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
locator | path | ulid | Yes | |
invoiceNumber | query | string | Yes |
InvoiceResponseinvoiceswriteGenerate Invoice Number
generateInvoiceNumber/billing/{tenantLocator}/invoices/{locator}/number/generateParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
locator | path | ulid | Yes |
InvoiceResponseinvoiceswriteEarly Invoicing
Initiate Early Invoicing
initiateEarlyInvoicing/billing/{tenantLocator}/invoices/earlyInvoicingParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes |
Required properties
| Property | Type | Description |
|---|---|---|
ignoreHolds | boolean | |
installmentLocators | ulid[] |
Optional properties
| Property | Type | Description |
|---|---|---|
accountLocator | ulid? | |
timezone | string? | |
invoiceDueTime | datetime? | |
invoiceThroughTime | datetime? |
Required properties
| Property | Type | Description |
|---|---|---|
jobLocator | ulid | |
candidateInstallmentsCount | integer |