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

offer-id

UUID

The identifier of the offer for which you want to import images.

Request body

Field Type Required Description

assets

array

Yes

The list of image assets to import. Must contain between 1 and 30 items.

assets[].url

string

Yes

The publicly accessible URL of the image to import.

assets[].labels

array of strings

No

Optional labels to assign to this asset. Supported value: PRIMARY. At most one asset per request may carry this label. Use PRIMARY to designate the main product image.

Example request
{
  "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

processStatusId

string

The process status identifier for this import. Use this value to retrieve the processing status via the get import status endpoint.

eventType

string

The type of event. Always BULK_IMAGE_IMPORT for this endpoint.

description

string

A human-readable description of the process.

status

string

The current status of the process. See Process status values.

createTimestamp

date-time

The timestamp at which the process status record was created.

links

array

Navigation links related to this process status.

Example response
{
  "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

PENDING

The import has been accepted and is queued for processing.

SUCCESS

All assets have been processed. This does not mean every asset was accepted — a batch with some declined assets still ends as SUCCESS. Always check the per-asset status on the get import status endpoint to see the outcome for each image.

FAILURE

All assets in the batch failed to process. Check the per-asset status and subStatus for details.

TIMEOUT

The import timed out before completing.

Validation

  • The assets array must contain at least 1 and at most 30 items. Requests outside this range are rejected with a 400 error.

  • At most one asset may carry the PRIMARY label. Requests with more than one PRIMARY asset are rejected with a 400 error.

  • Each url must 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

offer-id

UUID

The identifier of the offer for which the import was submitted.

process-status-id

string

The process status identifier returned by the submit import endpoint.

Response body

Field Type Description

processStatusId

string

The process status identifier of this import batch.

status

string

The overall status of the batch. See Batch status values.

assets

array

The list of assets in this batch and their individual processing results.

assets[].url

string

The URL of the asset as submitted.

assets[].labels

array of strings

The labels assigned to this asset.

assets[].status

string

The processing status of this individual asset. See Asset status values.

assets[].subStatus

string

An optional machine-readable code providing more detail on a DECLINED asset. See Sub-status values.

assets[].subStatusDescription

string

A human-readable description of the subStatus.

Example response
{
  "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

PROCESSING

The batch has been received and one or more assets are still being processed.

COMPLETED

All assets in the batch have been processed. Check each asset’s individual status to see the outcome.

Asset status values

Value Description

PENDING

This asset is queued and has not yet been processed.

ACCEPTED

This asset was successfully downloaded and imported.

DECLINED

This asset could not be imported. Check subStatus and subStatusDescription for the reason.

Sub-status values

Only present on DECLINED assets.

Value Description

OFFER_NOT_FOUND

The offer could not be found during processing.

REFERENCE_CODE_CHANGED

The offer’s reference code changed between submission and processing, so the import could not be applied.

VALIDATION_FAILED

The image could not be downloaded or did not meet bol’s format requirements (e.g. unsupported format, too small, or corrupt file).

TIMED_OUT

Processing of this asset timed out before completing.

PROCESSING_ERROR

An unexpected error occurred while processing this asset.

Error responses

HTTP status Problem type Cause

400 Bad Request

/problems/bad-request

The request is invalid. Common causes: assets array is empty or exceeds 30 items, more than one asset has the PRIMARY label, or the payload is malformed.

401 Unauthorized

—

No valid authentication credentials were provided.

403 Forbidden

/problems/no-active-variant

The pilot is not active for the authenticated retailer.

404 Not Found

/problems/not-found

The offer (on submit) or the import batch (on status retrieval) does not exist, or does not belong to the authenticated retailer.