Get Started with Insurance Developer Resources
Generate Insurance Contract Transaction Action
Get Census Price Comparison Action
Get Member Ratings and Contributions Action
Previous PDF Versions
Asynchronously generate insurance contract transactions (InsuranceContractTrxn and InsuranceContractTrxnDtl records) for the specified contract ID over a given date range.
This action is available in API version 68.0 and later.
URI: /services/data/vXX.X/actions/standard/generateInsuranceContractTrxn
Where XX.X is the latest API version.
Formats: JSON, XML
HTTP Methods: POST
Authentication: Authorization: Bearer TOKEN
Where TOKEN is your OAuth access token.
| Input | Type | Description |
|---|---|---|
contractId | string | Required. The ID of the insurance contract to generate transactions for |
insuranceContractGenerateTxnInputRep | Apex-defined | Required. An Apex ConnectApi.InsuranceContractGenerateTrxnInputRepresentation record that contains the date range and an optional name for transaction rollup. |
| Output | Type | Description |
|---|---|---|
insuranceContractGenerateTxnRep | Apex-defined | An Apex ConnectApi.InsuranceContractGenerateTrxnRepresentation record that contains details about the asynchronous job ID and success status. |
POST
This sample request is for the Generate Insurance Contract Transaction action.
1{
2 "inputs": [
3 {
4 "contractId": "800xx0000004C92AAE",
5 "insuranceContractGenerateTxnInputRep": {
6 "name": "Q1-2026-Transactions",
7 "fromDate": "2026-01-01",
8 "toDate": "2026-03-31"
9 }
10 }
11 ]
12}This sample response is for the Generate Insurance Contract Transaction action.
1[
2 {
3 "actionName": "generateInsuranceContractTrxn",
4 "errors": null,
5 "invocationId": null,
6 "isSuccess": true,
7 "outcome": null,
8 "outputValues": {
9 "isSuccess": true,
10 "message": "Transaction generation started successfully",
11 "jobIdentifier": "08Pxx0000000001EAA",
12 "errors": null
13 },
14 "sortOrder": -1,
15 "version": 1
16 }
17]