noon_impex_download_export
Download and parse a COMPLETE noon export; the full file is also saved to the operator's Drive when a reports folder is configured.
writenoon
Call it
In an AI client (MCP)
{
"name": "noon_impex_download_export",
"arguments": {
"store": "myStore-US",
"exportCode": "<exportCode>"
}
}From code (Tool API)
curl -X POST https://api.sellersheetai.com/api/v1/tools/noon_impex_download_export \
-H "Authorization: Bearer $SELLERSHEET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"store":"myStore-US","exportCode":"<exportCode>"}'Early access — the Tool API is open on request, contact us.
Arguments
| Name | Type | Description |
|---|---|---|
storerequired | string | the noon account ref `<account>-<CC>` (name-country, e.g. 'myNoon-AE') — one of get_user_context's noon store_refs, verbatim. |
exportCoderequired | string | data.export_code from noon_impex_CreateExport, once export_status is COMPLETE. |
Result
Every tool answers {notification, data, human_action}; data carries:
data.columns— the CSV header.data.preview— the first 20 rows, each an array aligned to columns — never the full file.data.row_count / data.hasMore— total rows; true when the preview is not the whole file.data.download_url— the full CSV (a public signed URL).data.drive_url— the Drive copy, only when a reports folder is configured.data.oversize— true when the file is over 5 MB — only its first rows were read, row_count is null and nothing was saved to Drive; fetch download_url for the rest.
Gotchas
- Before COMPLETE the call is refused (HTTP 400 naming the status) — poll noon_impex_GetExportStatus first.