Skip to main content

Get ASN Spreadsheet Preview

GET 

/api/shiphero/integration-instances/:integrationInstance/asn/spreadsheet-preview

Preview the backup ASN spreadsheet the connection's 3PL is emailed: the file name, the email subject and recipients, and every row (header row first) in the chosen column layout, for a recent purchase order going to one of the connection's mapped warehouses. Built from the same code that sends the email, so it matches what the 3PL receives. Nothing is sent and ShipHero is not contacted.

Required scope: integrations:read

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Authentication: Requires Bearer token.

Requires the integrations.show permission.

purchase_orders lists up to 20 recent purchase orders (newest first) that can be previewed. When there are none, is_sample is true and a two-line sample PO is shown, with the email template's unfilled subject.

The ISN four-column layout is always a CSV named ISN-{PO number}.csv; the default layout uses the account's ASN file format (CSV, XLSX or XLS) and is named ASN {PO number}.{format}.

warnings explains anything that would stop the email going out (no email on the destination address, or the ASN email template turned off); subject is null when the template is off.

Request​

Responses​

OK

Response Headers
    Content-Type