Start report
POST /api/v1/shops/{shopId}/offer-reports
Triggers the creation of a new offer report for the specified shop id and parameters. If a report is already in progress for the specified shop id an error (409) will be thrown.
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
|
|
No |
Type of the offer report (ALL_OFFERS, ONLINE_OFFERS_ALL, ONLINE_OFFERS_PRODUCT_CATALOG, ONLINE_OFFERS_OPEN_CATALOG, OFFLINE_ALL, OFFLINE_OFFERS_PRODUCT_CATALOG, OFFLINE_OFFER_OPEN_CATALOG, MISSING_ATTRIBUTES_ONLY) |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
|
|
No |
Unique identifier of the report |
|
|
No |
Identifier of the shop for which the report is generated |
|
|
No |
Current status of the report (PROCESSING, FAILED, SUCCESSFUL) |
|
|
No |
Timestamp when report generation started |
|
|
Yes |
Timestamp when report generation finished |
Example request
$ curl 'https://businessapi.idealo.com/api/v1/shops/12345/offer-reports' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <access-token>' \
-d '{"offerReportType":"ALL_OFFERS"}'
POST /api/v1/shops/12345/offer-reports HTTP/1.1
Content-Type: application/json
Authorization: Bearer <access-token>
Content-Length: 32
Host: businessapi.idealo.com
{"offerReportType":"ALL_OFFERS"}
Get report
GET /api/v1/shops/{shopId}/offer-reports/{reportId}
Returns the current status of the specified report.
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
|
Integer |
No |
Identifier of the shop |
|
UUID |
No |
Unique identifier of the report |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
|
|
No |
Unique identifier of the report |
|
|
No |
Identifier of the shop for which the report is generated |
|
|
No |
Current status of the report (PROCESSING, FAILED, SUCCESSFUL) |
|
|
No |
Timestamp when report generation started |
|
|
Yes |
Timestamp when report generation finished |
Example request
$ curl 'https://businessapi.idealo.com/api/v1/shops/12345/offer-reports/6d04c658-9a9f-4428-8fbb-fbc46d138efe' -i -X GET \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <access-token>'
GET /api/v1/shops/12345/offer-reports/6d04c658-9a9f-4428-8fbb-fbc46d138efe HTTP/1.1
Content-Type: application/json
Authorization: Bearer <access-token>
Host: businessapi.idealo.com
Download report
GET /api/v1/shops/{shopId}/offer-reports/{reportId}/download
Downloads the report for the specified report id.
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
|
Integer |
No |
Identifier of the shop |
|
UUID |
No |
Unique identifier of the report |
Example request
$ curl 'https://businessapi.idealo.com/api/v1/shops/12345/offer-reports/6d04c658-9a9f-4428-8fbb-fbc46d138efe/download' -i -X GET \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <access-token>'
GET /api/v1/shops/12345/offer-reports/6d04c658-9a9f-4428-8fbb-fbc46d138efe/download HTTP/1.1
Content-Type: application/json
Authorization: Bearer <access-token>
Host: businessapi.idealo.com