This document outlines all of the current validation rules applied by the Beacon API when data is sent via an API request.
Field types
true
or false
Must be an object in this JSON format:
{
"value": 10,
"currency": "GBP"
}
value
must be a number (max. 2 decimal places)currency
must be a valid ISO currency codeNote: Beacon auto-attaches a base_value
to the currency object, which is the converted value in the account’s base currency. This shouldn’t be passed in API request payloads.
2024-08-23T08:42:05.265Z
).YYYY-MM-DD
Date.parse(d)
will be treated as valid.Should be an array of JSON objects in the format:
[
{
"email": "[email protected]",
"is_primary": true
},
{
"email": "[email protected]",
"is_primary": false
}
]
Only valid email addresses can be passed to email
is_primary
must be a boolean true
/ false