Commerce
addOrderProperty
Add Order Property
Add a column to a shop's orders: "Receipt number", "Cake finish", "Table".
Arguments
namestringrequiredWhat the shop calls it, e.g. "Receipt number".optionsstring[]optionalChoices, for a select or multi_select property only. Ignored on every other type.spacestringoptionalSpace id or slug (see listPageSpaces) for a Space-owned shop. Omit for your personal shop.typestringrequiredAllowed values: text, long_text, select, multi_select, number, money, date, date_range, checkbox, url, email, phone, contact, user.
Returns
The registry does not declare a return shape.
Ask for it
The Cloud routes these requests to this verb.
- add a receipt number field to orders
- put a property on our orders
- we need a place to record X on every order
Pair it with
The verbs that finish the job.