Skip to main content

Download Parcel

Download the EDI content of an inbound parcel by its ID.

Endpoint

POST /v2/parcels/download

Request Body

FieldTypeRequiredConstraintsDescription
parcelIdlongYesUnique identifier of the parcel to download
{
"parcelId": 987654321
}

Response

Returns the parcel metadata along with the Base64-encoded file content.

:::tip Confirm After Download Always call Confirm Download (POST /v2/parcels/confirm) after successfully saving the file. Without confirmation, ECGrid treats the parcel as undelivered and will re-deliver it on the next polling cycle. :::

{
"success": true,
"data": {
"parcelId": 987654321,
"fileName": "invoice_batch_20260507.edi",
"content": "SVFU4OiogU2VuZGluZyBFREkgZGF0YSB2aWEgRUNHcmlk...",
"bytes": 14872
}
}

Code Examples

curl -X POST "https://rest.ecgrid.io/v2/parcels/download" \
-H "X-API-Key: $ECGRID_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "parcelId": 987654321 }'

See Also