List Custom Fields
Retrieve all custom fields for a product.Path Parameters
string
required
The unique identifier of the product
Response
boolean
Whether the request was successful
array
Array of custom field objects
Create Custom Field
Add a new custom field to a product.Path Parameters
string
required
The unique identifier of the product
Body Parameters
string
required
The name or label for the custom field. For
terms type fields, this should be a valid URL to your terms and conditions.string
default:"text"
The type of custom field. Options:
text- Single line text inputlong_text- Multi-line text areacheckbox- Checkbox inputterms- Terms acceptance (name must be a valid URL)file- File upload
boolean
default:"false"
Whether the field is required. Pass
"true" or "false" as a string.The
name parameter can also be passed as url or label for backwards compatibility.Response
boolean
Whether the request was successful
object
The created custom field object
Update Custom Field
Update the required status of a custom field.Path Parameters
string
required
The unique identifier of the product
string
required
The name of the custom field to update (not the ID)
Body Parameters
boolean
Whether the field is required. Pass
"true" or "false" as a string.Response
boolean
Whether the request was successful
object
The updated custom field object
Delete Custom Field
Remove a custom field from a product.Path Parameters
string
required
The unique identifier of the product
string
required
The name of the custom field to delete (not the ID)
Response
boolean
Whether the request was successful
Error Codes
Bad Request - Missing required parameters or invalid custom field name
Unauthorized - Invalid or missing access token
Forbidden - Insufficient permissions (requires
edit_products scope)Not Found - Product or custom field not found