Bol component
The Bol component is able to connect to the bol.com api as it takes alot of work away that is specific to bol.com. The component takes care of the signing and hashing of the authentication header, you can choose to use the form inside the component instead of generating an XML
yourself and you can simply select the method you want to call from a dropdown list. For more information and examples regarding the bol.com api see the documentation link below.
Bol API Documentation
https://developers.bol.com/documentatie/
Configuration
The Bol component has the following configuration options:
Property | Description |
---|---|
Operation | The operation action you want to call from the bol.com's api. |
Public Key | Your public key |
Private Key | Your private key |
Use Test? | Should the bol component use the sandboxed test environment? |
Use Body? | Should the bol component send the body or use the embedded form in the component? |
Remarks
- When you select a operation and you don't want to use your body as input, you can fill in all the information in the dynamically generated form inside the component.
- You can use
${header.<headername>}
and${headers.<headername>}
variables in dynamic forms.
Examples
1 - Executing a bulk upsert request
Operation: Create or Update Offer
Use Body?: True
Example input body:
<?xml version="1.0" encoding="UTF-8"?>
<UpsertRequest>
<RetailerOffer>
<EAN>9789076174082</EAN>
<Condition>REASONABLE</Condition>
<Price>7.50</Price>
<DeliveryCode>3-5d</DeliveryCode>
<QuantityInStock>1</QuantityInStock>
<Publish>true</Publish>
<ReferenceCode>HarryPotter-2ehands</ReferenceCode>
<Description>boek met koffievlekken</Description>
<Title></Title>
<FulfillmentMethod>FBR</FulfillmentMethod>
</RetailerOffer>
<RetailerOffer>
<EAN>9789076174083</EAN>
<Condition>NEW</Condition>
<Price>17.50</Price>
<DeliveryCode>3-5d</DeliveryCode>
<QuantityInStock>1</QuantityInStock>
<Publish>true</Publish>
<ReferenceCode>got1</ReferenceCode>
<Description>Nieuw boek</Description>
<Title></Title>
<FulfillmentMethod>FBR</FulfillmentMethod>
</RetailerOffer>
</UpsertRequest>
2 - Executing a bulk delete request
Operation: Delete Offer
Use Body?: True
Example input body:
<?xml version="1.0" encoding="UTF-8"?>
<DeleteBulkRequest>
<RetailerOfferIdentifier>
<EAN>9789029086288</EAN>
<Condition>NEW</Condition>
</RetailerOfferIdentifier>
<RetailerOfferIdentifier>
<EAN>9789041422347</EAN>
<Condition>NEW</Condition>
</RetailerOfferIdentifier>
<RetailerOfferIdentifier>
<EAN>9789056724313</EAN>
<Condition>NEW</Condition>
</RetailerOfferIdentifier>
</DeleteBulkRequest>