v1

latestOpenAPI 3.0.02026-07-2455104.8 MB
Customer

Create customer

Creates a new customer.

post/api/v2/customers

Request body

customerType'person' | 'company' nullable

Discriminator to create a company. If 'company' is used then 'name' is required. If 'person' is used then 'firstname' and 'lastname' are required.

firstnamestring nullable

Firstname of customer

lastnamestring nullable

Lastname of customer

namestring nullable

Name of the company

titlestring nullable

Title prefix for customer name. It will be used for communication.

birthdatestring date nullable

Birhtdate of customer

numberstring nullable

Customer number. if this is not provided default number ranges will be applied automatically

deviatingCustomerNumberstring nullable

Deviating Customer number.

salutation'mr' | 'mrs' | 'company' | 'other' nullable

Decide kind of person if necessary. This value is e.g. responsible to apply automatic rules for salutation

salutationPhrasestring nullable

You can specify a salutation how a customer/company should be addressed and override automatic rules.

departmentstring nullable

Specify a department for customer

subDepartmentstring nullable

Specify a sub-department for customer

isLeadboolean

Decides if customer is a lead

groupsinteger[] nullable

Specify the list of groups the customer should belong to

Example request

{
  "firstname": "Max",
  "lastname": "Mustmermann",
  "name": "General Cosmic Company",
  "title": "Prof. Dr.",
  "birthdate": "2024-03-01",
  "number": "C700001",
  "deviatingCustomerNumber": "C711223",
  "salutation": "mr",
  "salutationPhrase": "Dear Sir",
  "department": "Sales",
  "subDepartment": "Onlines Sales",
  "project": {
    "id": "17"
  },
  "contactDetails": {
    "phone": "+49(30)12093756",
    "mobile": "+49(172)56565656",
    "fax": "+49(30)12093756-1",
    "email": "customer@domain.tpl",
    "additionalData": [
      {
        "label": "mobile2",
        "value": "+1(800)555 12235"
      }
    ]
  },
  "accountManager": {
    "id": "17"
  },
  "salesManager": {
    "id": "17"
  },
  "isLead": true,
  "customFields": [
    {
      "id": 1,
      "value": "HS Deal - Open"
    }
  ],
  "financials": {
    "tax": {
      "taxation": "eu-delivery",
      "taxDisplay": "always-gross",
      "useDeliveryThreshold": false,
      "taxNumber": "1234",
      "vatId": "1234"
    },
    "paymentTerms": {
      "fixedPaymentTerms": true,
      "paymentTargetDays": 99,
      "paymentTargetDiscount": 2.5,
      "paymentTargetDiscountDays": 5
    },
    "paymentMethod": {
      "id": "3"
    },
    "subscriptionPaymentMethod": "invoice",
    "customsInformation": "Remarks regarding customs",
    "creditLimit": 0,
    "defaultCurrency": "EUR"
  },
  "primaryBankAccount": {
    "bankName": "XYZ Bank",
    "owner": "Name of the owner",
    "iban": "DE89370400440532013000",
    "bic": "DEUTDEFFXXX",
    "sepa": {
      "companySepa": true,
      "mandateReference": "K21124DE60S21F2S09WX11G4FY",
      "mandateReferenceChange": false,
      "mandateReferenceDate": "2025-03-01",
      "usage": "recurring",
      "initial": true,
      "remark": "This is a comment"
    }
  },
  "documentDelivery": {
    "autoCreateDocuments": "both",
    "invoiceAlwaysPaper": true,
    "amountInvoicePrints": 2,
    "preferFax": true
  },
  "shipping": {
    "freeShipping": true,
    "trackingMailBan": false,
    "deliveryBan": false,
    "freeShippingFrom": 50,
    "deliveryBanReason": "invalid address",
    "shippingMethod": {
      "id": "1"
    }
  }
}

Response

Resource successfully created response