Exporting Variants from all Feeds
Last update: 2 years ago by luigi mangaReading time: 2 min
Onport allows you to generate a CSV file containing a list of variants from all the inventory feeds.
The columns contained in the CSV document are:
- barcode
- compare_at_price
- handle
- name
- retail_price
- cost_price
- grams
- inventory_quantity
- product_type
- vendor_name
- vendor_sku
- description
- images
- tags
- option.title
- variant_sku
In order to request the CSV export generation, you can send a GET
request to /api/companies/:id/export-inventory-feed-variants.json
where :id is the current company Id.
The :id can be found by making a call to a specific Auth endpoint Getting Company Id by Token
curl --request GET \--url 'https://api.jetti.io/api/companies/:id/export-inventory-feed-variants.json?where%5Benabled%5D=true' \--header 'Authorization: Bearer {{token}}' \--header 'Content-Type: application/json'
Onport will respond with a Data Export object and send an email to the address associated to the Authorization token.
An alternative to receiving exports as an email attachment is to poll Onport's API for Data Exports. More information is available via the article Polling the API for Data Exports