Skip to content
moxon home

Validate

The /validate endpoint validates various data formats.

gethttps://api.moxon.dev/v6/validate
Try itget/v6/validate

Parameters

  • type"luhn" | "iban" | "email"required

    Validation type: luhn, iban, email

  • valuestringrequired

    Value to validate

Validation Types

TypeDescriptionLimits
luhnLuhn algorithm (credit card numbers)12–19 digits
ibanInternational Bank Account Number15–34 characters
emailEmail address format

Response Fields

  • validboolean

    Whether the value is valid

  • valuestring

    The validated value

  • countrystring

    Country code (IBAN only)

Code Examples

Error Handling

If parameters are missing or invalid, the API will return an error:

  • 400Please provide a valid type (?type={luhn|iban|email})The type parameter is missing or invalid
  • 400A value is requiredThe value parameter is missing