Close
logo

Exporting Inventory Levels

Git RepositoryEdit on Github
Last update: 2 years ago by luigi mangaReading time: 2 min

Onport makes it possible to export Inventory Levels with custom mappings, allowing you to select the columns you want to appear in your export. The generated export can be uploaded to Onport's File Server or directly to your Amazon S3 Bucket.

In order to create a new Inventory Export, you can access Setup => Inventory Export.

After configuring the export, you can extract its numeric id from the browser's URL bar. Example: https://app.jetti.io/inventory-exports/:id

Once the id is collected, you can request for inventory exports directly from your application by using the following cURL request

curl --request GET \
--url https://api.jetti.io/api/inventory-exports/:id/export.json \
--header 'Authorization: Bearer {{token}}' \
--header 'Content-Type: application/json'

Onport will respond with the following JSON object:

{
"displayName": "inventory_levels",
"read": false,
"muteError": false,
"id": <id>,
"companyId": <companyId>,
"userId": <userId>,
"status": "pending",
"exportType": "inventory_levels",
"inventoryExportId": <inventoryExportId>,
"updatedAt": "2021-07-12T16:46:10.310Z",
"createdAt": "2021-07-12T16:46:10.310Z",
"fileUri": null,
"queuedAt": null,
"startedAt": null,
"completedAt": null,
"inventoryFeedId": null,
"stockTakeId": null,
"inventory_import_id": null,
"intercomMessageId": null,
"adminNotes": null,
"dropshipProviderId": null,
"templateId": null
}

This is an asynchronous export. Once it's ready, Onport will send an email to the address associated with the authorization token.

You may want to store the id in your application to be able to download the export after the processing is completed.

More information is available via the article Polling the API for Data Exports

๐Ÿ“‚ Exports โ€” Previous
Exporting Packing Slips
Next โ€” ๐Ÿ“‚ Exports
Exporting Dropshipments