Custom fields


Custom fields

The documentation explains how to deals with custom fields in Skalin APIs.

Info

Custom fields can be defined for Customer and Contact objects.

# Creating Custom Fields

Skalin's APIs offer a way to define your own fields in order to complete the 360 ​​vision with your business data.

Custom field creation procedure :

  • Go to General Settings "Settings > General"
  • Click on "Add field" in the Customer or Contact section as needed.
  • Name your custom field. The name may be changed later.
  • Select the field type.
  • Finally, click on "Create custom field".

Warning

The custom field type cannot be changed later due to technical constraints on the data already ingested.

Creating Skalin Custom Fields

# Feed custom fields via API

Custom fields are simple properties added to Customer or Contact objects. It is necessary to use the Skalin identifier of the custom field in order to define it. This unique identifier is available in the defined custom fields view.

Skalin Custom Field Identifier

Creating a customer with a custom field example

axios({
  method: 'POST',
  url: 'https://api.skalin.io/v1/customers?client_id={{ClientId}}',
  headers: {
    'Authorization: Bearer {{accessToken}}'
  },
  params: {
    refId: '{{refId}}',
    domain: '{{domain}}',
    name: '{{name}}',
    stage: '{{stage}}',
    a43eebc6971ace40: '{{Custom field content of id a43eebc6971ace40}}'
  }
});
1
2
3
4
5
6
7
8
9
10
11
12
13
14

# Available data type

Custom fields have a data type that allows their validation / display / modification within the Skalin platform. Available data type are:

  • STRING : Character string with a maximum of 500 characters
  • NUMBER : Integer or float
  • CURRENCY : Currency display with the currency defined in the general settings
  • DATE : Date in format YYYY-MM-DD
  • DATETIME : Date with hours and minutes in UTC format (YYYY-MM-DDTHH:mm:ss)
  • BOOLEAN : Boolean "true" or "false" (false by default)
  • PERCENT : Percentage, an integer position between 0 and 100
  • URL : Url starting on "http(s): //" with a maximum size of 500 characters. Use a URL shortener if needed
  • USER : Skalin ID of one of your users
Contributors: Julien