Retrieve a category
Retrieves a category and its options. Not every combination of option values can be made: send the values you have decided, in any number, and each value comes back with available, whether some product that can be made has that value together with every value you sent for the other options.
Walk to any product without guessing, one call for each value you add:
- Call with
selections: {}. If the returnedselectionssuits you, pass it toproducts.create. - Otherwise pick a value with
available: truefor an option you have not sent, add it toselections, and call again. - Repeat until
selectionssuits you.
Choosing only available values never dead-ends, and every product that can be made is reachable in any order. If the values you send cannot be made together, canManufacture is false: the values you sent that are marked unavailable are the conflict, and the available values of those options are the ways out.
Authorizations
An API key from Settings → API keys in Arcade Studio.
Body
Response
OK
Category ID, from categories.list
1A complete selection that keeps every value you sent: each open option takes its default where that can still be made, else another available value. Pass it to products.create when canManufacture is true
Whether selections can be made; products.create uses the lowest-priced maker that can make it. False when the values you sent cannot be made together, and selections then fills the open options with their defaults