# Deliver Transaction Group
Source: https://www.stedi.com/docs/edi-platform/api-reference/post-transaction-group

***

title: "Deliver Transaction Group"
sidebarTitle: "Transaction group"
openapi: core post /partnerships/{partnershipId}/transaction-groups/{transactionGroupId}/generate-edi
-----------------------------------------------------------------------------------------------------

When you call this endpoint, Stedi:

1. Generates a single EDI file containing all transactions in the specified transaction group (`transactionGroupId`). This includes adding required envelope information (`ISA` and `GS` headers) and autogenerated control numbers.
2. Delivers the EDI file to your trading partner through the connection specified in the transaction settings.

<Warning>
  You can only call this endpoint with a given `transactionGroupId` once.
  Afterward, that transaction group is locked, and you must create a new
  transaction group to generate another file.
</Warning>

## Stage transactions

You can use the [Stage Transactions API](/edi-platform/api-reference/core/stage-transactions) to store one or more transactions in a transaction group on Stedi. When you're ready to send all of the transactions in the group, you can call this endpoint to generate and deliver an EDI file to your trading partner.

## Delivery attempts

Stedi attempts to deliver a file to all configured connections every 6 minutes for up to 3 total attempts. If it cannot deliver the file after the third attempt, it marks the file execution as `FAILED` and emits the [`file.failed.v2` event](/edi-platform/operate/event-types#file-failed). Stedi displays each delivery attempt and the failure details on the [Files](https://portal.stedi.com/app/core/file-executions) page.

## Customize generated files

You can change the timezone, time format, character set (which characters are allowed), and filename for generated files. [Learn more](/edi-platform/operate/generate-edi#timezone-and-time-format).

## Inbound processing

There is no equivalent endpoint for parsing EDI files into JSON. To parse inbound files, you or your partner can send EDI files to an SFTP/FTPS or AS2 [connection](/edi-platform/configure/trading-partners/connections), and Stedi sends the JSON payload to the configured [Destination webhook](/edi-platform/configure/destinations).

This endpoint generates and delivers a fully-formed EDI file for a given transaction group. Transactions are staged in a group using the `CreateTransactionGroup` endpoint. Once a file has been generated for a given transaction group, the group can no longer be used.