I am trying to get the catalog upsert to function from postman. I have sent the following but I consistently get errors no matter what I do. I am not a programmer but it should not be this difficult. This is the first “error” I have received with valid info other than “field”. Not sure why square has such generic errors but here I am.
This is just junk data I am simply trying to test with. The error is the attribute does not exist but I can clearly see it when I search via the API.
{
“idempotency_key”: “c8b3e494-6715-45ab-9a15-070690591590”,
“batches”: [
{
“objects”: [
{
“type”: “ITEM”,
“id”: “5JYC6RW6UV2M7LBZISNAUTBT”,
“updated_at”: “2025-01-10T22:21:29.05Z”,
“created_at”: “2025-01-10T22:21:17.238Z”,
“version”: 1736547689050,
“is_deleted”: false,
“custom_attribute_values”: {
“test”: { // Ensure ‘test’ is the correct custom attribute key
“type”: “BOOLEAN”,
“boolean_value”: false
}
},
“present_at_all_locations”: true,
“item_data”: {
“name”: “Member’s Mark Ultra Premium 2-Ply Toilet Paper 9 rolls, 235 sheets/roll”,
“description”: “Get a comfortable, confident clean with Member’s Mark Ultra Premium Bath Tissue, 2-Ply Large Roll (235 sheets, 9 rolls)…”,
“is_taxable”: true,
“variations”: [
{
“type”: “ITEM_VARIATION”,
“id”: “WDFDD4TYXNNGLFCFFHW6UTS7”,
“updated_at”: “2025-01-10T22:21:29.05Z”,
“created_at”: “2025-01-10T22:21:17.238Z”,
“version”: 1736547689050,
“is_deleted”: false,
“present_at_all_locations”: true,
“item_variation_data”: {
“item_id”: “5JYC6RW6UV2M7LBZISNAUTBT”,
“name”: “Regular”,
“ordinal”: 0,
“pricing_type”: “FIXED_PRICING”,
“price_money”: {
“amount”: 999,
“currency”: “USD”
},
“location_overrides”: [
{
“location_id”: “LZY446J0T4PV8”,
“track_inventory”: true,
“sold_out”: true
}
],
“track_inventory”: true,
“sellable”: true,
“stockable”: true,
“channels”: [
“CH_tRkniwWMIsnjtCfQQd7CBggmMBMG2nsvQmofYRlQuYC”
]
}
}
],
“product_type”: “REGULAR”,
“ecom_available”: true,
“ecom_visibility”: “VISIBLE”,
“description_html”: “Get a comfortable, confident clean with Member's Mark Ultra Premium Bath Tissue…”,
“description_plaintext”: “Get a comfortable, confident clean with Member's Mark Ultra Premium Bath Tissue…”,
“channels”: [
“CH_tRkniwWMIsnjtCfQQd7CBggmMBMG2nsvQmofYRlQuYC”
],
“is_archived”: false
}
},
{
“type”: “ITEM”,
“id”: “UJ63HTJZCDPLVK64LVKMF3ZD”,
“updated_at”: “2025-01-10T22:31:16.535Z”,
“created_at”: “2025-01-10T22:26:50.382Z”,
“version”: 1736548276535,
“is_deleted”: false,
“present_at_all_locations”: true,
“item_data”: {
“name”: “Wonder Classic White Bread 20 oz.”,
“description”: “Experience the wonder of Wonder Classic White Bread 20 oz.! Indulge in its soft texture and savor the fresh aroma…”,
“is_taxable”: true,
“variations”: [
{
“type”: “ITEM_VARIATION”,
“id”: “UZMEH5DFNK26CL62FBQ34LWZ”,
“updated_at”: “2025-01-10T22:27:20.287Z”,
“created_at”: “2025-01-10T22:26:50.382Z”,
“version”: 1736548040287,
“is_deleted”: false,
“present_at_all_locations”: true,
“item_variation_data”: {
“item_id”: “UJ63HTJZCDPLVK64LVKMF3ZD”,
“name”: “Regular”,
“ordinal”: 1,
“pricing_type”: “FIXED_PRICING”,
“price_money”: {
“amount”: 300,
“currency”: “USD”
},
“sellable”: true,
“stockable”: true,
“channels”: [
“CH_tRkniwWMIsnjtCfQQd7CBggmMBMG2nsvQmofYRlQuYC”
]
}
}
],
“product_type”: “REGULAR”,
“skip_modifier_screen”: false,
“ecom_available”: true,
“ecom_visibility”: “VISIBLE”,
“pickup_fulfillment_preferences_id”: “fprefs_1287zrd12p106k38na6x95u9u”,
“delivery_fulfillment_preferences_id”: “fprefs_1287zrgn7zwitxk72iytbjqdy”,
“description_html”: “Experience the wonder of Wonder Classic White Bread 20 oz.! Indulge in its soft texture and savor the fresh aroma…”,
“description_plaintext”: “Experience the wonder of Wonder Classic White Bread 20 oz.! Indulge in its soft texture and savor the fresh aroma…”,
“channels”: [
“CH_tRkniwWMIsnjtCfQQd7CBggmMBMG2nsvQmofYRlQuYC”
],
“is_archived”: false
}
}
]
}
]
}
Any help would be appreciated.