Skip to main content
GET
/
v1
/
declaration-items
/
download
Download declaration items
curl --request GET \
  --url https://sandbox-api.easecustoms.com/v1/declaration-items/download \
  --header 'Authorization: Bearer <token>'
Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Content-Disposition: attachment; filename="declaration_items.xlsx"
[Binary File Data]
Export declaration items in CSV/XLSX format using query parameters.

Query Parameters

Search term to filter items before downloading.
type
string
default:"xlsx"
The format of the downloaded file.
  • Options: xlsx, csv
isSendMail
boolean
default:"false"
Whether to send the generated export file via email.
emailRecipients
string[]
A list of email addresses to send the file to (required if isSendMail is true).
columns
string[]
Specific columns to include in the export (e.g. description, commodityCode, quantity).
Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Content-Disposition: attachment; filename="declaration_items.xlsx"
[Binary File Data]