List Custom Fields

To list the user defined custom fields.

List custom fields

Below is a sample cURL to list custom fields.

curl --location 'localhost:4000/v1/custom_fields/list_user_custom_fields' \
--header 'Content-Type: application/json' \
--data '{
  "apikey":"**************",
  "module": "sales"
}
'

POSThttps://api.evitalrx.in/v1/custom_fields/list_user_custom_fields

Request Body

NameTypeDescription

apikey*

String

Authentication token

module

String

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"
        }
    ]
}

Last updated