Skip to main content

Numeric

The Numeric Answer is used to submit a number — for example an amount, an income, or an expected transaction value.

Fields​

FieldTypeRequiredDescription
fieldTypeIdstringYesMust be set to "Numeric" (from FieldTypeEnum)
valuenumberYesThe number, as a JSON number. Decimals are allowed

Example Usage​

{
"fieldId": "1140a84d-bfa7-44a4-9c47-6007bcdc112d",
"answer": {
"fieldTypeId": "Numeric",
"value": 250000.50
}
}

Notes​

  • Send value as a JSON number (250000.50), not a string. Thousands separators ("250,000.50") are display formatting on the form and are not accepted.
  • The currency or unit is part of the field's name (e.g. "Average Annual Income (KD)"); it is not sent with the answer.
  • A form may limit the number of digits a customer can type; that limit is applied on the form, so keep API values within what the field is meant to hold.
  • Get Submission returns the answer as { "value": 250000.5 }.