To list the user defined custom fields.
Last updated 4 months ago
Was this helpful?
List custom fields
Below is a sample cURL to list custom fields.
POST
apikey*
String
Authentication token
module
Type of module,
Valid module are:
sales and customers.
if not provided all module fields are listed,
{ "status_code": "1", "status_message": "Success", "datetime": "2024-09-30 17:04:42", "data": [ { "id": "oyESErpn5eM/lQZPgEvxRw==", "attribute_key": "prescription_id", "module": "sales" }, { "id": "J7kwRmvgO/93drQrS09DjA==", "attribute_key": "appointment_id", "module": "sales" }, { "id": "zZBjQtv8YC8gzeDpmzakxg==", "attribute_key": "zipcode", "module": "sales" } ] }
{ "status_code": "404", "status_message": "Invalid API Key", "datetime": "2024-09-30 17:11:28", "data": null }
{{apiUrl}}custom_fields/