---
schema_version: "1"
id: cc7186d38825356d99aea2d6255fde6c831e6871da9b8233a46b71f93f19a905
title: Generate Insurance Contract Transactions (POST)
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/insurance_developer_guide/connect_resources_generate_contract_transactions.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.insurance_developer_guide.meta/insurance_developer_guide/connect_resources_generate_contract_transactions.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: b72453f15659dafcb33e6d927b9d140e143d8cd5feddcd310c6b6ca9621cead3
description: Generate contract-level transaction details for a group benefits contract over a specified date range. The API groups existing policy transactions into InsuranceContractTrxn (header) and InsuranceContractTrxnDetail (line item) records. This API runs asynchronously and returns a job ID to track the job status.
---
# Generate Insurance Contract Transactions (POST)

Generate contract-level transaction details for a group benefits contract over a specified date range. The API groups existing policy transactions into InsuranceContractTrxn (header) and InsuranceContractTrxnDetail (line item) records. This API runs asynchronously and returns a job ID to track the job status.

## Resource

{contractId} is a placeholder.

/connect/insurance/contracts/{contractId}/actions/generate-transactions

## Resource Example

Replace {yourInstance} with the My Domain name of your Salesforce org.

https://{yourInstance}.salesforce.com/services/data/v68.0/connect/insurance/contracts/800xx0000004C92AAE/actions/generate-transactions

## Available Version

68.0

## HTTP Methods

POST

## Path Parameter for POST

| Parameter Name | Type | Description | Required or Optional | Available Version |
| --- | --- | --- | --- | --- |
| contractId | String | ID of the insurance contract. | Required | 68.0 |

## Request Body for POST

### JSON Example

{
  "name": "Q1-2026-Transactions",
  "fromDate": "2026-01-01",
  "toDate": "2026-03-31"
}

### Properties

| Name | Type | Description | Required or Optional | Available Version |
| --- | --- | --- | --- | --- |
| fromDate | String | Start date of the time period for which you want to generate contract transactions, in YYYY-MM-DD format. | Required | 68.0 |
| name | String | Name of the transaction generation job. Use a descriptive name so that you can identify the job later. | Optional | 68.0 |
| toDate | String | End date of the time period for which to generate contract transactions, in YYYY-MM-DD format. Must be on or after the fromDate. | Required | 68.0 |

## Response Body for POST

[Insurance Contract Transactions Generation Response](https://developer.salesforce.com/docs/atlas.en-us.insurance_developer_guide.meta/insurance_developer_guide/connect_responses_insurance_contract_generate_txn_output.htm "Output representation of the details when you start asynchronous generation of contract transactions for a group benefits contract.")