Retrieve invoice file

Returns a redirect URL to download the invoice file content.

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.

SecurityShippo_Token
Request
path Parameters
file_id
required
string (File Id)

Unique identifier of invoice file to be downloaded

Responses
302

Successful Response: Redirect to download file

404

Not Found

422

Unprocessable Entity

get/v2/reports/invoices/{file_id}
Request samples
curl -i -X GET \
'https://api.goshippo.com/v2/reports/invoices/4e43e2df-3e35-4985-b718-2d21e5078175' \
-H 'Authorization: ShippoToken <API_TOKEN>'
Response samples
application/json
{
  • "detail": "File not Found"
}