POST
/
v1
/
{tenantId}
/
creditors
curl --request POST \
  --url https://api.debbiecollect.com/v1/{tenantId}/creditors \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "My reference",
  "name": "John Doe'\''s Factories",
  "centralRegisterId": "DK40125949",
  "isCompany": true,
  "address": {
    "address": "Applebys Pl. 7, 1.",
    "coAddress": null,
    "city": "København K",
    "zipcode": "1411",
    "country": "Danmark"
  },
  "notes": "Note to self (and my colleagues).",
  "erpLink": "https://example.com?id={{customerReferenceId}}&test",
  "acquisitionResponsibleId": "9409b6d8-cde5-45f1-b8e1-e756847a7077",
  "contactId": "bb71f936-c60c-4ad7-82f6-eddca673d30f",
  "caseworkerContactId": "9409b6d8-cde5-45f1-b8e1-e756847a7077",
  "defaultWorkflowId": "3057ca58-d39d-48ec-9d79-c45182b92ca0",
  "state": "ACTIVE",
  "vatRegistered": true,
  "aksEnabled": true,
  "bankAccountDetails": {
    "type": "DANISH",
    "registrationNumber": "1234",
    "accountNumber": "00012345678"
  },
  "selfCollection": false
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "reference": "<string>"
}

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 creditor is being created for

Body

application/json

New creditor object

The body is of type object.

Response

200
application/json

Successful operation

The response is of type object.