v6 - Product content - Demo Endpoints

Get validation report

Get validation report based on its upload id.

GET /retailer-demo/content/validation-report/0206bb79-65b1-4bd3-bc9b-6a0129da03d6

  • Request

  • Response

Accept: application/vnd.retailer.v6+json
Content-Type: N/A
Authorization: Bearer token (omitted)

This endpoint has no request body.

Content-Type: application/vnd.retailer.v6+json

Status: 200 OK

{
  "productContents" : [ {
    "internalReference" : "internalReference123",
    "rejectedAttributes" : [ {
      "attributeId" : "Weight",
      "rejectionErrors" : [ {
        "code" : 2014,
        "message" : "Invalid unit"
      }, {
        "code" : 2005,
        "message" : "Invalid number"
      } ]
    } ],
    "status" : "VALIDATED_WITH_ATTRIBUTE_FAILURES"
  } ]
}

Post product content

Post product content.

POST /retailer-demo/content/product

  • Request

  • Response

Accept: application/vnd.retailer.v6+json
Content-Type: application/vnd.retailer.v6+json
Authorization: Bearer token (omitted)

{
  "language" : "nl",
  "productContents" : [ {
    "internalReference" : "2",
    "attributes" : [ {
      "id" : "EAN",
      "values" : [ {
        "value" : "8718526069335"
      } ]
    }, {
      "id" : "Width",
      "values" : [ {
        "value" : "14.5",
        "unitId" : "mm"
      } ]
    }, {
      "id" : "Still Image URL",
      "values" : [ {
        "value" : "https://www.your-domain.com/1.jpg"
      }, {
        "value" : "https://www.your-domain.com/2.jpg"
      }, {
        "value" : "https://www.your-domain.com/2.jpg"
      } ]
    } ],
    "assets" : [ {
      "url" : "https://www.example.com/image.jpg",
      "labels" : [ "primary" ]
    } ]
  } ]
}

Content-Type: application/vnd.retailer.v6+json

Status: 202 ACCEPTED

{
  "processStatusId" : "1",
  "eventType" : "CREATE_PRODUCT_CONTENT",
  "description" : "Create content for products.",
  "status" : "PENDING",
  "createTimestamp" : "2021-09-06T14:28:43+02:00",
  "links" : [ {
    "rel" : "self",
    "href" : "http://api.bol.com/retailer-demo/process-status/1",
    "method" : "GET"
  } ]
}