Real-time prices
Through this method we can calculate the prices of one or several products, for one or multiple dates of access.
Access method
Section titled “Access method”POST /realTimePrices
Request structure
Section titled “Request structure”ProductIds: (list). Array of product identifiers.(string): Product identifier.
AccessDates: (string). Array of access dates we want to query. ISO 8601 format (yyyy-MM-dd).(date): Dates to query.
StartDate: (date). Start of the access date range we want to query. ComplementsAccessDatesand requiresEndDateto be specified. ISO 8601 format (yyyy-MM-dd).EndDate: (date). End of the access date range we want to query. ComplementsAccessDatesand requiresStartDateto be specified. ISO 8601 format (yyyy-MM-dd).CombinedProducts: (list). Array of combined products.CombinedProductId: (string). Combined product identifier.Products: (list). Array of products included in the combined product.ProductId: (string). Product identifier.AccessDate: (date). Access date. ISO 8601 format (yyyy-MM-dd).
Request examples
Section titled “Request examples”{ "ProductIds": [ "dj48vjsyufvyu", "ajr7v0alt62hl" ], "AccessDates": [ "2020-01-02", "2022-05-15" ]}{ "ProductIds": [ "dj48vjsyufvyu" ], "StartDate": "2020-01-02", "EndDate": "2020-01-04"}{ "CombinedProducts": [ { "CombinedProductId": "iudhbfvifebvi", "Products": [ { "ProductId": "jiufdv80querb", "AccessDate": "2022-05-03" }, { "ProductId": "349u8g870r3vb", "AccessDate": "2022-05-05" } ] } ]}Response structure
Section titled “Response structure”-
ProductsRealTimePrices: (list). Array of real-time prices.-
ProductId: (string). Product identifier. -
AccessDate: (date). Access date. ISO 8601 format (yyyy-MM-dd). -
Price: (decimal). Price at which the product should be sold. -
PriceMode: (byte). Price type. -
CombinedProductId: (string). Combined product identifier. -
CombinedProductProducts: (string). Array of products included in the combined product.ProductId: (string). Product identifier.AccessDate: (date). Access date. ISO 8601 format (yyyy-MM-dd).
-
Success(boolean): value that indicates whether the call was processed correctly or not. -
Timestamp(dateTime): time at which the request was processed. ISO 8601 format (yyyy-MM-ddThh:mm:ss.fffffff). -
ErrorMessage(string): error message explaining why the request was not successful. If it was correct, it will returnnull. -
ErrorCodes(string[]): list of codes that identify the errors that occurred in the call. -
ErrorEntityBreakDown(list): list that contains objects with the name and ID in case of error.Id(string): identifierName(string): related name of the identifier.
-
-
Success(boolean): value that indicates whether the call was processed correctly or not. -
Timestamp(dateTime): time at which the request was processed. ISO 8601 format (yyyy-MM-ddThh:mm:ss.fffffff). -
ErrorMessage(string): error message explaining why the request was not successful. If it was correct, it will returnnull. -
ErrorCodes(string[]): list of codes that identify the errors that occurred in the call. -
ErrorEntityBreakDown(list): list that contains objects with the name and ID in case of error.Id(string): identifierName(string): related name of the identifier.
Response examples
Section titled “Response examples”{ "ProductsRealTimePrices": [ { "ProductId": "dj48vjsyufvyu", "AccessDate": "2020-01-02", "Price": 29, "PriceMode": 1, "Success": true, "Timestamp": "2022-02-18T17:02:27.8165916" }, { "ProductId": "dj48vjsyufvyu", "AccessDate": "2022-05-15", "Price": 35, "PriceMode": 1, "Success": true, "Timestamp": "2022-02-18T17:02:27.8165916" }, { "ProductId": "ajr7v0alt62hl", "AccessDate": "2020-01-02", "Price": 18, "PriceMode": 1, "Success": true, "Timestamp": "2022-02-18T17:02:27.8165916" }, { "ProductId": "ajr7v0alt62hl", "AccessDate": "2022-05-15", "Price": 22, "PriceMode": 1, "Success": true, "Timestamp": "2022-02-18T17:02:27.8165916" } ], "Success": true, "Timestamp": "2022-02-18T17:02:27.8165916"}{ "ProductsRealTimePrices": [ { "ProductId": "dj48vjsyufvyu", "AccessDate": "2020-01-02", "Price": 29, "PriceMode": 1, "Success": true, "Timestamp": "2022-02-18T17:02:27.8165916" }, { "ProductId": "dj48vjsyufvyu", "AccessDate": "2022-05-03", "Price": 35, "PriceMode": 1, "Success": true, "Timestamp": "2022-02-18T17:02:27.8165916" }, { "ProductId": "dj48vjsyufvyu", "AccessDate": "2020-01-04", "Price": 20, "PriceMode": 1, "Success": true, "Timestamp": "2022-02-18T17:02:27.8165916" } ], "Success": true, "Timestamp": "2022-02-18T17:02:27.8165916"}{ "ProductsRealTimePrices": [ { "CombinedProductId": "iudhbfvifebvi", "CombinedProductProducts": [ { "ProductId": "jiufdv80querb", "AccessDate": "2022-05-03" }, { "ProductId": "349u8g870r3vb", "AccessDate": "2022-05-05" } ],
"Price": 59.54, "PriceMode": 1, "Success": true, "Timestamp": "2022-02-18T17:02:27.8165916" } ], "Success": true, "Timestamp": "2022-02-18T17:02:27.8165916"}