All URIs are relative to https://api.bol.com
| Method | HTTP request | Description |
|---|---|---|
| deleteOffer | DELETE /retailer/offers/{offer-id} | Delete offer by id |
| getOffer | GET /retailer/offers/{offer-id} | Retrieve an offer by its offer id |
| getOfferExport | GET /retailer/offers/export/{report-id} | Retrieve an offer export file by offer export id |
| getUnpublishedOfferReport | GET /retailer/offers/unpublished/{report-id} | BETA: Retrieve an unpublished offer report by report id |
| postOffer | POST /retailer/offers | Create a new offer |
| postOfferExport | POST /retailer/offers/export | Request an offer export file |
| postUnpublishedOfferReport | POST /retailer/offers/unpublished | BETA: Request an unpublished offer report |
| putOffer | PUT /retailer/offers/{offer-id} | Update an offer |
| updateOfferPrice | PUT /retailer/offers/{offer-id}/price | Update price(s) for offer by id |
| updateOfferStock | PUT /retailer/offers/{offer-id}/stock | Update stock for offer by id |
\Swagger\BolClient\Model\ProcessStatus deleteOffer($offer_id)
Delete offer by id
Delete an offer by id.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\BolClient\Api\OffersApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$offer_id = "offer_id_example"; // string | Unique identifier for an offer.
try {
$result = $apiInstance->deleteOffer($offer_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OffersApi->deleteOffer: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| offer_id | string | Unique identifier for an offer. |
\Swagger\BolClient\Model\ProcessStatus
No authorization required
- Content-Type: Not defined
- Accept: application/vnd.retailer.v4+json, application/vnd.retailer.v4+xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\BolClient\Model\RetailerOffer getOffer($offer_id)
Retrieve an offer by its offer id
Retrieve an offer by using the offer id provided to you when creating or listing your offers.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\BolClient\Api\OffersApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$offer_id = "offer_id_example"; // string | Unique identifier for an offer.
try {
$result = $apiInstance->getOffer($offer_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OffersApi->getOffer: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| offer_id | string | Unique identifier for an offer. |
\Swagger\BolClient\Model\RetailerOffer
No authorization required
- Content-Type: Not defined
- Accept: application/vnd.retailer.v4+json, application/vnd.retailer.v4+xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getOfferExport($report_id)
Retrieve an offer export file by offer export id
Retrieve an offer export file containing all offers.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\BolClient\Api\OffersApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$report_id = "report_id_example"; // string | Unique identifier for an offer export report.
try {
$apiInstance->getOfferExport($report_id);
} catch (Exception $e) {
echo 'Exception when calling OffersApi->getOfferExport: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| report_id | string | Unique identifier for an offer export report. |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: application/vnd.retailer.v4+csv
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getUnpublishedOfferReport($report_id)
BETA: Retrieve an unpublished offer report by report id
Retrieve an unpublished offer report containing all unpublished offers and reasons.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\BolClient\Api\OffersApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$report_id = "report_id_example"; // string | Unique identifier for unpublished offer report.
try {
$apiInstance->getUnpublishedOfferReport($report_id);
} catch (Exception $e) {
echo 'Exception when calling OffersApi->getUnpublishedOfferReport: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| report_id | string | Unique identifier for unpublished offer report. |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: application/vnd.retailer.v4+csv
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\BolClient\Model\ProcessStatus postOffer($body)
Create a new offer
Creates a new offer, and adds it to the catalog. After creation, status information can be retrieved to review if the offer is valid and published to the shop.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\BolClient\Api\OffersApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$body = new \Swagger\BolClient\Model\CreateOfferRequest(); // \Swagger\BolClient\Model\CreateOfferRequest |
try {
$result = $apiInstance->postOffer($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OffersApi->postOffer: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| body | \Swagger\BolClient\Model\CreateOfferRequest | [optional] |
\Swagger\BolClient\Model\ProcessStatus
No authorization required
- Content-Type: application/vnd.retailer.v4+json, application/vnd.retailer.v4+xml
- Accept: application/vnd.retailer.v4+json, application/vnd.retailer.v4+xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\BolClient\Model\ProcessStatus postOfferExport($body)
Request an offer export file
Request an offer export file containing all offers.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\BolClient\Api\OffersApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$body = new \Swagger\BolClient\Model\CreateOfferExportRequest(); // \Swagger\BolClient\Model\CreateOfferExportRequest |
try {
$result = $apiInstance->postOfferExport($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OffersApi->postOfferExport: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| body | \Swagger\BolClient\Model\CreateOfferExportRequest | [optional] |
\Swagger\BolClient\Model\ProcessStatus
No authorization required
- Content-Type: application/vnd.retailer.v4+json, application/vnd.retailer.v4+xml
- Accept: application/vnd.retailer.v4+json, application/vnd.retailer.v4+xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\BolClient\Model\ProcessStatus postUnpublishedOfferReport($body)
BETA: Request an unpublished offer report
Request an unpublished offer report containing all unpublished offers and reasons.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\BolClient\Api\OffersApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$body = new \Swagger\BolClient\Model\CreateUnpublishedOfferReportRequest(); // \Swagger\BolClient\Model\CreateUnpublishedOfferReportRequest |
try {
$result = $apiInstance->postUnpublishedOfferReport($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OffersApi->postUnpublishedOfferReport: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| body | \Swagger\BolClient\Model\CreateUnpublishedOfferReportRequest | [optional] |
\Swagger\BolClient\Model\ProcessStatus
No authorization required
- Content-Type: application/vnd.retailer.v4+json, application/vnd.retailer.v4+xml
- Accept: application/vnd.retailer.v4+json, application/vnd.retailer.v4+xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\BolClient\Model\ProcessStatus putOffer($offer_id, $body)
Update an offer
Use this endpoint to send an offer update. This endpoint returns a process status.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\BolClient\Api\OffersApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$offer_id = "offer_id_example"; // string | Unique identifier for an offer.
$body = new \Swagger\BolClient\Model\UpdateOfferRequest(); // \Swagger\BolClient\Model\UpdateOfferRequest |
try {
$result = $apiInstance->putOffer($offer_id, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OffersApi->putOffer: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| offer_id | string | Unique identifier for an offer. | |
| body | \Swagger\BolClient\Model\UpdateOfferRequest | [optional] |
\Swagger\BolClient\Model\ProcessStatus
No authorization required
- Content-Type: application/vnd.retailer.v4+json, application/vnd.retailer.v4+xml
- Accept: application/vnd.retailer.v4+json, application/vnd.retailer.v4+xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\BolClient\Model\ProcessStatus updateOfferPrice($offer_id, $body)
Update price(s) for offer by id
Update price(s) for offer by id.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\BolClient\Api\OffersApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$offer_id = "offer_id_example"; // string | Unique identifier for an offer.
$body = new \Swagger\BolClient\Model\UpdateOfferPriceRequest(); // \Swagger\BolClient\Model\UpdateOfferPriceRequest |
try {
$result = $apiInstance->updateOfferPrice($offer_id, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OffersApi->updateOfferPrice: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| offer_id | string | Unique identifier for an offer. | |
| body | \Swagger\BolClient\Model\UpdateOfferPriceRequest | [optional] |
\Swagger\BolClient\Model\ProcessStatus
No authorization required
- Content-Type: application/vnd.retailer.v4+json, application/vnd.retailer.v4+xml
- Accept: application/vnd.retailer.v4+json, application/vnd.retailer.v4+xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\BolClient\Model\ProcessStatus updateOfferStock($offer_id, $body)
Update stock for offer by id
Update stock for offer by id.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\BolClient\Api\OffersApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$offer_id = "offer_id_example"; // string | Unique identifier for an offer.
$body = new \Swagger\BolClient\Model\UpdateOfferStockRequest(); // \Swagger\BolClient\Model\UpdateOfferStockRequest |
try {
$result = $apiInstance->updateOfferStock($offer_id, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OffersApi->updateOfferStock: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| offer_id | string | Unique identifier for an offer. | |
| body | \Swagger\BolClient\Model\UpdateOfferStockRequest | [optional] |
\Swagger\BolClient\Model\ProcessStatus
No authorization required
- Content-Type: application/vnd.retailer.v4+json, application/vnd.retailer.v4+xml
- Accept: application/vnd.retailer.v4+json, application/vnd.retailer.v4+xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]