Thanks for pointing out this confusing point in the docs. When creating a new Item, you must create at least one Variation for that Item in the same request. Note that you don't need to specify an Item ID for the Variation (it's automatically associated with the created Item). For example, providing the following JSON body to the Create Item endpoint creates a Popcorn Item with a single variation, Large.
{
"name": "Popcorn",
"description": "Crispy and delicious",
"variations": [
{
"name":"Large",
"pricing_type":"FIXED_PRICING",
"price_money": {
"amount": 500,
"currency_code": "USD"
}
}
]
}
Note that you also don't need to include an Item ID in your request body when creating a Variation for an existing Item with the Create Variation endpoint, because you include the Item ID in the path of the request itself.