POST
/
v1
/
{tenantId}
/
customers
curl --request POST \
  --url https://api.debbiecollect.com/v1/{tenantId}/customers \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "isCompany": false,
  "referenceId": "123",
  "users": [
    {
      "contact": true,
      "lang": "da",
      "relation": "debtor",
      "details": {
        "name": "Hans Hansen",
        "email": "example@debbie.dk",
        "phone": {
          "locale": "45",
          "number": "12345678"
        },
        "address": {
          "address": "Applebys Plads 7, 1.",
          "coAddress": null,
          "city": "København K",
          "zipcode": "1411"
        },
        "cpr": "1209981919",
        "cvr": null
      }
    }
  ]
}'
{
  "customerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

Authorization
string
header
required

Authentication can be done by using a bearer token in the Authorization header. This is done using the following format Authorization: Bearer {token}.

Path Parameters

tenantId
string
required

Id of the tenant the case is being created for

Query Parameters

creditorId
string
required

Creditor id that the customer is related to

Body

application/json

New customer object

The body is of type object.

Response

200
application/json

Successful operation

The response is of type object.