curl --request POST \
--url https://api.debbiecollect.com/v1/{tenantId}/interactions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "DEBTOR NOTE",
"direction": "INCOMING",
"state": "MAPPED",
"referenceId": "601c0509-9b09-4e97-b380-2a67a1a08f66",
"referenceType": "case",
"notes": "<p>Name: Hans Hansen</p><p>Message: I was not the driver of the vehicle.</p>",
"details": {
"name": "Hans Hansen",
"message": "I was not the driver of the vehicle."
},
"minVisibilityRole": "client"
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}Interactions
Create interaction
Create an interaction on a case. Use this to register an incoming message from a debtor or another party, for example a submitted contact form.
Required scope: write:interactions.create
POST
/
v1
/
{tenantId}
/
interactions
curl --request POST \
--url https://api.debbiecollect.com/v1/{tenantId}/interactions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "DEBTOR NOTE",
"direction": "INCOMING",
"state": "MAPPED",
"referenceId": "601c0509-9b09-4e97-b380-2a67a1a08f66",
"referenceType": "case",
"notes": "<p>Name: Hans Hansen</p><p>Message: I was not the driver of the vehicle.</p>",
"details": {
"name": "Hans Hansen",
"message": "I was not the driver of the vehicle."
},
"minVisibilityRole": "client"
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}Authorizations
Body
application/json
New interaction body
- Debtor note
- Note
- Client note
- Email
- SMS
- Letter
- Digital post
- Phone call
- Auto call
- E-invoice
A new interaction. The shape of details depends on the type. For integrations registering messages from debtors or other parties, use the Debtor note variant.
The state of the interaction. For INCOMING interactions use MAPPED when referenceId is set and UNMAPPED when the interaction could not be matched to a case (HANDLED and DELETED are set by caseworkers). PENDING, QUEUED, SENT and CANCELLED apply to OUTGOING interactions. Defaults to MAPPED/UNMAPPED for incoming interactions based on referenceId.
Available options:
UNMAPPED, MAPPED, HANDLED, DELETED, PENDING, QUEUED, SENT, CANCELLED