GET
/api/public/v1/customer-custom-fieldsList customer custom fields
List all custom field definitions for a business.
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
businessId | string | Required | Business to query. |
GETExample request
curl
curl -X GET "https://www.pxb.app/api/public/v1/customer-custom-fields" \
-H "X-Organization-Id: your_org_id" \
-H "X-API-Key: your_api_key"200Example response
json
{
"message": "Customer custom fields retrieved successfully!",
"content": {
"customFields": [
{
"id": "cf_1",
"name": "preferred_contact",
"type": "SELECT",
"label": "Preferred contact method"
}
]
}
}