> ## Documentation Index
> Fetch the complete documentation index at: https://stedi.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# CMS-1500 PDF: Transaction ID

> Retrieve the generated CMS-1500 Claim Form PDF for a submitted 837P professional claim

This endpoint uses a claim's `transactionId` to retrieve autogenerated CMS-1500 Claim Form PDFs for submitted 837P professional claims.

1. Call this endpoint with the `transactionId` path parameter set to the claim's transaction ID. This ID is included in the transaction processed event for the claim, which you can receive automatically through Stedi [webhooks](/healthcare/configure-webhooks). You can also retrieve this ID through the [Poll Transactions](/api-reference/edi-platform/core/get-pollingtransactions) endpoint or from the transaction's details page within Stedi.
2. The endpoint returns the PDF data as a base64 encoded string.

To view the PDF, decode the base64 string and save it to a file with a `.pdf` extension.

<Note>
  If you plan to send these PDFs to payers or retain them for your records, we strongly recommend visiting [CMS-1500 Claim Form PDF](/healthcare/cms-1500-claim-form-pdf) for information about how to structure claim submissions for optimal generation, the correct printer settings for generated PDFs, and general best practices.
</Note>
