API documentation Web hosting accessible to everyone Visit LWS

Schema

Contact

Class Contact, to handle Contact data and validate them

  • company string

    Company name (optional)

    Example: My Company

  • lastname string

    Last name

    Example: Doe

  • firstname string

    First name

    Example: John

  • address string

    Street address

    Example: 1 rue de la Paix

  • postal string

    Postal code

    Example: 75000

  • city string

    City

    Example: Paris

  • country string

    Country code (ISO 3166-1 alpha-2)

    Example: FR

  • phone string

    Phone number for the contact in the international format 00{country code}{number}

    pattern ^00\d{1,3}\d{6,12}$ Example: 0033612345678

  • email string

    Email address

    Example: [email protected]

  • password string

    Password (10-15 characters, must contain at least one uppercase letter, one lowercase letter, one number and one special character among -!*$@%_)

    Example: password

  • is_company boolean

    Whether the contact is for a company or not

    Example: false

  • credit integer

    Credit balance

    Example: 0

Example
{
  "company": "My Company",
  "lastname": "Doe",
  "firstname": "John",
  "address": "1 rue de la Paix",
  "postal": "75000",
  "city": "Paris",
  "country": "FR",
  "phone": "0033612345678",
  "email": "[email protected]",
  "password": "password",
  "is_company": false,
  "credit": 0
}