SUCCEEDED, you can download the file. Fetch the run by id to get a short-lived signed URL, then download from it. See Create and poll a report run to get a run to that state, and Authentication for token setup.
Get the download URL
SUCCEEDED run includes a result object:
The
download object has two shapes:
The signed URL only appears when you fetch the single run by id. You won’t find it:
- on the
POST201response - while the run is
QUEUEDorPROCESSING
Download the file
Send a plainGET to result.download.url.
A Shippo
Authorization header is not required for the download request.Output formats
You set the file format when you create the run (output_format). The default is csv_gzip.
URL expiry
EachGET /v2/reporting/runs/{run_id} on a run with status: SUCCEEDED returns a new signed URL. The expires field contains its expiry as a UTC epoch second.
If a URL has expired, re-GET the run for a new one. You don’t need to recreate the run.
Next steps
Create and poll a report run
Track a run from
QUEUED to SUCCEEDED before downloading.Run reference
Full schema for the run resource and
result.download.