UUID of the report type
Reports API (v2)
Use the Reports API to retrieve reports that have been scheduled or requested on demand. At the moment, only scheduled reports are supported.
- Use
/v2/reports/{report_type_uuid}/runsto list the available reports. - Use
/v2/reports/{report_type_uuid}/runs/{report_run_uuid}/downloadto download the csv file of a report instance.
Request
Returns a list of reports that can be downloaded.
A report type is a report that can be executed on a schedule and/or on demand. If you have requested Shippo a custom report, you will receive the report type UUID that represents that report type. With this report type UUID, you can call this endpoint to list all the available runs of your report.
Filters report runs by their current status. This is an optional parameter, but it's recommended setting it to SUCCEEDED if your integration doesn't handle the other statuses
Filters results for only one report mode. (only scheduled reports are supported currently)
Link to the next page
- https://api.goshippo.com/v2/reports/{report_type_uuid}/runs
- cURL
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.goshippo.com/v2/reports/{report_type_uuid}/runs?status=QUEUED&mode=ON_DEMAND&page=bmV4dDs5MTsyMDI0LTA4LTA3VDE0OjQ1OjA4LjkyNzg1MSswMDowMA==&limit=10' \
-H 'Authorization: ShippoToken <API_TOKEN>'{ "resources": [ { … } ], "page_info": { "next": "bmV4dDs5MTsyMDI0LTA4LTA3VDE0OjQ1OjA4LjkyNzg1MSswMDowMA==", "prev": "cHJldjs5MjsyMDI0LTA5LTA1VDEzOjQwOjE1Ljk2NjY1NCswMDowMA==" } }
Request
Returns a redirect URL to download the report file.
After processing the response from /runs endpoint, use the same report_type_uuid and the object_id of the report you want to retrieve.
A successful response returns a 302 status code. Your client should automatically follow the redirected link to download the file. Some clients, such as Swagger UI, can include the authorization header when following the redirected link. This will cause the request to fail with a 400 Bad Request response. To avoid this issue, ensure that the authorization header is removed when the client follows the redirected URL.
- https://api.goshippo.com/v2/reports/{report_type_uuid}/runs/{report_run_uuid}/download
- cURL
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.goshippo.com/v2/reports/{report_type_uuid}/runs/{report_run_uuid}/download' \
-H 'Authorization: ShippoToken <API_TOKEN>'Redirect to download URL
No content