This topic provides developers with step-by-step instructions for exporting product pricing data in CSV format using Offers export API endpoints. It includes initiating an export request and downloading a CSV file containing product prices, enabling seamless integration with pricing analytics, inventory management, or external reporting tools.
Exporting product pricing data as a CSV file involves three main steps:
exportId
and configure filters to target specific data.exportId
to check the progress and retrieve the fileId
after the export is complete.fileId
, obtain a download link to retrieve the CSV file.You can the refine the data included in your export by specifying filters in the filters
array. If you leave the array empty, all data is included. The following table describes the parameters for filtering and the functions of each parameter:
Parameter | Description |
---|---|
field | Specifies the data type used to search. Use priceType to set it as the search criteria. |
value | Specifies the exact value for the selected field . If priceType is used as field , you must enter the corresponding priceType value for this parameter. |
operator | Specifies how the value is applied to the field . If the field is priceType and the operator is set to EQUAL , all products with the specified value are included in the search result. |
The following table provides detailed information for the two different data types:
CALCULATED_PRICE
: If the data type you want to export is CALCULATED_PRICE
, use the following field
, operator
, and value
:
field | operator | value |
---|---|---|
priceType | EQUAL | Filter your data by BASE or SALE price. If the filters array in the request body is empty, both prices are included in the CSV export. |
priceListIds | IN | Filter your data by a list of priceListIds by including them in an array in the request body. If the filters array is empty, the data is based on the default priceList . |
calculationTime | EQUAL | Filter your data by an ISO timestamp to specify when the price should be calculated. The provided timestamp is used for price determination. If the filters array is empty, the price is based on the CSV execution time. |
REDEMPTION
: If the data type you want to export is REDEMPTION
, use the following field
, operator
, and value
:
field | operator | value |
---|---|---|
promoCode | EQUAL | Filter your data by redeemed promotion code. |
userId | EQUAL | Filter your data by provided user ID. |
email | EQUAL | Filter your data by provided email. |
orderId | EQUAL | Filter your data by provided order ID. |
redeemedAt |
| Filter data based on the provided redemption date. If the operator is:
|
storeId | EQUAL | Filter data based on case-insensitive promotion titles. |
promotionStatus | EQUAL | Filter data based on the specified promotion status:
|
We recommend not to seach for all the REDEMPTION
data by leaving the filters
array empty.
Submit a POST request including the type
, such as CALCULATED_PRICE
or REDEMPTION
with any required filters
.
The duration for this process increases with the amount of data being exported. The initiate offers export endpoint initiates a CSV export request and generates an exportId
. The following example shows a POST request with the request body set to type
as REDEMPTION
, searching for storeId
with the value store001
:
Click here to expand and see the request payload.
A successful request returns the following response:
Click here to expand and see the response.
fileId
After initiating the export request, use the exportId
generated in step 1 to retrieve details of the request. You can view the export details, such as startedAt
and endedAt
times, as well as the totalDataExported
. The export request might take up to 10 hours.
1.Submit a GET request using the exportId
endpoint to check the export status to retrieve the fileId
.
status
is COMPLETED
, use the fileId
in the download the exported CSV file step to download the CSV file.Use the following GET request to retrieve the details of an export request, including its status and fileId
:
Click here to expand and see the request payload.
A successful request returns the following response:
Click here to expand and see the response.
status: COMPLETED
before moving to the next step. If you don’t receive a status
of COMPLETED
, you won’t get a complete export file.After retrieving fileId
from step 2, include it in the request body of the download exported CSV file endpoint to generate a temporary URL for downloading the file as shown in the following request:
Click here to expand and see the request payload.
A successful request returns the following response with a URL used to download your file:
Click here to expand and see the response.
You can copy and paste the URL from the response into your browser’s address bar to download your file.
You can include more than one field
in the filters
array as long as you are filtering single data type. Using more than one field
allows you to refine the search results to meet all of the specified search conditions.
You can expand the following example of a POST request to initiate an export request with more than one field
. In the following example, the request filters CALCULATED_PRICE
by both priceType
and priceListIds
:
Click here to expand and see the request payload.
A successful request returns the following response:
Click here to expand and see the response.
If you have initiated multiple export requests, you can retrieve details of all export requests using the Get all export requests endpoint. A successful request returns an array containing details of all export request details, including the respective fieldId
values. You can expand the following example to see the GET response:
Click here to expand and see the response.
EXPORT_CALCULATED_PRICE_ERROR
If you get the EXPORT_CALCULATED_PRICE_ERROR
error after initiating an export request, resubmit the request. If the problem persists, contact fabric support.
If your exported CSV is incomplete, use the get export request endpoint and ensure that the status
is marked as COMPLETED
. If the status
remains IN_PROGRESS
after the 10-hours, try the request again or contact fabric support.
The download link is valid for only 5 minutes. If the link has expired, generate the link again using the download exported CSV file endpoint. If the problem persists, contact fabric support.
This topic provides developers with step-by-step instructions for exporting product pricing data in CSV format using Offers export API endpoints. It includes initiating an export request and downloading a CSV file containing product prices, enabling seamless integration with pricing analytics, inventory management, or external reporting tools.
Exporting product pricing data as a CSV file involves three main steps:
exportId
and configure filters to target specific data.exportId
to check the progress and retrieve the fileId
after the export is complete.fileId
, obtain a download link to retrieve the CSV file.You can the refine the data included in your export by specifying filters in the filters
array. If you leave the array empty, all data is included. The following table describes the parameters for filtering and the functions of each parameter:
Parameter | Description |
---|---|
field | Specifies the data type used to search. Use priceType to set it as the search criteria. |
value | Specifies the exact value for the selected field . If priceType is used as field , you must enter the corresponding priceType value for this parameter. |
operator | Specifies how the value is applied to the field . If the field is priceType and the operator is set to EQUAL , all products with the specified value are included in the search result. |
The following table provides detailed information for the two different data types:
CALCULATED_PRICE
: If the data type you want to export is CALCULATED_PRICE
, use the following field
, operator
, and value
:
field | operator | value |
---|---|---|
priceType | EQUAL | Filter your data by BASE or SALE price. If the filters array in the request body is empty, both prices are included in the CSV export. |
priceListIds | IN | Filter your data by a list of priceListIds by including them in an array in the request body. If the filters array is empty, the data is based on the default priceList . |
calculationTime | EQUAL | Filter your data by an ISO timestamp to specify when the price should be calculated. The provided timestamp is used for price determination. If the filters array is empty, the price is based on the CSV execution time. |
REDEMPTION
: If the data type you want to export is REDEMPTION
, use the following field
, operator
, and value
:
field | operator | value |
---|---|---|
promoCode | EQUAL | Filter your data by redeemed promotion code. |
userId | EQUAL | Filter your data by provided user ID. |
email | EQUAL | Filter your data by provided email. |
orderId | EQUAL | Filter your data by provided order ID. |
redeemedAt |
| Filter data based on the provided redemption date. If the operator is:
|
storeId | EQUAL | Filter data based on case-insensitive promotion titles. |
promotionStatus | EQUAL | Filter data based on the specified promotion status:
|
We recommend not to seach for all the REDEMPTION
data by leaving the filters
array empty.
Submit a POST request including the type
, such as CALCULATED_PRICE
or REDEMPTION
with any required filters
.
The duration for this process increases with the amount of data being exported. The initiate offers export endpoint initiates a CSV export request and generates an exportId
. The following example shows a POST request with the request body set to type
as REDEMPTION
, searching for storeId
with the value store001
:
Click here to expand and see the request payload.
A successful request returns the following response:
Click here to expand and see the response.
fileId
After initiating the export request, use the exportId
generated in step 1 to retrieve details of the request. You can view the export details, such as startedAt
and endedAt
times, as well as the totalDataExported
. The export request might take up to 10 hours.
1.Submit a GET request using the exportId
endpoint to check the export status to retrieve the fileId
.
status
is COMPLETED
, use the fileId
in the download the exported CSV file step to download the CSV file.Use the following GET request to retrieve the details of an export request, including its status and fileId
:
Click here to expand and see the request payload.
A successful request returns the following response:
Click here to expand and see the response.
status: COMPLETED
before moving to the next step. If you don’t receive a status
of COMPLETED
, you won’t get a complete export file.After retrieving fileId
from step 2, include it in the request body of the download exported CSV file endpoint to generate a temporary URL for downloading the file as shown in the following request:
Click here to expand and see the request payload.
A successful request returns the following response with a URL used to download your file:
Click here to expand and see the response.
You can copy and paste the URL from the response into your browser’s address bar to download your file.
You can include more than one field
in the filters
array as long as you are filtering single data type. Using more than one field
allows you to refine the search results to meet all of the specified search conditions.
You can expand the following example of a POST request to initiate an export request with more than one field
. In the following example, the request filters CALCULATED_PRICE
by both priceType
and priceListIds
:
Click here to expand and see the request payload.
A successful request returns the following response:
Click here to expand and see the response.
If you have initiated multiple export requests, you can retrieve details of all export requests using the Get all export requests endpoint. A successful request returns an array containing details of all export request details, including the respective fieldId
values. You can expand the following example to see the GET response:
Click here to expand and see the response.
EXPORT_CALCULATED_PRICE_ERROR
If you get the EXPORT_CALCULATED_PRICE_ERROR
error after initiating an export request, resubmit the request. If the problem persists, contact fabric support.
If your exported CSV is incomplete, use the get export request endpoint and ensure that the status
is marked as COMPLETED
. If the status
remains IN_PROGRESS
after the 10-hours, try the request again or contact fabric support.
The download link is valid for only 5 minutes. If the link has expired, generate the link again using the download exported CSV file endpoint. If the problem persists, contact fabric support.