Orders send it with orders API, have all items as "Uncategorized"

I have an integration where I send orders from a mobile app. All of the items in the orders are coming in as “uncategorized” Is there a way to assign a category to these items when I send the order in? I don’t see a way to do it in the API docs, but I might be missing it. Screenshot is attached from the Category Sales report.

:wave: 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:
https://developer.squareup.com/docs/squarebridge/business-central/onboard

Additional Documentation

Square Developer
Orders API: How It Works
Generate Test Catalog Items

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.

To assign a category to items in an order, you need to do it at the item level in your catalog, not at the order level. When you create or update an item in your catalog using the Catalog API, you can set the category_id field to the ID of the category you want to assign to the item. Then, when you create an order with that item, the item will be associated with its assigned category. Please note that the category must already exist in your catalog before you can assign it to an item.

This answer was reviewed by @Bryan-Square.