Invoices API
Endpoint Index
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 a Payment | GET /billing/{tenantLocator}/payments/{locator}/invoices/list |
Preview Invoices for Quote | GET /billing/{tenantLocator}/invoices/quotes/{locator}/previewInvoices |
Preview Invoices for Transaction | GET /billing/{tenantLocator}/invoices/transactions/{locator}/previewInvoices |
Fetch Invoice with Number | GET /billing/{tenantLocator}/invoices/numbers/{invoiceNumber} |
Set Invoice Number | POST /billing/{tenantLocator}/invoices/{locator}/number/set |
Initiate Early Invoicing | POST /billing/{tenantLocator}/invoices/earlyInvoicing |
Fetch
GET /billing/{tenantLocator}/invoices/quotes/{quoteLocator}/list
Request Parameters:
Name | Position | Type | Required |
---|---|---|---|
tenantLocator | path | uuid | required |
quoteLocator | path | string | required |
includeZeroAmountInvoices | query | boolean? | optional |
offset | query | int? | optional |
count | query | int? | optional |
extended | query | boolean? | optional |
Response:InvoiceListResponse
Security Group:invoices  Permissions:read,list
GET /billing/{tenantLocator}/invoices/policies/{policyLocator}/list
Request Parameters:
Name | Position | Type | Required |
---|---|---|---|
tenantLocator | path | uuid | required |
policyLocator | path | string | required |
includeZeroAmountInvoices | query | boolean? | optional |
offset | query | int? | optional |
count | query | int? | optional |
extended | query | boolean? | optional |
Response:InvoiceListResponse
Security Group:invoices  Permissions:read,list
GET /billing/{tenantLocator}/invoices/accounts/{accountLocator}/list
Request Parameters:
Name | Position | Type | Required |
---|---|---|---|
tenantLocator | path | uuid | required |
accountLocator | path | string | required |
includeZeroAmountInvoices | query | boolean? | optional |
offset | query | int? | optional |
count | query | int? | optional |
extended | query | boolean? | optional |
Response:InvoiceListResponse
Security Group:invoices  Permissions:read,list
GET /billing/{tenantLocator}/invoices/{locator}
Request Parameters:
Name | Position | Type | Required |
---|---|---|---|
tenantLocator | path | uuid | required |
locator | path | string | required |
Response:InvoiceResponse
Security Group:invoices  Permission:read
InvoiceResponse
¶requiredlocator stringaccountLocator stringstartTime datetimeendTime datetimedueTime datetimecurrency stringtimezone stringinvoiceState Enum open | settledgeneratedTime datetimeinvoiceItems InvoiceItemResponse[]optionalinvoiceNumber string?totalAmount number?totalRemainingAmount number?unsettledTime datetime?
InvoiceItemResponse
¶requiredlocator stringelementStaticLocator stringinvoiceLocator stringtimezone stringamount numberchargeCategory stringchargeType stringinstallmentItemLocators string[]optionalpolicyLocator string?transactionLocator string?quoteLocator string?elementType string?remainingAmount number?settlementTime datetime?
GET /billing/{tenantLocator}/invoices/{locator}/details
Request Parameters:
Name | Position | Type | Required |
---|---|---|---|
tenantLocator | path | uuid | required |
locator | path | string | required |
Response:InvoiceDetailsResponse
Security Group:invoices  Permission:read
InvoiceDetailsResponse
¶requiredaccountLocator stringinvoiceLocator stringstartTime datetimeendTime datetimedueTime datetimecurrency stringtimezone stringinvoiceState Enum open | settledgeneratedTime datetimetotalAmount numbertotalRemainingAmount numberpolicyInvoiceSummaries PolicyInvoiceSummary[]optionalinvoiceNumber string?
PolicyInvoiceSummary
¶requiredproductName stringinvoiceItemSummaries InvoiceItemSummary[]optionalpolicyLocator string?quoteLocator string?
InvoiceItemSummary
¶requiredelementStaticLocator stringinvoiceItemLocator stringamount numberchargeCategory stringchargeType stringelementType stringremainingAmount numberinstallmentItemSummaries InstallmentItemSummary[]optionalsettlementTime datetime?
InstallmentItemSummary
¶requiredelementLocator stringinstallmentItemLocator stringinstallmentLocator stringamount numberoptionaltransactionLocator string?transactionCategory string?transactionEffectiveTime datetime?transactionType string?
GET /billing/{tenantLocator}/invoices/{locator}/payments/list
Request Parameters:
Name | Position | Type | Required |
---|---|---|---|
tenantLocator | path | uuid | required |
locator | path | string | required |
includeReversed | query | boolean? | optional |
offset | query | int? | optional |
count | query | int? | optional |
extended | query | boolean? | optional |
Response:PaymentListResponse
Security Group:invoices  Permissions:read,list
GET /billing/{tenantLocator}/invoices/{locator}/credits/list
Request Parameters:
Name | Position | Type | Required |
---|---|---|---|
tenantLocator | path | uuid | required |
locator | path | string | required |
includeReversed | query | boolean? | optional |
offset | query | int? | optional |
count | query | int? | optional |
extended | query | boolean? | optional |
Response:CreditListResponse
Security Group:invoices  Permissions:read,list
GET /billing/{tenantLocator}/payments/{locator}/invoices/list
Request Parameters:
Name | Position | Type | Required |
---|---|---|---|
tenantLocator | path | uuid | required |
locator | path | string | required |
offset | query | int? | optional |
count | query | int? | optional |
extended | query | boolean? | optional |
Response:InvoiceListResponse
Security Group:payments  Permissions:read,list
InvoiceListResponse
¶requiredlistCompleted booleanitems InvoiceResponse[]
Invoice Documents
If you have configured invoicing to generate an invoice document, you can fetch it with the Fetch Invoice Document endpoint.
Invoice Preview
GET /billing/{tenantLocator}/invoices/quotes/{locator}/previewInvoices
Request Parameters:
Name | Position | Type | Required |
---|---|---|---|
tenantLocator | path | uuid | required |
locator | path | string | required |
includeZeroAmountInvoices | query | boolean? | optional |
Response:InvoicePreviewResponse[]
Security Group:invoices  Permission:read
GET /billing/{tenantLocator}/invoices/transactions/{locator}/previewInvoices
Request Parameters:
Name | Position | Type | Required |
---|---|---|---|
tenantLocator | path | uuid | required |
locator | path | string | required |
includeZeroAmountInvoices | query | boolean? | optional |
Response:InvoicePreviewResponse[]
Security Group:invoices  Permission:read
InvoicePreviewResponse
¶requiredstartTime datetimeendTime datetimedueTime datetimegenerateTime datetimetotalAmount numberinvoiceItems InvoiceItemPreview[]
InvoiceItemPreview
¶requiredelementStaticLocator stringamount numberchargeCategory stringchargeType stringelementType stringoptionalpolicyLocator string?quoteLocator string?
Numbering
GET /billing/{tenantLocator}/invoices/numbers/{invoiceNumber}
Request Parameters:
Name | Position | Type | Required |
---|---|---|---|
tenantLocator | path | uuid | required |
invoiceNumber | path | string | required |
Response:InvoiceResponse[]
Security Group:invoices  Permission:read
POST /billing/{tenantLocator}/invoices/{locator}/number/set
Request Parameters:
Name | Position | Type | Required |
---|---|---|---|
tenantLocator | path | uuid | required |
locator | path | string | required |
invoiceNumber | query | string | required |
Response:InvoiceResponse
Security Group:invoices  Permission:write
Early Invoicing
POST /billing/{tenantLocator}/invoices/earlyInvoicing
Request Parameters:
Name | Position | Type | Required |
---|---|---|---|
tenantLocator | path | uuid | required |
Request:EarlyInvoicingRequest
Response:EarlyInvoicingResponse
Security Group:invoices  Permission:write
EarlyInvoicingRequest
¶requiredignoreHolds booleaninstallmentLocators string[]optionalaccountLocator string?timezone string?invoiceDueTime datetime?invoiceThroughTime datetime?
EarlyInvoicingResponse
¶requiredjobLocator string