v4 - 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
Accept: application/vnd.retailer.v4+json
Content-Type: N/A
Authorization: Bearer token (omitted)
This endpoint has no request body.
Content-Type: application/vnd.retailer.v4+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
Accept: application/vnd.retailer.v4+json
Content-Type: application/vnd.retailer.v4+json
Authorization: Bearer token (omitted)
{
"language" : "nl",
"productContents" : [ {
"internalReference" : "1",
"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"
} ]
} ]
} ]
}
Content-Type: application/vnd.retailer.v4+json
Status: 202 ACCEPTED
{
"id" : 1,
"eventType" : "CREATE_PRODUCT_CONTENT",
"description" : "Create content for products.",
"status" : "PENDING",
"createTimestamp" : "2021-04-08T15:52:53+02:00",
"links" : [ {
"rel" : "self",
"href" : "http://api.bol.com/retailer-demo/process-status/1",
"method" : "GET"
} ]
}