Flat Charges API
Create and Reverse
POST /billing/{tenantLocator}/accounts/{accountLocator}/charges
Request Parameters:
Name | Position | Type | Required |
---|---|---|---|
tenantLocator | path | uuid | required |
accountLocator | path | string | required |
Request:ChargesCreateRequest
Response:ChargeResponse[]
Security Group:charges  Permission:write
ChargesCreateRequest
¶requiredcharges ChargeCreateRequest[]optionalpolicyLocator string?currency string?invoicing Enum? immediate | next | scheduled
Since charges are created with reference to an account, any policyLocator
or transactionLocator
in the charge creation request must belong to the account. If transactionLocator
and elementLocator
are provided, the elementLocator
must belong to the transaction specified by transactionLocator
.
ChargeResponse
¶requiredlocator stringelementLocator stringelementStaticLocator stringamount numberchargeCategory Enum cededPremium | commission | credit | fee | flatCededPremium | flatCommission | flatFee | flatPremium | flatTax | invoiceFee | none | nonFinancial | premium | surcharge | taxchargeType stringhandling Enum flat | normalinvoicing Enum immediate | next | scheduledrate numberreferenceRate numberoptionalreversalOfLocator string?rateDifference number?tag string?
POST /billing/{tenantLocator}/accounts/{accountLocator}/charges/reverse
Request Parameters:
Name | Position | Type | Required |
---|---|---|---|
tenantLocator | path | uuid | required |
accountLocator | path | string | required |
Request:ChargesReversalRequest
Response:ChargeResponse[]
Security Group:charges  Permission:write
ChargesReversalRequest
¶requiredinvoicing Enum immediate | next | scheduledcharges string[]
Add Invoice Fee to Policy or Quote
PATCH /policy/{tenantLocator}/quotes/{locator}/invoiceFeeAmount
Request Parameters:
Name | Position | Type | Required |
---|---|---|---|
tenantLocator | path | uuid | required |
locator | path | string | required |
Request:UpdateInvoiceFeeAmountRequest
Response:QuoteResponse
Security Group:quotes  Permission:write
PATCH /policy/{tenantLocator}/policies/{locator}/invoiceFeeAmount
Request Parameters:
Name | Position | Type | Required |
---|---|---|---|
tenantLocator | path | uuid | required |
locator | path | string | required |
Request:UpdateInvoiceFeeAmountRequest
Response:PolicyResponse
Security Group:policies  Permission:write
UpdateInvoiceFeeAmountRequest
¶requiredinvoiceFeeAmount number
Fetch
GET /billing/{tenantLocator}/accounts/{accountLocator}/charges/list
Request Parameters:
Name | Position | Type | Required |
---|---|---|---|
tenantLocator | path | uuid | required |
accountLocator | path | string | required |
offset | query | int? | optional |
count | query | int? | optional |
Response:ListPageResponseChargeResponse
Security Group:charges  Permissions:read,list
ListPageResponseChargeResponse
¶requiredlistCompleted booleanitems ChargeResponse[]
GET /billing/{tenantLocator}/policies/{policyLocator}/charges/list
Request Parameters:
Name | Position | Type | Required |
---|---|---|---|
tenantLocator | path | uuid | required |
policyLocator | path | string | required |
offset | query | int? | optional |
count | query | int? | optional |
Response:ListPageResponseChargeResponse
Security Group:charges  Permissions:read,list
GET /billing/{tenantLocator}/transactions/{transactionLocator}/charges/list
Request Parameters:
Name | Position | Type | Required |
---|---|---|---|
tenantLocator | path | uuid | required |
transactionLocator | path | string | required |
includeAll | query | boolean? | optional |
offset | query | int? | optional |
count | query | int? | optional |
Response:ListPageResponseChargeResponse
Security Group:charges  Permissions:read,list