Skip to main content
GET
/
inventory
/
ingestion
/
{id}
Get Job
curl --request GET \
  --url https://api-staging.luladelivery.store/inventory/ingestion/{id}
import requests

url = "https://api-staging.luladelivery.store/inventory/ingestion/{id}"

response = requests.get(url)

print(response.text)
const options = {method: 'GET'};

fetch('https://api-staging.luladelivery.store/inventory/ingestion/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api-staging.luladelivery.store/inventory/ingestion/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api-staging.luladelivery.store/inventory/ingestion/{id}"

req, _ := http.NewRequest("GET", url, nil)

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api-staging.luladelivery.store/inventory/ingestion/{id}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api-staging.luladelivery.store/inventory/ingestion/{id}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
{
    "id": 330,
    "store_id": "7e3154b3-9460-4c68-802c-0f7122cb7a58",
    "original_file_path": "s3://lula-inventory-service-staging/Upsert/Input_files/Json_files/7e3154b3-9460-4c68-802c-0f7122cb7a58/9f1bacb2-55cc-4abe-8aac-12e6e54a74d8.json",
    "status": "pending",
    "created_by": "unknown",
    "updated_by": "unknown",
    "updated_at": "2023-07-15T12:53:27.693Z",
    "created_at": "2023-07-15T12:53:27.693Z",
    "validate_file_path": null,
    "oneschema_embed_id": null
}
id
string
required
The Job ID

Response

id
number
The id of the job which ingests the JSON file.
store_id
string
The store id for which the JSON file has been uploaded.
original_file_path
string
The S3 url where the JSON file has been uploaded.
status
string
The status of the job.
  • importing: The job's CSV is filed is being imported (only applies to CSV ingestion)
  • pending: The job is in the queue and will start being processed soon
  • processing: The job is being processed
  • validation_failed: The job finished but at least one item failed validation
  • success: The job finished and all items were successfully created, updated or removed
  • error: An unexpected error occurred when processing the job. Please contact us
created_by
string
The user by which the job was created.
updated_by
string
The user by which the job was updated.
updated_at
datetime
The timestamp at which the job is updated.
created_at
datetime
The timestamp at which job was created.
validate_file_path
string
The updated JSON file, after applying validations.
oneschema_embed_id
number
Not applicable
{
    "id": 330,
    "store_id": "7e3154b3-9460-4c68-802c-0f7122cb7a58",
    "original_file_path": "s3://lula-inventory-service-staging/Upsert/Input_files/Json_files/7e3154b3-9460-4c68-802c-0f7122cb7a58/9f1bacb2-55cc-4abe-8aac-12e6e54a74d8.json",
    "status": "pending",
    "created_by": "unknown",
    "updated_by": "unknown",
    "updated_at": "2023-07-15T12:53:27.693Z",
    "created_at": "2023-07-15T12:53:27.693Z",
    "validate_file_path": null,
    "oneschema_embed_id": null
}