# 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://eshop.gitbook.io/eshopbox-developers/advanced/jobs/create-a-job.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
