curl --request GET \
--url https://api.debbiecollect.com/v1/{tenantId}/customers/{id} \
--header 'Authorization: Bearer <token>'{
"id": 123456,
"customerId": "268b30d2-e895-42b9-8a38-2451a87e19b2",
"isCompany": false,
"referenceId": "123",
"users": [
{
"contact": true,
"lang": "en",
"relation": "debtor",
"details": {
"name": "Hans Hansen",
"email": "[email protected]",
"phone": {
"locale": "45",
"number": "12345678"
},
"address": {
"address": "Applebys Plads 7, 1.",
"coAddress": null,
"city": "København K",
"zipcode": "1411",
"country": "Danmark"
}
}
}
],
"cases": [
{
"caseId": "268b30d2-e895-42b9-8a38-2451a87e19b2",
"status": "PENDING",
"statusTime": "2022-04-19T07:30:21.070Z",
"exitReason": null,
"createdAt": "2022-04-19T07:30:21.070Z"
}
]
}Get a customer by customer id
curl --request GET \
--url https://api.debbiecollect.com/v1/{tenantId}/customers/{id} \
--header 'Authorization: Bearer <token>'{
"id": 123456,
"customerId": "268b30d2-e895-42b9-8a38-2451a87e19b2",
"isCompany": false,
"referenceId": "123",
"users": [
{
"contact": true,
"lang": "en",
"relation": "debtor",
"details": {
"name": "Hans Hansen",
"email": "[email protected]",
"phone": {
"locale": "45",
"number": "12345678"
},
"address": {
"address": "Applebys Plads 7, 1.",
"coAddress": null,
"city": "København K",
"zipcode": "1411",
"country": "Danmark"
}
}
}
],
"cases": [
{
"caseId": "268b30d2-e895-42b9-8a38-2451a87e19b2",
"status": "PENDING",
"statusTime": "2022-04-19T07:30:21.070Z",
"exitReason": null,
"createdAt": "2022-04-19T07:30:21.070Z"
}
]
}Authentication can be done by using a bearer token in the Authorization header. This is done using the following format Authorization: Bearer {token}.
Id of the tenant the case belongs to
Id of the customer to be retrieved
Successful operation
Id of creditor
Customer created at
Id of the customer
Id of the tenant
Reference id of the customer. Typically id of the customer, client, patient or similar.
Whether the customer is a company.
List of users related to this customer
Show child attributes
Id of the user
Sequential id of the user
Type of relation to the customer
debtor, alternative-contact Whether the user is the contact person
Id of the customer
The language of the user
bm, ba, eu, be, bn, bh, bi, bs, br, bg, my, ca, ch, ce, ny, zh, cv, kw, co, cr, hr, cs, da, dv, nl, dz, en, eo, et, ee, fo, fj, fi, fr, ff, gl, ka, de, el, gn, gu, ht, ha, he, hz, hi, ho, hu, ia, id, ie, ga, ig, ik, io, is, it, iu, ja, jv, kl, kn, kr, ks, kk, km, ki, rw, ky, kv, kg, ko, ku, kj, la, lb, lg, li, ln, lo, lt, lu, lv, gv, mk, mg, ms, ml, mt, mi, mr, mh, mn, na, nv, nd, ne, ng, nb, nn, no, ii, nr, oc, oj, cu, om, or, os, pa, pi, fa, pl, ps, pt, qu, rm, rn, ro, ru, sa, sc, sd, se, sm, sg, sr, gd, sn, si, sk, sl, so, st, es, su, sw, ss, sv, ta, te, tg, th, ti, bo, tk, tl, tn, to, tr, ts, tt, tw, ty, ug, uk, ur, uz, ve, vi, vo, wa, cy, wo, fy, xh, yi, yo, za, zu Show child attributes
Name of the user
The cpr number of a user, only used when user is a person.
The cvr number of a user, only used when user is a company.
The email of the user
List of cases related to this customer
Show child attributes
Id of the case
Sequential id of the case
Status of the case
PENDING, VERIFIED, ENDED Reason why the case is ended
PAID, OVERPAYMENT, PARTIALLY_PAID, DEAD, BANKRUPTCY, OBJECTION, ERROR_CREDITOR, ERROR_US, WITHDRAWN, EXPIRATION, IRRECOVERABLE, TRANSFERRED, NO_COURT, UNIDENTIFIED, OFFER_FROM_US, OFFER_FROM_DEBTOR, FORCED_DISSOLVED, NEGATIVE_PAYOFF, DEPARTED, CREDITOR_UNRESPONSIVE, MERGED, FIRE_AND_FORGET, SMALL_CASE_NOT_WANTED, ADDRESS_UNKNOWN, DEBT_RELIEF, CONFLICT_OF_INTEREST, MINOR, DELETED, NO_DEBT Case status changed at
Case created at