| Action | Method | Resource | Description |
|---|---|---|---|
| Create | POST | /importers | Create importers |
| Delete | DELETE | /importers/:importer_id | Delete the importer |
| Create importer job | POST | | Create importer jobs |
| Create importer job | POST | /importers/:importer_slug/jobs | create jobs for importer slug |
The Importer model is composed of the following attributes:
| attribute | type | required | description |
|---|---|---|---|
| name | string | Yes | Name of importer |
| slug | string | Yes | code to run importer from this |
| type | string | Yes | sync_products sync_categories sync_businesses |
| mapping | json | Yes | Json with mapping data. this object allows you to configure the imports of csv files { (this field is used to identify the product id in the ordering database) (This field is used to indicate the position of the external product id in the csv file.) |
The importer model job is composed of the following atributes:
| attribute | type | required | description |
|---|---|---|---|
| file | CSV File | yes | |
| import_options | json | No | { "separator": "CSV separator", (Optional)(DEFAULT ;) "enclosure": "CSV enclosure", (Optional)(DEFAULT ") "escape": "CSV escape", (Optional)(DEFAULT ) "start_line": "Start from x line" (Optional)(DEFAULT 1) } |

