Create Import Job

Create Import job

POST 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

Name
Type
Description

job-Type

string

The type of task you want to run.

filePath

string

File path of uploaded file.

channelId

number

The channel for which file has been uploaded.

importFilters

string

Filter parameters required while uploading the respective file.

{
  "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  
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
       }
   }
}'

Last updated