About the Bol.com category

Put topics about this connector package here.
Always check the ‘How to use the Alumio connector packages’ topic.

Extra information

System documentation: Welcome to the bol.com Retailer API | Retailer API Documentation

Connector package documentation

​​Table of Contents

  • 1. Setting up HTTP Client Bol.com
    • 1.1 Steps
  • 2. Subscribing to entities from Bol.com
    • 2.1 Steps
    • 2.2 General concept
  • 3. Publishing entity to Bol.com
    • 3.1 Steps
    • 3.2 General concept

1. Setting up HTTP Client Bol.com

1.1 Steps

  1. In Alumio Dashboard, go to Clients > HTTPS Client. Create a new HTTP Client and select Bol.com v9 HTTP Client as the prototype of the HTTP Client.

  2. Fill in the Base URI, Token URI, Client Type, Client id, and Client Secret.

  3. You can optionally enable logging of requests to get the log of the authentication.

  4. Click on Grant access to Bol.com to get the Key.

  5. Save the HTTP Client after the key has been provided.

2. Subscribing to Entities from Bol.com

2.1 Steps

  1. Go to Connections → Incoming and create a new incoming configuration and select Bol.com v9 Advertiser Subscriber, Bol.com Retailer v9 Subscriber, or Bol.com v9 Shared Subscriber as the subscriber.

  1. Select the entity you want to subscribe to from Bol.com.

  2. Add any request parameters needed to subscribe to the entity (optional).

  3. You can optionally add a transformer to transform the request parameters into something you need.

  4. Select the Bol.com HTTP Client to use. (Please set the Client Type according to what you need for the Subscriber)

2.2 General Concept

We follow Bol.com documentation on building this connector so you can easily use the connector based on Bol.com API Reference.

Entity

It’s the entity you want to subscribe from Bol.com. Please refer to the entities in Management APIs from Bol.com API Reference.

Request Parameters

These are the parameters you can provide to get the needed entity based on Bol.com API Reference. Please look at the example below on how to fill the Request Parameters field when subscribing “Retrieve an offer by its offer id”.

Because the offer id is inside path, we put it like that. This will be sent to the Bol system as /retailer/offers/6a3ef7aa-d1b8-4eaf-9fe9-7260ccc08281

  • Path is the path parameter of the url. For example, the {id}.
  • Query is a defined set of parameters attached to the end of a url.
    Example: www.url.com?type=true&start=0

Input Transformer

Any transformer’s set here will be executed after the Request Parameters loaded. So, you basically can add any transformer to provide and transform the request parameters into anything you need, either as path parameters and/or as query parameters of an entity.

HTTP Client

It’s the HTTP Client configuration you will use to access Bol.com. (Please set the Client Type according to what you need for the Subscriber)

3. Publishing Entity to Bol.com

3.1 Steps

  1. Go to Connections → Outgoing, create a new outgoing configuration, and select Bol.com v9 Advertiser Publisher or Bol.com v9 Retailer Publisher as the publisher.

  1. Select the action that you want the publisher to do with the data currently Bol.com support Create, Update, and Delete.
  2. Select the Bol.com entity you want the data to be published.
  3. Select the HTTP Client to use. (Please set the Client Type according to what you need for the Publisher)

3.2 General Concept

Like the subscriber, the publisher has similar methods on how to use it. The difference is the payload that will be submitted by the publisher originating from the data (from routes, from transformers in outgoing configuration).

Action

Currently, we support Create (HTTP POST method), Update (HTTP PUT method), and Delete (HTTP DELETE method).

Entity

We support publishing to most Bol.com endpoints. Please refer to the entities in Management APIs from the Bol.com API Reference page. Based on the documentation, some endpoints may need one or more path parameters.

For endpoints that require an object as the request payload, please look at the example below. For example, we want to Create a Thread. Please select “CREATE” as the action and “ Create content for a product” as the entity of the publisher.

Based on the documentation, we need to add a Body Request. So we put the body inside the payload key in the Data.

image

Alumio will send an API request to Bol.com with the URL /retailer/content/products

Another example is when we want to delete an offer.

We can see in the documentation that we need to add “offer-id” in the path; we need to add them in our data, for example:

image

  • Path is the path parameter of the url. For example, the {id}.
  • Query is a defined set of parameters attached to the end of a url.
    Example: www.url.com?type=true&start=0
  • Payload is the data contained within a request.

HTTP Client

It’s the HTTP Client configuration you will use to access Bol.com. (Please set the Client Type according to what you need for the Publisher)