import LightsparkGrid from '@lightsparkdev/grid';
const client = new LightsparkGrid({
username: process.env['GRID_CLIENT_ID'], // This is the default and can be omitted
password: process.env['GRID_CLIENT_SECRET'], // This is the default and can be omitted
});
const response = await client.customers.bulk.getJobStatus('jobId');
console.log(response.jobId);{
"jobId": "Job:019542f5-b3e7-1d02-0000-000000000006",
"status": "PROCESSING",
"progress": {
"total": 5000,
"processed": 2500,
"successful": 2450,
"failed": 50
},
"errors": [
{
"correlationId": "biz456",
"code": "<string>",
"message": "<string>",
"details": {}
}
],
"completedAt": "2025-08-15T14:32:00Z"
}Retrieve the current status and results of a bulk customer import job. This endpoint can be used to track the progress of both CSV uploads.
The response includes:
import LightsparkGrid from '@lightsparkdev/grid';
const client = new LightsparkGrid({
username: process.env['GRID_CLIENT_ID'], // This is the default and can be omitted
password: process.env['GRID_CLIENT_SECRET'], // This is the default and can be omitted
});
const response = await client.customers.bulk.getJobStatus('jobId');
console.log(response.jobId);{
"jobId": "Job:019542f5-b3e7-1d02-0000-000000000006",
"status": "PROCESSING",
"progress": {
"total": 5000,
"processed": 2500,
"successful": 2450,
"failed": 50
},
"errors": [
{
"correlationId": "biz456",
"code": "<string>",
"message": "<string>",
"details": {}
}
],
"completedAt": "2025-08-15T14:32:00Z"
}API token authentication using format <api token id>:<api client secret>
ID of the bulk import job to retrieve
Job status retrieved successfully
Unique identifier for the bulk import job
"Job:019542f5-b3e7-1d02-0000-000000000006"
Current status of the job
PENDING, PROCESSING, COMPLETED, FAILED "PROCESSING"
Show child attributes
Detailed error information for failed entries
Show child attributes
Timestamp when the job completed (only present for COMPLETED or FAILED status)
"2025-08-15T14:32:00Z"
Was this page helpful?