Bulk Image Import
|
This API is a pilot. It is available to all retailers with a valid bol retailer account. |
The bulk image import pilot allows you to submit a batch of images for an offer and track the processing status of each individual asset. This is useful when you need to import multiple images for a given offer in one request rather than uploading them one by one.
The pilot exposes two endpoints:
-
Submit a bulk import: submit a list of image URLs to be imported for a specific offer.
-
Get import status: retrieve the processing status of a previously submitted import batch.
Media type
All requests to this pilot must use the following media type for both the Content-Type and Accept headers:
application/vnd.retailer.v11-pilot-bulk-image-import+json
Requests that do not carry this media type are rejected.
Submit a bulk import
POST /retailer/offers/{offer-id}/image-imports
Submit a list of image assets to be imported for a given offer. The import is processed asynchronously. The response contains a processStatusId which you use to track the processing status of each asset.
Path parameters
| Parameter | Type | Description |
|---|---|---|
|
UUID |
The identifier of the offer for which you want to import images. |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
|
array |
Yes |
The list of image assets to import. Must contain between 1 and 30 items. |
|
string |
Yes |
The publicly accessible URL of the image to import. |
|
array of strings |
No |
Optional labels to assign to this asset. Supported value: |
{
"assets": [
{ "url": "https://example.com/front.jpg", "labels": ["PRIMARY"] },
{ "url": "https://example.com/side.jpg" }
]
}
Response body
The response follows the standard bol process status shape. Use processStatusId to poll the status of your import.
| Field | Type | Description |
|---|---|---|
|
string |
The process status identifier for this import. Use this value to retrieve the processing status via the get import status endpoint. |
|
string |
The type of event. Always |
|
string |
A human-readable description of the process. |
|
string |
The current status of the process. See Process status values. |
|
date-time |
The timestamp at which the process status record was created. |
|
array |
Navigation links related to this process status. |
{
"processStatusId": "pss-01a18321-07e1-7289-846a-cd9e1d2c711d",
"eventType": "BULK_IMAGE_IMPORT",
"description": "Bulk import images for offer.",
"status": "PENDING",
"createTimestamp": "2026-11-18T10:00:00Z",
"links": []
}
Process status values
| Value | Description |
|---|---|
|
The import has been accepted and is queued for processing. |
|
All assets have been processed. This does not mean every asset was accepted — a batch with some declined assets still ends as |
|
All assets in the batch failed to process. Check the per-asset |
|
The import timed out before completing. |
Validation
-
The
assetsarray must contain at least 1 and at most 30 items. Requests outside this range are rejected with a400error. -
At most one asset may carry the
PRIMARYlabel. Requests with more than onePRIMARYasset are rejected with a400error. -
Each
urlmust be a publicly accessible URL from which bol can download the image.
Get import status
GET /retailer/offers/{offer-id}/image-imports/{process-status-id}
Retrieve the processing status of a previously submitted import batch. Poll this endpoint after submitting an import to check whether your assets have been processed.
Path parameters
| Parameter | Type | Description |
|---|---|---|
|
UUID |
The identifier of the offer for which the import was submitted. |
|
string |
The process status identifier returned by the submit import endpoint. |
Response body
| Field | Type | Description |
|---|---|---|
|
string |
The process status identifier of this import batch. |
|
string |
The overall status of the batch. See Batch status values. |
|
array |
The list of assets in this batch and their individual processing results. |
|
string |
The URL of the asset as submitted. |
|
array of strings |
The labels assigned to this asset. |
|
string |
The processing status of this individual asset. See Asset status values. |
|
string |
An optional machine-readable code providing more detail on a |
|
string |
A human-readable description of the |
{
"processStatusId": "pss-01a18321-07e1-7289-846a-cd9e1d2c711d",
"status": "COMPLETED",
"assets": [
{
"url": "https://example.com/front.jpg",
"labels": ["PRIMARY"],
"status": "ACCEPTED"
},
{
"url": "https://example.com/side.jpg",
"labels": [],
"status": "DECLINED",
"subStatus": "VALIDATION_FAILED",
"subStatusDescription": "The image could not be downloaded or did not meet format requirements."
}
]
}
Batch status values
| Value | Description |
|---|---|
|
The batch has been received and one or more assets are still being processed. |
|
All assets in the batch have been processed. Check each asset’s individual |
Asset status values
| Value | Description |
|---|---|
|
This asset is queued and has not yet been processed. |
|
This asset was successfully downloaded and imported. |
|
This asset could not be imported. Check |
Sub-status values
Only present on DECLINED assets.
| Value | Description |
|---|---|
|
The offer could not be found during processing. |
|
The offer’s reference code changed between submission and processing, so the import could not be applied. |
|
The image could not be downloaded or did not meet bol’s format requirements (e.g. unsupported format, too small, or corrupt file). |
|
Processing of this asset timed out before completing. |
|
An unexpected error occurred while processing this asset. |
Error responses
| HTTP status | Problem type | Cause |
|---|---|---|
|
|
The request is invalid. Common causes: |
|
— |
No valid authentication credentials were provided. |
|
|
The pilot is not active for the authenticated retailer. |
|
|
The offer (on submit) or the import batch (on status retrieval) does not exist, or does not belong to the authenticated retailer. |