Hey @Bryan-Square and @goalight912 I am still having this issue.
The first time I run the automation, it works, but the second and subsequent times I get this issue.
I want to create new items to go in existing categories, not create new categories. Can you help me out with the syntax of that?
Thanks!
{
"batches": [
{
"objects": [
{
"id": "#{{1.id}}",
"type": "ITEM",
"present_at_all_locations": false,
"present_at_location_ids": [
"LJCAQQ7GEX7JZ"
],
"is_deleted": false,
"item_data": {
"categories": [
{
"ordinal": {{1.`Square Ordinal Depth (from Categories)`[]}},
"id": "{{1.`Square Category ID (from Categories)`[]}}"
}
],
"reporting_category": {
"id": "{{1.`Square Category ID (from Categories)`[]}}",
"ordinal": {{1.`Square Ordinal Depth (from Categories)`[]}}
},
"variations": [
{
"id": "#NEW{{1.id}}",
"type": "ITEM_VARIATION",
"item_variation_data": {
"item_id": "#{{1.id}}",
"price_money": {
"amount": {{round(1.`Price for Square API`)}},
"currency": "GBP"
},
"pricing_type": "FIXED_PRICING",
"sku": "{{1.`EAN for Automation`}}",
"upc": "{{1.`EAN for Automation`}}"
},
"present_at_all_locations": false,
"present_at_location_ids": [
"LJCAQQ7GEX7JZ"
]
}
],
"is_taxable": {{1.Taxable}},
"is_archived": false,
"product_type": "REGULAR",
"name": "{{1.Name}}"
}
}
]
}
],
"idempotency_key": "{{1.id}}{{timestamp}}"
}