> For the complete documentation index, see [llms.txt](https://eshop.gitbook.io/eshopbox-developers/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://eshop.gitbook.io/eshopbox-developers/advanced/jobs/create-a-job.md).

# Create Import Job

## Create Import job

<mark style="color:green;">`POST`</mark> `https://{{accountSlug}}.myeshopbox.com/api/platform/v1/import-job`

This endpoint allows you to create import job.

#### Headers

| Name          | Type   | Description                                  |
| ------------- | ------ | -------------------------------------------- |
| Authorization | string | The Bearer token to grant access to the API. |

#### Request Body

<table><thead><tr><th width="192.2421875">Name</th><th width="165.51123046875">Type</th><th>Description</th><th>Mandatory</th></tr></thead><tbody><tr><td>jobType</td><td>string</td><td>The type of task you want to run.</td><td>Y</td></tr><tr><td>filePath</td><td>string</td><td>File path of uploaded file.</td><td>Y</td></tr><tr><td>channelId</td><td>number</td><td>The channel for which  file has been uploaded.</td><td>N <br>(Mandatory only if jobType is order)</td></tr><tr><td>importFilters</td><td>string</td><td>Filter parameters required while uploading the respective file.</td><td>N</td></tr></tbody></table>

{% tabs %}
{% tab title="200 Import Job successfully created." %}

```
{
  "importFilters": {
    "otherDetails": {
      "dateFrom": "2019-10-02",
      "dateTo": "2019-12-11",
      "neftId": "NEFT/101100180GN00020123",
      "requestStatus": "",
      "portalId": 1
    }
  },
  "filePath": "vcsyugxyuasxgasyu.com",
  "fileReadFailureReason": null,
  "failedFilePath": null,
  "additionalDetails": null,
  "userId": "70",
  "createdAt": "2019-12-26T19:02:04.000Z",
  "handleUrl": null,
  "successCount": null,
  "bucketPath": null,
  "id": "2051",
  "jobType": "base_product",
  "channelId": "0",
  "failureCount": null,
  "status": "0",
  "updatedAt": "2019-12-26T19:02:04.000Z"
}T  
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="curl" %}

```
curl --location --request POST 'https://{{accountSlug}}.myeshopbox.com/api/platform/v1/import-job' \
--header 'Content-Type: application/json' \
--header 'Authorization: {{Access-Token}}'
--data-raw '{
   "jobType": "base_product",
   "filePath":"vcsyugxyuasxgasyu.com",
   "importFilters": {
       "otherDetails": {
           "dateFrom": "2019-10-02",
           "dateTo": "2019-12-11",
           "neftId": "NEFT/101100180GN00020123",
           "requestStatus": "",
           "portalId": 1
       }
   }
}'
```

{% endtab %}
{% endtabs %}
