Skip to content
Wazapin
Esc
navigateopen⌘Jpreview

POST /v1/commerce/products/{productID}/options

POST/v1/commerce/products/{productID}/options
Authorization
bearerAuthbearerAuthrequired
or
apiKeyAuthapiKeyAuthrequired
Path parameters
productIDstringrequired
Request body
requiredapplication/json
choicesstring[] | null
namestringrequired
option_typestringrequired
Allowed:checkboxchoicetextdateupload
price_delta_amountinteger<int64>
requiredboolean
Responses
201Created
choicesstring[] | null
idstringrequired
namestringrequired
option_typestringrequired
price_delta_amountinteger<int64>required
product_idstringrequired
requiredbooleanrequired
defaultError
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
Request
curl -X POST "/v1/commerce/products/string/options" \
  -H "Content-Type: application/json" \
  -d '{
  "choices": [
    "string"
  ],
  "name": "string",
  "option_type": "checkbox",
  "price_delta_amount": 0,
  "required": true
}'
Response
{
  "choices": [
    "string"
  ],
  "id": "string",
  "name": "string",
  "option_type": "string",
  "price_delta_amount": 0,
  "product_id": "string",
  "required": true
}