ThirdPartyCustomerId |
- Not Empty
- Max length of 50 characters
- Matches regex:
^[a-zA-Z0-9_.-][a-zA-Z0-9_\.-]{1,50}$
| {
"ThirdPartyCustomerId": [
"'Third Party Customer Id' must not be empty.",
"The third party customer id is invalid."
][
"'Third Party Customer Id' must not be empty.",
"The third party customer id is invalid."
]
} |
CountryISOCode |
- Not empty
- See docs for allowed values
| (The JSON value could not be converted to YL.Web.Api.ThirdParty.Onboarding.Models.CountryCodes. Path: $.countryISOCode | LineNumber: 4 | BytePositionInLine: 28.) |
LoanCurrencyISOCode |
- One of "GBP", "EUR", "DKK", "PLN", "USD"
- Not empty
| {
"LoanCurrencyISOCode": [
"'Loan Currency ISO Code' must not be empty.",
"The loan currency code is invalid. It must be an ISO 4217 currency code. Valid codes are GBP, EUR and DKK"
][
"'Loan Currency ISO Code' must not be empty.",
"The loan currency code is invalid. It must be an ISO 4217 currency code. Valid codes are GBP, EUR and DKK"
]
} |
KeyContactName |
- Not empty
- Max Length: 255 characters
| {
"KeyContactName": [
"'Key Contact Name' must not be empty."
][
"'Key Contact Name' must not be empty."
]
} |
Company Type |
- Not empty
- See docs for allowed values
| {
"$.companyType": [
"The JSON value could not be converted to YL.Web.Api.ThirdParty.Onboarding.Models.CompanyTypes. Path: $.companyType | LineNumber: 7 | BytePositionInLine: 26."
][
"The JSON value could not be converted to YL.Web.Api.ThirdParty.Onboarding.Models.CompanyTypes. Path: $.companyType | LineNumber: 7 | BytePositionInLine: 26."
]
} |
CompanyName |
- Not empty
- Minimum Length: 2 characters
- Maximum Length: 255 characters
- Allow alphanumeric and special characters (regex: ^[" + alphabetCharacters + "\d\s-`´“”‘’'",.@&?!£$€%+=()_:;#" + @"\/][" + alphabetCharacters + "\\d\\s-`´“”‘’'\",.@&?!£$€%+=()_:;#" + @"\\/].$)
| {
"CompanyName": [ "'Company Name' must not be empty.",
"The company name is invalid.",
"The length of 'Company Name' must be at least 2 characters. You entered 1 characters.", "The length of 'Company Name' must be 255 characters or fewer. You entered 300 characters."
]
} |
CompanyWebsite |
- Maximum Length: 1000 characters
- Match Regex: ^[a-zA-Z0-9:/-]{2,50}.[a-zA-Z0-9@:%_+.~#?&/=-][a-zA-Z0-9@:%_+.~#?&/=-].*$
| {
"CompanyWebsite": [
"The company website is invalid.", "The length of 'Company Website' must be 1000 characters or fewer. You entered 1200 characters."
]
} |
TradingName |
- Minimum Length: 1 character
- Maximum Length: 200 characters
| {
"TradingName": [
"The length of 'Trading Name' must be 200 characters or fewer. You entered 261 characters.", "The length of 'Trading Name' must be at least 1 characters. You entered 0 characters.",
]
} |
CompanyNumber |
-
When CountryCode = IRL:
Minimum length: 4
Maximum length: 10
Matches Regex: ^[a-zA-Z0-9].*$
-
When CountryCode != IRL and != USA
Minimum Length: 6
Maximum Length: 10
Matches Regex: ^[a-zA-Z0-9].*$
-
When CountryCode == FRA
Matches Regex: ^\d{9}$
| {
"CompanyNumber": [
"The length of 'Company Number' must be at least 4 characters. You entered 3 characters.", "The length of 'Company Number' must be 10 characters or fewer. You entered 21 characters.",
"The company number is invalid."
]
} |
VatNumber |
- Minimum Length: 6
- Maximum Length: 14
- Mtches Regex: ^[a-zA-Z0-9].*$
| {
"VatNumber": [
"The length of 'Vat Number' must be at least 6 characters. You entered 3 characters.", "The length of 'Vat Number' must be 14 characters or fewer. You entered 261 characters.",
"The vat number is invalid."
]
} |
Mid |
- Matches Regex: ^[a-zA-Z0-9]{7,}$
- MerchantIds property is not empty
| {
"Mid": [
"The mid is invalid. Acceptable MIDs must contain at least 7 alpha-numeric characters.",
"You can only use one way of specifying MerchantIds."
][
"The mid is invalid. Acceptable MIDs must contain at least 7 alpha-numeric characters.",
"You can only use one way of specifying MerchantIds."
]
} |
MerchantIds |
- Matches Regex: ^[a-zA-Z0-9]{7,}$
- Must be empty if Mid property is not empty and vice versa
| {
"MerchantIds": [
"You can only use one way of specifying MerchantIds.", "The mid is invalid. Acceptable MIDs must contain at least 7 alpha-numeric characters."
]
} |
ContactPhoneNumber |
- Minimum Length: 8
- Maximum Length: 20
- Matches Regex: ^[+0-9][\+0-9].*$
| {
"ContactPhoneNumber": [
"The length of 'Contact Phone Number' must be 20 characters or fewer. You entered 49 characters.",
"The company contact phone number is invalid."
][
"The length of 'Contact Phone Number' must be 20 characters or fewer. You entered 49 characters.",
"The company contact phone number is invalid."
]
} |
ContactEmailAddress |
- Maximum Length: 255
- AspNetCoreCompatibleEmailValidator (check presence of one “@”)
| {
"ContactEmailAddress": [
"The length of 'Contact Email Address' must be 255 characters or fewer. You entered 540 characters.",
"'Contact Email Address' is not a valid email address."
][
"The length of 'Contact Email Address' must be 255 characters or fewer. You entered 540 characters.",
"'Contact Email Address' is not a valid email address."
]
} |
SignupClientIp |
- If CountryISO Code == USA, must not be empty
- Must be a valid IP address
| {
"SignupClientIp": [
"Signup Client Ip is invalid", “Signup Client Ip cannot be empty”
]
} |
EmployerIdentificationNumber |
- If CountryISO Code == USA and companyType != soleTrader, must not be empty
- Matches Regex ^\d{2}-\d{7}$
| {
"EmployerIdentificationNumber": [
"Employer Identification Number is invalid", “Employer Identification Number cannot be empty”
]
} |