Create custom field

This API is used to create a custom field for a particular org.

📘

Note

  • Create/Update reward: Add a custom field in the payload which will be mapped to that reward with the scope REWARD
  • Create/Update promotion: Add a custom field in the payload which will be mapped to that reward with the scope CATALOGUE_PROMOTION

👍

Note

  • For detailed information about our APIs and for hands-on testing, refer documentation in API overview and step-by-step guide on making your first API call in Make your first API call .
  • Start time and end time are in UTC time zone

Prerequisites

  • Authentication: Basic authentication
  • Default access group

Resource information

URI/api_gateway/rewards/core/v1/brand/customfield
HTTP MethodPOST
PaginationNo
Batch supportNo
Rate limit informationNone

API endpoint example

https://eucrm.cc.capillarytech.com/api_gateway/rewards/core/v1/brand/customfield

Request body parameters

Parameter NameData TypeDescription
name*StringName of the custom field.
orgIdStringOrg identifier of the org.
description*StringDescription of the field.
isMandatoryBooleanIndicates if the field is mandatory.
isActiveBooleanStatus of the field. Ex: true.
scope*EnumPass scope as REWARD in case of adding custom fields in creating/updating reward and pass CATALOGUE_PROMOTION in case of adding custom fields in updating/creating a promotion.
Supported values: REWARD, CATALOGUE_PROMOTION.
defaultValueStringA user-defined default value associated with the custom field.
dataType*StringType of data for the field. Ex: String.
{
    "orgId": 100458,
    "name": "CF1A112",
    "description": "CF1A112",
    "isMandatory": false,
    "isActive": true,
    "scope": "REWARD",
    "defaultValue": null,
    "dataType": "STRING"
}

Response parameters

Parameter NameData TypeDescription
idIntegerUnique identifier for the custom field.
orgIdIntegerOrg identifier of the org.
nameStringName of the custom field.
descriptionStringDescription of the custom field.
isMandatoryBooleanIndicates if the field is mandatory.
isActiveBooleanStatus of the field.
scopeStringScope of the field.
defaultValueStringDefault value of the field.
dataTypeStringType of data for the field.
createdByIntegerUser identifier who created the field.
createdOnDateCreation date and time of the field.
lastUpdatedByIntegerUser identifier who last updated the field.
lastUpdatedOnDateLast update date and time of the field.
{
    "id": 209,
    "orgId": 100458,
    "name": "CF1A112",
    "description": "CF1A112",
    "isMandatory": false,
    "isActive": true,
    "scope": "REWARD",
    "defaultValue": null,
    "dataType": "STRING",
    "createdBy": 75086856,
    "createdOn": null,
    "lastUpdatedBy": 75086856,
    "lastUpdatedOn": null
}
Language
Authorization
Basic
base64
:
URL
Click Try It! to start a request and see the response here!