Thank you for providing the sample API Request. Below is the API Request that I am sending to the BatchUpsertCatalogObjects endpoint of Catalog API.
After comparing your sample API Request with the API Request that I am sending, it looks like I am providing the required fields that the API needs. Could you help me spot my mistake in the API request below (used location Id and item Id from the sample above)?
{
"idempotency_key": "450c87d8-f81a-4cdc-a582-3ce1baab6582",
"batches": [
{
"objects": [
{
"type": "ITEM",
"id": "DYGVVZKXC445CNLSEMO7GYI6",
"present_at_all_locations": false,
"absent_at_location_ids": [
"T5Q6VBN7RC5P3"
],
"present_at_location_ids": [
"FBVX8TZZTE11P",
"3Z4V4WHQK64X9"
],
"version": 1713805326794,
"item_data": {
"name": "Not available in all locations",
"description_html": "Not available in all locations",
"categories": [
{
"id": "6THUX6BOFNWX7XFVWXT76898"
}
],
"variations": [
{
"type": "ITEM_VARIATION",
"id": "7URWJFVADIYFMQEWYT7DWRAG",
"present_at_all_locations": false,
"absent_at_location_ids": [
"T5Q6VBN7RC5P3"
],
"present_at_location_ids": [
"FBVX8TZZTE11P",
"3Z4V4WHQK64X9"
],
"item_variation_data": {
"item_id": "DYGVVZKXC445CNLSEMO7GYI6",
"name": "Regular",
"sku": "F710027",
"pricing_type": "FIXED_PRICING",
"price_money": {
"amount": 200,
"currency": "USD"
},
},
"version": 1713805326794
}
]
}
}
]
}
]
}