Home / Basics / Highnote API
Warning: For compliance and security reasons, do not use CustomFields
to store PCI or PII data.
FinancialAccount
and PaymentCard
objects implement CustomFields
, which allow you to add key-value pairs to the object.
CustomFields
is a set of key-value pairs that include a creation date and an updated date. Each Highnote CustomFields
object can store 20 alpha-numeric keys of 40 characters. The pairing value can be an alpha-numeric string of up to 255 characters. CustomFields
are stored and returned in plain text.
Some example use cases for using custom fields are:
CustomFields
search, look up all objects relating to a customer in your systemYou can use the following node query to find customFields
on a financial account:
You can also use a nodeByCustomFields
query with a CustomFieldsFilter
to look up multiple objects and their custom fields. Use the following query to search multiple objects:
In addition to using the customFields
filter to search multiple objects, you can use the following filters to refine your search results:
Accepts one input
Accepts one or more inputs
The following code snippet provides an example of using the equals
filter in your query input:
The following code snippet provides an example of using the notEquals
filter in your query input:
The following code snippet provides an example of using the includes
filter in your query input:
The following code snippet provides an example of using the excludes
filter in your query input:
Note: Currently, objects that support custom fields are FinancialAccount
and PaymentCard
.
You can create custom fields when creating a new object that supports customFields
.
The following mutation provides an example of creating a FinancialAccount
with customFields
key-value pairs entered as input variables:
Warning: Setting a key-value pair's value to empty will delete the key.
You can add, update, or delete customFields
of an existing object with the UpdateCustomField
mutation and by referencing key-value pairs explicitly as input variables.
The following example uses the UpdateCustomFields
mutation to add multiple customFields
key-value pairs to an existing object:
Continuing from the previous output, the following example uses the UpdateCustomFields
mutation to do the following:
regionId
)customerGroupId
)sectorId
)You can use the following mutation to delete all customFields
for an object without having to specify the keys explicitly: