Add Custom Fields

To add user defined custom fields with attribute key and module

Add custom fields,

Maximum limit for an entity to add custom fields is 20

Below is a sample cURL request to add some custom fields.

curl --location 'https://api.evitalrx.in/v1/custom_fields/add_update_custom_field' \
--header 'Content-Type: application/json' \
--data '{
  "apikey":"***************",
  "custom_fields": [
     {
      "attribute_key": "patient_ipd_id",
      "module":"customers"
    },
    {
      "attribute_key": "patient_mapped_id ",
      "module":"customers"
    }
    ],
  "action": "add"
}
'

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

Request Body

NameTypeDescription

apikey*

String

Authentication token

custom_fields

Array

Array of custom field object For ex: {attribute_key: string, module: string } Valid module are: sales and customers

action

String

add

{
    "status_code": "1",
    "status_message": "Success",
    "datetime": "2024-10-01 10:36:31",
    "data": null
}

Last updated