Newly generated clients for the Sales API will contain additional parameter
May 16th, 2025 by JackE_Amazon
Starting May 28, 2025, the getOrderMetrics
operation in the Sales API will have a new parameter amazonProgram
. This parameter is not required, but clients generated from the May 28 release will have an additional parameter for which an argument will need to be supplied. This argument can be null
.
What action is required?
If your client is generated from the May 28, 2025 release, and your applications contains a method such as the following:
getOrderMetrics(List<String> marketplaceIds, String interval, String granularity, String granularityTimeZone, String buyerType, String fulfillmentNetwork, String firstDayOfWeek, String asin, String sku)
with an associated call pattern of:
getOrderMetrics(List.of("ATVPDKIKX0DER"), "2025-01-01:00:00.000Z--2025-01-31T00:00:00.000Z, "day", null, null, null, null, null, null)
Then you must update you call patterns to support an additional argument of AmazonHaul
or null
, for example:
getOrderMetrics(List.of("ATVPDKIKX0DER"), "2025-01-01:00:00.000Z--2025-01-31T00:00:00.000Z, "day", null, null, null, null, null, null, "AmazonHaul")
or
getOrderMetrics(List.of("ATVPDKIKX0DER"), "2025-01-01:00:00.000Z--2025-01-31T00:00:00.000Z, "day", null, null, null, null, null, null, null)