Get Custom Fields

This API retrieves a list of custom fields that have been created for the organisation specified in the API header. You can filter the list based on the scope, specifying the entity for which each custom field was created. For example, you can use the scope as STORE_CUSTOM_FIELDS and retrieve the custom fields created for the STORE entity.

API endpoint example

https://eu.intouch.capillarytech.com/v2/org/customFields

Prerequisites

  • Authentication - Basic Auth
    • User name: Capillary Intouch email ID of the admin user
    • Password: Intouch login password in MD5.

Resource information

URIv2/org/customFields
HTTP methodGET
Pagination supported?NA
Rate limitNA
Batch supportNA

Header Information

Both the headers are mandatory.

X-CAP-API-AUTH-KEYAuth Key for internal API
X-CAP-API-AUTH-ORG-IDOrg ID

Query Parameter


ParameterSupported Values
scope

(In small case)
- LOYALTY_REGISTRATION
- LOYALTY_TRANSACTION
- CUSTOMER_FEEDBACK
- POINTS_REDEMPTION
- VOUCHER_REDEMPTION
- ZONE_CUSTOM_FIELDS
- STORE_CUSTOM_FIELDS
- CUSTOM_FIELDS_DATA_LOG
- CHECK_IN_FEEDBACK
- CUSTOMER_PREFERENCES
- ADVANCE_FEEDBACK
- LOYALTY_LINE_ITEMS
- CUSTOMER_CARD
- TILL_CUSTOM_FIELDS
- ORG_CUSTOM_FIELD

Response Parameters

ParameterData TypeDescription
orgIdIntegerUnique identifier for the organisation associated with the custom field.
idIntegerUnique identifier for the custom field.
nameStringName of the custom field.
typeStringType of input expected for the custom field (e.g., text).
dataTypeStringData type of the custom field (e.g., STRING).
labelStringDisplay label for the custom field.
scopeStringScope indicating the entity associated with the custom field (e.g., ORG_CUSTOM_FIELD).
defaultValueStringDefault value for the custom field, if any.
phaseStringIndicates the phase or version in which the custom field is included. This is applicable for Instore and is not in use.
positionIntegerPosition or order of the custom field.
ruleStringConditional rule in Infix form to validate the custom field.
serverRuleStringServer-side validation rule in Infix form.
regexStringRegular expression pattern for validation, if applicable.
errorStringError message associated with validation failure.
isDisabledBooleanIndicates if the custom field is disabled (0 for enabled, 1 for disabled).
isCompulsoryBooleanIndicates if the custom field is mandatory (0 for optional, 1 for required).
disableAtServerBooleanIndicates if the custom field is disabled on the server side.
isUpdatableBooleanIndicates if the custom field can be updated after creation (0 for no, 1 for yes).
enableAuditTrailBooleanIndicates if changes to the custom field are tracked in the audit trail (0 for no, 1 for yes).
isPiiDataBooleanIndicates if the custom field contains Personally Identifiable Information (PII).
isPsiDataBooleanIndicates if the custom field contains Protected Sensitive Information (PSI).
helptextStringHelp text providing guidance on the usage of the custom field.
attrsStringAdditional attributes for the custom field, if any.

{
    "entity": [
        {
            "orgId": 50399,
            "id": 1906,
            "name": "age_group",
            "type": "text",
            "dataType": "String",
            "label": "Age Group",
            "scope": "LOYALTY_REGISTRATION",
            "defaultValue": "",
            "phase": "1",
            "position": 0,
            "rule": "",
            "serverRule": "",
            "regex": "",
            "error": "",
            "isDisabled": 0,
            "isCompulsory": 0,
            "disableAtServer": 0,
            "isUpdatable": 1,
            "enableAuditTrail": 0,
            "isPiiData": 0,
            "isPsiData": 0,
            "helptext": "",
            "attrs": ""
        },
        {
            "orgId": 50399,
            "id": 1905,
            "name": "anniversary",
            "type": "datepicker",
            "dataType": "String",
            "label": "Anniversary",
            "scope": "LOYALTY_REGISTRATION",
            "defaultValue": "",
            "phase": "1",
            "position": 0,
            "rule": "",
            "serverRule": "",
            "regex": "",
            "error": "",
            "isDisabled": 0,
            "isCompulsory": 0,
            "disableAtServer": 0,
            "isUpdatable": 1,
            "enableAuditTrail": 0,
            "isPiiData": 0,
            "isPsiData": 0,
            "helptext": "",
            "attrs": ""
        },
        {
            "orgId": 50399,
            "id": 1904,
            "name": "birthday",
            "type": "datepicker",
            "dataType": "String",
            "label": "Birthday",
            "scope": "LOYALTY_REGISTRATION",
            "defaultValue": "",
            "phase": "1",
            "position": 0,
            "rule": "",
            "serverRule": "",
            "regex": "",
            "error": "",
            "isDisabled": 0,
            "isCompulsory": 0,
            "disableAtServer": 0,
            "isUpdatable": 1,
            "enableAuditTrail": 0,
            "isPiiData": 0,
            "isPsiData": 0,
            "helptext": "",
            "attrs": ""
        },
        {
            "orgId": 50399,
            "id": 1929,
            "name": "Email base Color",
            "type": "text",
            "dataType": "STRING",
            "label": "Mail content",
            "scope": "ORG_CUSTOM_FIELD",
            "defaultValue": "#1234",
            "phase": "1",
            "position": 0,
            "rule": "",
            "serverRule": "",
            "regex": "",
            "error": "",
            "isDisabled": 0,
            "isCompulsory": 0,
            "disableAtServer": 0,
            "isUpdatable": 0,
            "enableAuditTrail": 0,
            "isPiiData": 0,
            "isPsiData": 0,
            "helptext": "",
            "attrs": ""
        },
        {
            "orgId": 50399,
            "id": 1930,
            "name": "Email base Color 1",
            "type": "text",
            "dataType": "STRING",
            "label": "Mail content",
            "scope": "ORG_CUSTOM_FIELD",
            "defaultValue": "#1234",
            "phase": "1",
            "position": 0,
            "rule": "",
            "serverRule": "",
            "regex": "",
            "error": "",
            "isDisabled": 0,
            "isCompulsory": 0,
            "disableAtServer": 0,
            "isUpdatable": 0,
            "enableAuditTrail": 0,
            "isPiiData": 0,
            "isPsiData": 0,
            "helptext": "",
            "attrs": ""
        },
        {
            "orgId": 50399,
            "id": 1931,
            "name": "Email base Color 2",
            "type": "text",
            "dataType": "STRING",
            "label": "Mail content",
            "scope": "ORG_CUSTOM_FIELD",
            "defaultValue": "#1234",
            "phase": "1",
            "position": 0,
            "rule": "",
            "serverRule": "",
            "regex": "",
            "error": "",
            "isDisabled": 0,
            "isCompulsory": 0,
            "disableAtServer": 0,
            "isUpdatable": 0,
            "enableAuditTrail": 0,
            "isPiiData": 0,
            "isPsiData": 0,
            "helptext": "",
            "attrs": ""
        },
        {
            "orgId": 50399,
            "id": 1958,
            "name": "Footer",
            "type": "text",
            "dataType": "STRING",
            "label": "Header color",
            "scope": "ORG_CUSTOM_FIELD",
            "defaultValue": "#1234",
            "phase": "1",
            "position": 0,
            "rule": "",
            "serverRule": "",
            "regex": "",
            "error": "",
            "isDisabled": 0,
            "isCompulsory": 0,
            "disableAtServer": 0,
            "isUpdatable": 0,
            "enableAuditTrail": 0,
            "isPiiData": 0,
            "isPsiData": 0,
            "helptext": "",
            "attrs": ""
        },
        {
            "orgId": 50399,
            "id": 1903,
            "name": "gender",
            "type": "text",
            "dataType": "String",
            "label": "Gender",
            "scope": "LOYALTY_REGISTRATION",
            "defaultValue": "",
            "phase": "1",
            "position": 0,
            "rule": "",
            "serverRule": "",
            "regex": "",
            "error": "",
            "isDisabled": 0,
            "isCompulsory": 0,
            "disableAtServer": 0,
            "isUpdatable": 1,
            "enableAuditTrail": 0,
            "isPiiData": 0,
            "isPsiData": 0,
            "helptext": "",
            "attrs": ""
        },
        {
            "orgId": 50399,
            "id": 1960,
            "name": "Header",
            "type": "text",
            "dataType": "STRING",
            "label": "Header color",
            "scope": "ORG_CUSTOM_FIELD",
            "defaultValue": "#1234",
            "phase": "1",
            "position": 0,
            "rule": "",
            "serverRule": "",
            "regex": "",
            "error": "",
            "isDisabled": 0,
            "isCompulsory": 0,
            "disableAtServer": 0,
            "isUpdatable": 0,
            "enableAuditTrail": 0,
            "isPiiData": 0,
            "isPsiData": 0,
            "helptext": "",
            "attrs": ""
        },
        {
            "orgId": 50399,
            "id": 1924,
            "name": "Org Secondary Color",
            "type": "text",
            "dataType": "String",
            "label": "Email header color",
            "scope": "ORG_CUSTOM_FIELD",
            "defaultValue": "#5678",
            "phase": "1",
            "position": 1,
            "rule": "",
            "serverRule": "",
            "regex": "",
            "error": "",
            "isDisabled": 0,
            "isCompulsory": 0,
            "disableAtServer": 0,
            "isUpdatable": 0,
            "enableAuditTrail": 0,
            "isPiiData": 0,
            "isPsiData": 0,
            "helptext": "",
            "attrs": ""
        },
        {
            "orgId": 50399,
            "id": 1902,
            "name": "pincode",
            "type": "text",
            "dataType": "String",
            "label": "Pincode",
            "scope": "LOYALTY_REGISTRATION",
            "defaultValue": "",
            "phase": "1",
            "position": 0,
            "rule": "",
            "serverRule": "",
            "regex": "",
            "error": "",
            "isDisabled": 0,
            "isCompulsory": 0,
            "disableAtServer": 0,
            "isUpdatable": 1,
            "enableAuditTrail": 0,
            "isPiiData": 0,
            "isPsiData": 0,
            "helptext": "",
            "attrs": ""
        },
        {
            "orgId": 50399,
            "id": 1899,
            "name": "trans_cf_a",
            "type": "text",
            "dataType": "String",
            "label": "",
            "scope": "LOYALTY_TRANSACTION",
            "defaultValue": "",
            "phase": "1",
            "position": 0,
            "rule": "",
            "serverRule": "",
            "regex": "",
            "error": "",
            "isDisabled": 0,
            "isCompulsory": 0,
            "disableAtServer": 0,
            "isUpdatable": 1,
            "enableAuditTrail": 0,
            "isPiiData": 0,
            "isPsiData": 0,
            "helptext": "",
            "attrs": ""
        },
        {
            "orgId": 50399,
            "id": 1900,
            "name": "trans_cf_b",
            "type": "text",
            "dataType": "Integer",
            "label": "",
            "scope": "LOYALTY_TRANSACTION",
            "defaultValue": "",
            "phase": "1",
            "position": 0,
            "rule": "",
            "serverRule": "",
            "regex": "",
            "error": "",
            "isDisabled": 0,
            "isCompulsory": 0,
            "disableAtServer": 0,
            "isUpdatable": 1,
            "enableAuditTrail": 0,
            "isPiiData": 0,
            "isPsiData": 0,
            "helptext": "",
            "attrs": ""
        },
        {
            "orgId": 50399,
            "id": 1901,
            "name": "trans_cf_c",
            "type": "text",
            "dataType": "Boolean",
            "label": "",
            "scope": "LOYALTY_TRANSACTION",
            "defaultValue": "",
            "phase": "1",
            "position": 0,
            "rule": "",
            "serverRule": "",
            "regex": "",
            "error": "",
            "isDisabled": 0,
            "isCompulsory": 0,
            "disableAtServer": 0,
            "isUpdatable": 1,
            "enableAuditTrail": 0,
            "isPiiData": 0,
            "isPsiData": 0,
            "helptext": "",
            "attrs": ""
        }
    ],
    "warnings": [],
    "errors": [],
    "success": true
}
{
    "entity": [
        {
            "orgId": 50399,
            "id": 1929,
            "name": "Email base Color",
            "type": "text",
            "dataType": "STRING",
            "label": "Mail content",
            "scope": "ORG_CUSTOM_FIELD",
            "defaultValue": "#1234",
            "phase": "1",
            "position": 0,
            "rule": "",
            "serverRule": "",
            "regex": "",
            "error": "",
            "isDisabled": 0,
            "isCompulsory": 0,
            "disableAtServer": 0,
            "isUpdatable": 0,
            "enableAuditTrail": 0,
            "isPiiData": 0,
            "isPsiData": 0,
            "helptext": "",
            "attrs": ""
        },
        {
            "orgId": 50399,
            "id": 1930,
            "name": "Email base Color 1",
            "type": "text",
            "dataType": "STRING",
            "label": "Mail content",
            "scope": "ORG_CUSTOM_FIELD",
            "defaultValue": "#1234",
            "phase": "1",
            "position": 0,
            "rule": "",
            "serverRule": "",
            "regex": "",
            "error": "",
            "isDisabled": 0,
            "isCompulsory": 0,
            "disableAtServer": 0,
            "isUpdatable": 0,
            "enableAuditTrail": 0,
            "isPiiData": 0,
            "isPsiData": 0,
            "helptext": "",
            "attrs": ""
        },
        {
            "orgId": 50399,
            "id": 1931,
            "name": "Email base Color 2",
            "type": "text",
            "dataType": "STRING",
            "label": "Mail content",
            "scope": "ORG_CUSTOM_FIELD",
            "defaultValue": "#1234",
            "phase": "1",
            "position": 0,
            "rule": "",
            "serverRule": "",
            "regex": "",
            "error": "",
            "isDisabled": 0,
            "isCompulsory": 0,
            "disableAtServer": 0,
            "isUpdatable": 0,
            "enableAuditTrail": 0,
            "isPiiData": 0,
            "isPsiData": 0,
            "helptext": "",
            "attrs": ""
        },
        {
            "orgId": 50399,
            "id": 1958,
            "name": "Footer",
            "type": "text",
            "dataType": "STRING",
            "label": "Header color",
            "scope": "ORG_CUSTOM_FIELD",
            "defaultValue": "#1234",
            "phase": "1",
            "position": 0,
            "rule": "",
            "serverRule": "",
            "regex": "",
            "error": "",
            "isDisabled": 0,
            "isCompulsory": 0,
            "disableAtServer": 0,
            "isUpdatable": 0,
            "enableAuditTrail": 0,
            "isPiiData": 0,
            "isPsiData": 0,
            "helptext": "",
            "attrs": ""
        },
        {
            "orgId": 50399,
            "id": 1960,
            "name": "Header",
            "type": "text",
            "dataType": "STRING",
            "label": "Header color",
            "scope": "ORG_CUSTOM_FIELD",
            "defaultValue": "#1234",
            "phase": "1",
            "position": 0,
            "rule": "",
            "serverRule": "",
            "regex": "",
            "error": "",
            "isDisabled": 0,
            "isCompulsory": 0,
            "disableAtServer": 0,
            "isUpdatable": 0,
            "enableAuditTrail": 0,
            "isPiiData": 0,
            "isPsiData": 0,
            "helptext": "",
            "attrs": ""
        },
        {
            "orgId": 50399,
            "id": 1924,
            "name": "Org Secondary Color",
            "type": "text",
            "dataType": "String",
            "label": "Email header color",
            "scope": "ORG_CUSTOM_FIELD",
            "defaultValue": "#5678",
            "phase": "1",
            "position": 1,
            "rule": "",
            "serverRule": "",
            "regex": "",
            "error": "",
            "isDisabled": 0,
            "isCompulsory": 0,
            "disableAtServer": 0,
            "isUpdatable": 0,
            "enableAuditTrail": 0,
            "isPiiData": 0,
            "isPsiData": 0,
            "helptext": "",
            "attrs": ""
        }
    ],
    "warnings": [],
    "errors": [],
    "success": true
}
Language
Credentials
Basic
base64
:
URL
Click Try It! to start a request and see the response here!