Collection requests
- Base URL
https://referral-api.debitura.com- Authentication
- API key in the
XApiKeyheader
GET /collection-requests
/collection-requestsQuery parameters
externalTenantIdstringYour partner-scoped client identifier, 1–200 characters, sent in the original request.
creditorReferencestringYour invoice reference, 1–50 characters. Returns the latest matching request for this client and your partner account.
Returns
200 Current request state; a fixable draft is illustrated. The client must correct and explicitly submit it. GET also returns the other supported states, with a nullable solutionUrl when no action is available.
iduuidDebitura collection-request ID. Store it and GET /collection-requests/{id} for current state; it is not a case ID.
statusenumRequest progress: awaiting_onboarding, awaiting_approval, awaiting_signature, awaiting_kyc, needs_fixing, submitted, rejected, expired or processing. This is not the case lifecycle. submitted means handed to ordinary Debitura verification, not active collection. GET is current; keyed POST retries may replay the original snapshot.
One ofawaiting_onboardingawaiting_approvalawaiting_signatureawaiting_kycneeds_fixingsubmittedrejectedexpiredprocessingsolutionUrlstringnullableReturned URL for the selected action, or null when no action is available (for example processing, rejected or expired). Open the returned URL as-is; never construct signing/onboarding links. Refresh GET after return or recovery even if no webhook arrived.
solutionTypeenumnullableNext action: onboarding, approval, sdca (initial/fallback SDCA), sdca_update, power_of_attorney, jurisdiction_pricing_appendix, kyc, fix or case. Null when no action is available. Status remains awaiting_signature for agreement work. The legacy signature value can appear only in an immutable keyed replay snapshot.
One ofonboardingapprovalsdcasdca_updatepower_of_attorneyjurisdiction_pricing_appendixkycfixcasesignaturenullexternalTenantIdstringnullableYour partner-scoped client identifier from the request.
clientobjectClient identity and referral attribution for this request. An existing account's ID is withheld until its connection is approved.
invoicesarray of objectsnullablePer-invoice outcomes. New requests contain exactly one invoice; keep its reference and request ID together.
createdAtdatetimeUTC time when Debitura created this collection request (ISO 8601).
updatedAtdatetimeLatest recorded request or related case update time in UTC (ISO 8601). Read GET for the current action; do not use this timestamp as an action-change sequence.
curl https://referral-api.debitura.com/collection-requests \-H "XApiKey: $DEBITURA_API_KEY"
{"id": "33333333-3333-4333-8333-000000000042","status": "needs_fixing","solutionType": "fix","solutionUrl": "https://app.debitura.example/tasks","externalTenantId": "quickstart-client-1","client": {"debituraClientId": "77777777-7777-4777-8777-777777777777","isNew": true,"isAttributedClient": true},"invoices": [{"creditorReference": "QS-INV-0001","status": "draft","caseId": null,"caseStatus": null,"reason": null,"issues": [{"field": "debtor.address","type": "Invalid","message": "The debtor street address is missing."}],"draftId": "66666666-6666-4666-8666-666666666666"}],"createdAt": "2026-11-01T10:00:00Z","updatedAt": "2026-11-01T10:05:00Z"}
Submit one invoice for collection
/collection-requestsSend exactly one invoice in the invoices array. Return navigation uses the referral partner configuration; no per-request returnUrl is supported. Client details are used only on creation; existing clients approve a new connection. solutionUrl points to the first outstanding action: onboarding, approval, signature, KYC, fixing drafts, then the case. Resubmitting a client invoice reference returns its existing case within the same data classification.
Headers
Idempotency-KeystringOptional partner-scoped key, 1–200 characters. Identical input within 24 hours replays the original response snapshot; changed input returns 422. Use GET for current state. Invoice-reference duplicate protection is separate.
Max 200 characters
Request body
externalTenantIdstringnullableRequired: your stable client identifier, 1–200 characters, scoped to your referral partner account. Reuse it for later invoices and GET lookup.
clientobjectRequired object. Details create a new client only; they do not overwrite an existing client. For an unlinked existing account, email matching can lead to approval. See user.email and client.supportEmail.
userobjectRequired contact name and email. Used to identify the client and create its initial user when a new account is needed; does not add a user to an existing account.
invoicesarray of objectsnullableRequired array containing exactly one invoice. Send a separate request for each invoice and keep each returned request ID. Return navigation is configured on the partner account; no request returnUrl is supported.
Returns
201 Submitted to ordinary Debitura verification. A created case is not necessarily in active collection.
iduuidDebitura collection-request ID. Store it and GET /collection-requests/{id} for current state; it is not a case ID.
statusenumRequest progress: awaiting_onboarding, awaiting_approval, awaiting_signature, awaiting_kyc, needs_fixing, submitted, rejected, expired or processing. This is not the case lifecycle. submitted means handed to ordinary Debitura verification, not active collection. GET is current; keyed POST retries may replay the original snapshot.
One ofawaiting_onboardingawaiting_approvalawaiting_signatureawaiting_kycneeds_fixingsubmittedrejectedexpiredprocessingsolutionUrlstringnullableReturned URL for the selected action, or null when no action is available (for example processing, rejected or expired). Open the returned URL as-is; never construct signing/onboarding links. Refresh GET after return or recovery even if no webhook arrived.
solutionTypeenumnullableNext action: onboarding, approval, sdca (initial/fallback SDCA), sdca_update, power_of_attorney, jurisdiction_pricing_appendix, kyc, fix or case. Null when no action is available. Status remains awaiting_signature for agreement work. The legacy signature value can appear only in an immutable keyed replay snapshot.
One ofonboardingapprovalsdcasdca_updatepower_of_attorneyjurisdiction_pricing_appendixkycfixcasesignaturenullexternalTenantIdstringnullableYour partner-scoped client identifier from the request.
clientobjectClient identity and referral attribution for this request. An existing account's ID is withheld until its connection is approved.
invoicesarray of objectsnullablePer-invoice outcomes. New requests contain exactly one invoice; keep its reference and request ID together.
createdAtdatetimeUTC time when Debitura created this collection request (ISO 8601).
updatedAtdatetimeLatest recorded request or related case update time in UTC (ISO 8601). Read GET for the current action; do not use this timestamp as an action-change sequence.
Errors
422 | Rejected request with per-invoice reason, as illustrated. Some input/availability errors and conflicting Idempotency-Key reuse return a message object instead of a collection request. |
See Error handling.
curl -X POST https://referral-api.debitura.com/collection-requests \-H "XApiKey: $DEBITURA_API_KEY" \-H "Content-Type: application/json" \-d '{"externalTenantId": "quickstart-client-1","client": {"name": "Quickstart Client Ltd","country": "GB","supportEmail": "you@your-company.example"},"user": {"name": "Quickstart User","email": "you@your-company.example"},"invoices": [{"creditorReference": "QS-INV-0001","debtor": {"type": "Company","name": "Example Debtor Ltd","countryAlpha2": "GB","address": "10 Example Street","city": "London"},"amountToRecover": 1500,"currencyCode": "GBP","date": "2026-06-01T00:00:00Z","dueDate": "2026-06-30T00:00:00Z","isTest": true}]}'
{"id": "33333333-3333-4333-8333-000000000042","status": "submitted","solutionType": "case","solutionUrl": "https://app.debitura.example/cases/44444444-4444-4444-8444-444444444444","externalTenantId": "quickstart-client-1","client": {"debituraClientId": "77777777-7777-4777-8777-777777777777","isNew": false,"isAttributedClient": true},"invoices": [{"creditorReference": "QS-INV-0001","status": "created","caseId": "44444444-4444-4444-8444-444444444444","caseStatus": "PendingVerification","reason": null,"issues": []}],"createdAt": "2026-11-01T10:00:00Z","updatedAt": "2026-11-01T10:05:00Z"}
GET /collection-requests/{id}
/collection-requests/{id}Path parameters
iduuidRequiredCollection-request ID returned by POST, belonging to your referral partner account.
Returns
200 Current request state; a fixable draft is illustrated. The client must correct and explicitly submit it. GET also returns the other supported states, with a nullable solutionUrl when no action is available.
iduuidDebitura collection-request ID. Store it and GET /collection-requests/{id} for current state; it is not a case ID.
statusenumRequest progress: awaiting_onboarding, awaiting_approval, awaiting_signature, awaiting_kyc, needs_fixing, submitted, rejected, expired or processing. This is not the case lifecycle. submitted means handed to ordinary Debitura verification, not active collection. GET is current; keyed POST retries may replay the original snapshot.
One ofawaiting_onboardingawaiting_approvalawaiting_signatureawaiting_kycneeds_fixingsubmittedrejectedexpiredprocessingsolutionUrlstringnullableReturned URL for the selected action, or null when no action is available (for example processing, rejected or expired). Open the returned URL as-is; never construct signing/onboarding links. Refresh GET after return or recovery even if no webhook arrived.
solutionTypeenumnullableNext action: onboarding, approval, sdca (initial/fallback SDCA), sdca_update, power_of_attorney, jurisdiction_pricing_appendix, kyc, fix or case. Null when no action is available. Status remains awaiting_signature for agreement work. The legacy signature value can appear only in an immutable keyed replay snapshot.
One ofonboardingapprovalsdcasdca_updatepower_of_attorneyjurisdiction_pricing_appendixkycfixcasesignaturenullexternalTenantIdstringnullableYour partner-scoped client identifier from the request.
clientobjectClient identity and referral attribution for this request. An existing account's ID is withheld until its connection is approved.
invoicesarray of objectsnullablePer-invoice outcomes. New requests contain exactly one invoice; keep its reference and request ID together.
createdAtdatetimeUTC time when Debitura created this collection request (ISO 8601).
updatedAtdatetimeLatest recorded request or related case update time in UTC (ISO 8601). Read GET for the current action; do not use this timestamp as an action-change sequence.
curl https://referral-api.debitura.com/collection-requests/3f2b6c1e-8a4d-4b7f-9c2e-5d1a0b9e7f31 \-H "XApiKey: $DEBITURA_API_KEY"
{"id": "33333333-3333-4333-8333-000000000042","status": "needs_fixing","solutionType": "fix","solutionUrl": "https://app.debitura.example/tasks","externalTenantId": "quickstart-client-1","client": {"debituraClientId": "77777777-7777-4777-8777-777777777777","isNew": true,"isAttributedClient": true},"invoices": [{"creditorReference": "QS-INV-0001","status": "draft","caseId": null,"caseStatus": null,"reason": null,"issues": [{"field": "debtor.address","type": "Invalid","message": "The debtor street address is missing."}],"draftId": "66666666-6666-4666-8666-666666666666"}],"createdAt": "2026-11-01T10:00:00Z","updatedAt": "2026-11-01T10:05:00Z"}