Back to Customer

POST Method Details for ValidateNewCustomer.

Validate new customer

Definition

https://app[x].timelog.com/[account name]/api/v{version}/customer/validate-new-customer

Parameters

  • customer object Validate customer information
    • Address string Gets or sets the customer address
    • Address2 string Gets or sets the customer address
    • Address3 string Gets or sets the customer address
    • CalculateVat boolean Gets or sets if VAT should be calculated on the customer
    • City string Gets or sets the customer address city
    • ContactID integer Gets or sets the contact person
    • CountryID integer Gets or sets the customer address country
    • CurrencyID integer Gets or sets the Currency ID
    • CustomerNo string Gets or sets the Customer no.
    • CustomerReferenceID integer Gets or sets the customer reference
    • CustomerSince string Gets or sets the date the customer started
    • CustomerStatusID integer Gets or sets the Customer status ID
    • DefaultDistIsMaxBillable boolean Gets or sets the default mileage distance is the max billable distance
    • DefaultMileageDistance integer Gets or sets the default mileage distance
    • DiscountPercentage number Gets or sets the discount percentage
    • EanNo string Gets or sets the EAN no.
    • Email string Gets or sets the email
    • ExpenseIsBillable boolean Gets or sets if expenses are billable
    • Fax string Gets or sets the fax number
    • IndustryID integer Gets or sets the Industry ID
    • InternalReferenceID integer Gets or sets the internal reference
    • InvoiceAddressToUse integer Gets or sets the customer address or the customer contact address should be used for invoicing
    • InvoicingAddress string Gets or sets the customer invoicing address
    • InvoicingAddress2 string Gets or sets the customer invoicing address
    • InvoicingAddress3 string Gets or sets the customer invoicing address
    • InvoicingAddressCity string Gets or sets the customer invoicing address zip code
    • InvoicingAddressCountryID integer Gets or sets the customer invoicing address country
    • InvoicingAddressState string Gets or sets the customer invoicing address state
    • InvoicingAddressZipCode string Gets or sets the customer invoicing address
    • MileageIsBillable boolean Gets or sets if mileage is billable
    • Name string Gets or sets the Name
    • NickName string Gets or sets the Nick name
    • OrganizationNo string Gets or sets the organization no
    • PaymentTermID integer Gets or sets the payment term ID
    • Phone string Gets or sets the phone number
    • PrimaryKAMID integer Gets or sets the user name of the Primary KAM
    • SecondaryKAMID integer Gets or sets the ID of the Secondary KAM
    • State string Gets or sets the customer address state
    • UseEanNo boolean Gets or sets if customer uses EAN
    • UseInvoicingAddress boolean Gets or sets if customer have separate invoicing address
    • VatNo string Gets or sets the VAT no
    • VatPercentage number Gets or sets the VAT percentage
    • Website string Gets or sets the customers website
    • ZipCode string Gets or sets the customer address zip code
    {
      "Address": "",
      "Address2": "",
      "Address3": "",
      "CalculateVat": false,
      "City": "",
      "ContactID": 0,
      "CountryID": 0,
      "CurrencyID": 0,
      "CustomerNo": "",
      "CustomerReferenceID": 0,
      "CustomerSince": "2024-03-29T00:00:00+00:00",
      "CustomerStatusID": 0,
      "DefaultDistIsMaxBillable": false,
      "DefaultMileageDistance": 0,
      "DiscountPercentage": 0.0,
      "EanNo": "",
      "Email": "",
      "ExpenseIsBillable": false,
      "Fax": "",
      "IndustryID": 0,
      "InternalReferenceID": 0,
      "InvoiceAddressToUse": 0,
      "InvoicingAddress": "",
      "InvoicingAddress2": "",
      "InvoicingAddress3": "",
      "InvoicingAddressCity": "",
      "InvoicingAddressCountryID": 0,
      "InvoicingAddressState": "",
      "InvoicingAddressZipCode": "",
      "MileageIsBillable": false,
      "Name": "",
      "NickName": "",
      "OrganizationNo": "",
      "PaymentTermID": 0,
      "Phone": "",
      "PrimaryKAMID": 0,
      "SecondaryKAMID": 0,
      "State": "",
      "UseEanNo": false,
      "UseInvoicingAddress": false,
      "VatNo": "",
      "VatPercentage": 0.0,
      "Website": "",
      "ZipCode": ""
    }
  • version string The requested API version

Returns

  • [200] OK
    • Address string Gets or sets the customer address
    • Address2 string Gets or sets the customer address
    • Address3 string Gets or sets the customer address
    • CalculateVat boolean Gets or sets if VAT should be calculated on the customer
    • City string Gets or sets the customer address city
    • ContactID integer Gets or sets the contact person
    • CountryID integer Gets or sets the customer address country
    • CurrencyID integer Gets or sets the Currency ID
    • CustomerNo string Gets or sets the Customer no.
    • CustomerReferenceID integer Gets or sets the customer reference
    • CustomerSince string Gets or sets the date the customer started
    • CustomerStatusID integer Gets or sets the Customer status ID
    • DefaultDistIsMaxBillable boolean Gets or sets the default mileage distance is the max billable distance
    • DefaultMileageDistance integer Gets or sets the default mileage distance
    • DiscountPercentage number Gets or sets the discount percentage
    • EanNo string Gets or sets the EAN no.
    • Email string Gets or sets the email
    • ExpenseIsBillable boolean Gets or sets if expenses are billable
    • Fax string Gets or sets the fax number
    • IndustryID integer Gets or sets the Industry ID
    • InternalReferenceID integer Gets or sets the internal reference
    • InvoiceAddressToUse integer Gets or sets the customer address or the customer contact address should be used for invoicing
    • InvoicingAddress string Gets or sets the customer invoicing address
    • InvoicingAddress2 string Gets or sets the customer invoicing address
    • InvoicingAddress3 string Gets or sets the customer invoicing address
    • InvoicingAddressCity string Gets or sets the customer invoicing address zip code
    • InvoicingAddressCountryID integer Gets or sets the customer invoicing address country
    • InvoicingAddressState string Gets or sets the customer invoicing address state
    • InvoicingAddressZipCode string Gets or sets the customer invoicing address
    • MileageIsBillable boolean Gets or sets if mileage is billable
    • Name string Gets or sets the Name
    • NickName string Gets or sets the Nick name
    • OrganizationNo string Gets or sets the organization no
    • PaymentTermID integer Gets or sets the payment term ID
    • Phone string Gets or sets the phone number
    • PrimaryKAMID integer Gets or sets the user name of the Primary KAM
    • SecondaryKAMID integer Gets or sets the ID of the Secondary KAM
    • State string Gets or sets the customer address state
    • UseEanNo boolean Gets or sets if customer uses EAN
    • UseInvoicingAddress boolean Gets or sets if customer have separate invoicing address
    • VatNo string Gets or sets the VAT no
    • VatPercentage number Gets or sets the VAT percentage
    • Website string Gets or sets the customers website
    • ZipCode string Gets or sets the customer address zip code
    {
      "Address": "",
      "Address2": "",
      "Address3": "",
      "CalculateVat": false,
      "City": "",
      "ContactID": 0,
      "CountryID": 0,
      "CurrencyID": 0,
      "CustomerNo": "",
      "CustomerReferenceID": 0,
      "CustomerSince": "2024-03-29T00:00:00+00:00",
      "CustomerStatusID": 0,
      "DefaultDistIsMaxBillable": false,
      "DefaultMileageDistance": 0,
      "DiscountPercentage": 0.0,
      "EanNo": "",
      "Email": "",
      "ExpenseIsBillable": false,
      "Fax": "",
      "IndustryID": 0,
      "InternalReferenceID": 0,
      "InvoiceAddressToUse": 0,
      "InvoicingAddress": "",
      "InvoicingAddress2": "",
      "InvoicingAddress3": "",
      "InvoicingAddressCity": "",
      "InvoicingAddressCountryID": 0,
      "InvoicingAddressState": "",
      "InvoicingAddressZipCode": "",
      "MileageIsBillable": false,
      "Name": "",
      "NickName": "",
      "OrganizationNo": "",
      "PaymentTermID": 0,
      "Phone": "",
      "PrimaryKAMID": 0,
      "SecondaryKAMID": 0,
      "State": "",
      "UseEanNo": false,
      "UseInvoicingAddress": false,
      "VatNo": "",
      "VatPercentage": 0.0,
      "Website": "",
      "ZipCode": ""
    }
  • [401] Invalid authentication token
  • [500] User could not be validated
    • Code integer Gets the code.
    • Details array Gets the details.
    • Message string Gets the message.
    • Parameters string Gets the parameters.
    • Url string Gets the URL.
    {
      "Code": 0,
      "Details": "",
      "Message": "",
      "Parameters": "",
      "Url": ""
    }