Item reporting category appended to item categories

Upserting a catalog item as an entry in one category (a sub-category) and reporting category set to the parent category results in the item being an entry in the parent category in addition to the sub-category. The ordinal in the parent category is set to that of the ordinal in the reporting category which inevitably causes a collision with items actually at that ordinal in the parent category. (This is a recent regression since it never used to do this.)

For example, upsert request:

"categories": [
  {
    "id": "Y",
    "ordinal": 0
  }
],
"reporting_category": {
  "id": "X",
  "ordinal": 0
}

results in the following:

"categories": [
  {
    "id": "X",
    "ordinal": 0
  },
  {
    "id": "Y",
    "ordinal": 0
  }
],
"reporting_category": {
  "id": "X",
  "ordinal": 0
}

Why is the reporting category now affecting catalog categorisation?

:waving_hand: I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:

Additional Documentation

Add a Catalog Item
Synchronize a Catalog with an External Platform
Design a Catalog

If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.