> ## 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.

# Get Fragment Output

> Retrieve a transaction fragment's output document after it has been translated.

There are no size restrictions on documents when fetching from this endpoint. However, fragments are generally smaller and more consumable than entire transactions.

## Response

This endpoint returns a `302` Temporary redirect to the document download URL. Many HTTP clients will automatically follow this redirect, or have a simple follow redirects configuration to set. For example, using the `-L` or `--location` flag in cURL will automatically follow the redirect. In this case, the response will contain the fragment data.

In the event you cannot, or chose not to automatically follow the redirect, the body of the response contains a JSON object with a single key `documentDownloadUrl` which contains a temporary URL to download the document. This URL is available for 60 minutes.

## Example

The following example shows a fragment from an 846 Inventory Inquiry/Advice transaction. It contains two iterations of the `item_identification_LIN` loop.

<Accordion title="Fragment example">
  ```json
  {
    "item_identification_LIN_loop": [
      {
        "item_identification_LIN": {
          "assigned_identification_01": "1",
          "product_service_id_qualifier_02": "VC",
          "product_service_id_03": "AAD15-1000"
        },
        "quantity_information_QTY_loop": [
          {
            "quantity_information_QTY": {
              "quantity_qualifier_01": "17",
              "quantity_02": 0,
              "composite_unit_of_measure_03": {
                "unit_or_basis_for_measurement_code_01": "EA"
              }
            }
          },
          {
            "quantity_information_QTY": {
              "quantity_qualifier_01": "ZZ",
              "quantity_02": 179.45,
              "composite_unit_of_measure_03": {
                "unit_or_basis_for_measurement_code_01": "DO"
              }
            }
          }
        ]
      },
      {
        "item_identification_LIN": {
          "assigned_identification_01": "2",
          "product_service_id_qualifier_02": "VC",
          "product_service_id_03": "AAD15-2"
        },
        "quantity_information_QTY_loop": [
          {
            "quantity_information_QTY": {
              "quantity_qualifier_01": "17",
              "quantity_02": 0,
              "composite_unit_of_measure_03": {
                "unit_or_basis_for_measurement_code_01": "EA"
              }
            }
          },
          {
            "quantity_information_QTY": {
              "quantity_qualifier_01": "ZZ",
              "quantity_02": 179.45,
              "composite_unit_of_measure_03": {
                "unit_or_basis_for_measurement_code_01": "DO"
              }
            }
          }
        ]
      }
    ]
  }
  ```
</Accordion>
