Flat Charges API
Endpoint Index
| Action | Endpoint |
|---|---|
| Add Charges | POST /billing/{tenantLocator}/accounts/{accountLocator}/charges |
| Reverse Charges | POST /billing/{tenantLocator}/accounts/{accountLocator}/charges/reverse |
| Add or update invoice fee on a quote | PATCH /policy/{tenantLocator}/quotes/{locator}/invoiceFeeAmount |
| Add or update invoice fee on a policy | PATCH /policy/{tenantLocator}/policies/{locator}/invoiceFeeAmount |
| Fetch Charges by Account | GET /billing/{tenantLocator}/accounts/{accountLocator}/charges/list |
| Fetch Charges by Policy | GET /billing/{tenantLocator}/policies/{policyLocator}/charges/list |
| Fetch Charges by Transaction | GET /billing/{tenantLocator}/transactions/{transactionLocator}/charges/list |
Create and Reverse
POST /billing/{tenantLocator}/accounts/{accountLocator}/chargesRequest 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
ChargeCreateRequest
¶requiredamount numberchargeType stringoptionaltransactionLocator string?elementLocator string?elementStaticLocator string?tag string?
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 stringaccountLocator stringcurrency stringamount numberchargeCategory Enum cededPremium | commission | credit | fee | flatCededPremium | flatCommission | flatFee | flatPremium | flatTax | invoiceFee | none | nonFinancial | premium | surcharge | taxchargeInvoicing Enum immediate | next | scheduledchargeType stringoptionalpolicyLocator string?transactionLocator string?elementLocator string?elementStaticLocator string?reversalOfLocator string?tag string?
POST /billing/{tenantLocator}/accounts/{accountLocator}/charges/reverseRequest 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}/invoiceFeeAmountRequest 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}/invoiceFeeAmountRequest 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/listRequest 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/listRequest 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/listRequest 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