POST
/
accounting
/
contacts
curl --request POST \
  --url https://api.maesn.dev/accounting/contacts \
  --header 'Content-Type: application/json' \
  --header 'X-ACCOUNT-KEY: <x-account-key>' \
  --header 'X-API-KEY: <x-api-key>' \
  --data '{
  "contactType": "CONTACT_PERSON",
  "companyName": "Company name",
  "contactPersons": [
    {
      "salutation": "Mr",
      "firstName": "John",
      "lastName": "Doe",
      "emailAddresses": [
        "john.doe@company.com"
      ],
      "phoneNumbers": [
        "+49 7163307056"
      ]
    }
  ],
  "addresses": [
    {
      "addressLine1": "Street",
      "addressLine2": "Building",
      "postalCode": "12345",
      "city": "City",
      "countryCode": "DE",
      "type": "BILLING"
    }
  ],
  "emailAddresses": [
    {
      "email": "john.doe@company.com",
      "type": "BUSINESS"
    }
  ],
  "phoneNumbers": [
    {
      "number": "+49 7163307056",
      "type": "MOBILE"
    }
  ],
  "bankAccount": {
    "iban": "DE89370400440532013000",
    "bic": "COBADEFFXXX",
    "holder": "John Doe",
    "sepa": true
  },
  "projectId": "1"
}'
{
  "meta": {
    "warnings": [
      "Field not used by target system"
    ],
    "pagination": {
      "total": 123,
      "perPage": 123,
      "currentPage": 123,
      "totalPages": 123
    }
  },
  "data": {
    "id": "1",
    "contactType": "CONTACT_PERSON",
    "companyName": "Company name",
    "contactPersons": [
      {
        "salutation": "Mr",
        "firstName": "John",
        "lastName": "Doe",
        "emailAddresses": [
          {
            "email": "john.doe@company.com",
            "type": "BUSINESS"
          }
        ],
        "phoneNumbers": [
          {
            "number": "+49 7163307056",
            "type": "MOBILE"
          }
        ]
      }
    ],
    "addresses": [
      {
        "addressLine1": "Street",
        "addressLine2": "Building",
        "postalCode": "12345",
        "city": "City",
        "countryCode": "DE",
        "type": "BILLING"
      }
    ],
    "emailAddresses": [
      {
        "email": "john.doe@company.com",
        "type": "BUSINESS"
      }
    ],
    "phoneNumbers": [
      {
        "number": "+49 7163307056",
        "type": "MOBILE"
      }
    ],
    "projectId": "1",
    "updatedDate": "2018-01-01T13:00:00.000Z"
  }
}

Test Api token:

663222ee33ebba4015340680c7685723a0703c2ad953cefaa1536dc1bac02e20

Test Account token:

85b30b510f09120b199a4dbd9111ff7b3aaf28f1f72701418e111a551fb77b4c

Headers

X-API-KEY
string
required

API key

X-ACCOUNT-KEY
string
required

Account key

Body

application/json
contactType
enum<string>
required
Available options:
CONTACT_PERSON,
COMPANY
companyName
string
contactPersons
object[]
addresses
object[]
emailAddresses
object[]
phoneNumbers
object[]
bankAccount
object
projectId
string

Response

200 - application/json
meta
object
data
object

Was this page helpful?