GET
/
transactions
/
{transactionId}
/
fragments
/
{fragmentIndex}
curl --request GET \
  --url https://core.us.stedi.com/2023-08-01/transactions/{transactionId}/fragments/{fragmentIndex} \
  --header 'Authorization: <api-key>'
{
  "direction": "INBOUND",
  "mode": "production",
  "fileExecutionId": "29d6b95d-c611-bce6-b893-0e64821cd238",
  "transactionId": "7d0c6f84-4cec-4f4a-a681-e7a36eb48d25",
  "processedAt": "2023-10-12T15:34:01.435Z",
  "partnership": {
    "partnershipId": "me_another-merch",
    "partnershipType": "x12",
    "sender": {
      "profileId": "merch"
    },
    "receiver": {
      "profileId": "me"
    }
  },
  "x12": {
    "metadata": {
      "interchange": {
        "acknowledgmentRequestedCode": "0",
        "controlNumber": 103
      },
      "functionalGroup": {
        "controlNumber": 103,
        "release": "005010X220A1",
        "date": "2004-12-27",
        "time": "13:24",
        "functionalIdentifierCode": "BE"
      },
      "transaction": {
        "controlNumber": "13331",
        "transactionSetIdentifier": "846"
      },
      "receiver": {
        "applicationCode": "THISISME",
        "isa": {
          "qualifier": "02",
          "id": "THISISME"
        }
      },
      "sender": {
        "applicationCode": "ANOTHERMERCH",
        "isa": {
          "qualifier": "02",
          "id": "ANOTHERMERCH"
        }
      }
    },
    "transactionSetting": {
      "guideId": "01HAPYY1YPFWGVJH1HD75SP0A2",
      "transactionSettingId": "01HCAHP7PY84DBZG0FM5JB4MCE"
    }
  },
  "fragments": {
    "batchSize": 800,
    "keyName": "item_identification_LIN_loop",
    "fragmentCount": 1065
  },
  "fragmentIndex": 0,
  "artifacts": [
    {
      "artifactType": "application/json",
      "sizeBytes": 389388,
      "model": "fragment",
      "usage": "output",
      "url": "https://core.us.stedi.com/2023-08-01/transactions/7d0c6f84-4cec-4f4a-a681-e7a36eb48d25/fragments/0/output"
    }
  ],
  "transactionUrl": "https://core.us.stedi.com/2023-08-01/transactions/7d0c6f84-4cec-4f4a-a681-e7a36eb48d25"
}

This endpoint retrieves metadata about a specific fragment within a transaction. To retrieve the fragment itself, use the Get Fragment Output endpoint.

Fragments allow you to split large transactions into smaller chunks for easier processing. You can enable fragments for one repeated EDI segment in each transaction set and then split the transaction into chunks based on that segment.

Authorizations

Authorization
string
header
required

A Stedi API Key for authentication.

Path Parameters

transactionId
string
required

A unique identifier for the processed transaction within Stedi. This ID is included in the transaction processed event. You can also retrieve it manually from the transaction's details page within the Stedi app.

fragmentIndex
number
required

The identifier for a specific fragment within a processed transaction. This ID is included in the fragment processed event, or you can retrieve it manually from the transaction's details page within the Stedi app.

Response

200
application/json
GetTransactionFragment 200 response

The response is of type object.