Managed clients
- Base URL
https://collectionpartner-api.debitura.com- Authentication
- API key in the
XApiKeyheader
List represented clients.
/managed-clientsPage starts at 1; PageSize defaults to 25 (maximum 100). Query searches company names. ExternalClientId is an exact, case-sensitive reference. Results are ordered by company name, then ID.
Query parameters
pageintegerpageSizeintegerquerystringexternalClientIdstring
Returns
200 OK
clientsarray of objectsnullableMinimal identity information for finding a represented client.
pageobjectStable v1 pagination metadata shared by public list responses.
curl https://collectionpartner-api.debitura.com/managed-clients \-H "XApiKey: $DEBITURA_API_KEY"
{"clients": [{"id": "3f2b6c1e-8a4d-4b7f-9c2e-5d1a0b9e7f31","companyName": "Muster GmbH","countryAlpha2": "DE","externalClientId": "string"}],"page": {"totalResults": 42,"pageSize": 25,"currentPage": 1,"responseCount": 42,"totalPages": 1}}
Create a represented client.
/managed-clientsObtain authority wording and version from GET /managed-clients/capability. One Idempotency-Key (1–255 non-whitespace characters) is required. Identical normalized retries return the same ID. A changed payload returns 422 IdempotencyConflict. Duplicate external references return 422 ExternalClientIdConflict. Missing or outdated authority acceptance returns 422 AuthorityRequired. An operation in progress returns 409 OperationInProgress with Retry-After: 2. Unsupported properties are rejected. Malformed JSON or model-binding failures return framework ValidationProblemDetails.
Headers
Idempotency-KeystringRequiredExactly one key, 1–255 non-whitespace characters.
Request body
companyNamestringnullableRequiredRequired company name, at most 200 characters after trimming.
Max 200 charactersaddressstringnullableRequiredRequired street address, at most 500 characters after trimming.
Max 500 characterscitystringnullableRequiredRequired city, at most 200 characters after trimming.
Max 200 characterscountryAlpha2stringnullableRequiredRequired two-letter country code, for example GB. Case-insensitive.
Max 2 characterszipCodestringnullableOptional postal code, at most 50 characters after trimming.
Max 50 charactersstatestringnullableOptional company state or region, at most 200 characters after trimming.
Max 200 characterscompanyRegistrationNumberstringnullableOptional company registration number, at most 50 characters after trimming.
Max 50 charactersvatNumberstringnullableOptional VAT number, at most 50 characters after trimming.
Max 50 charactersexternalClientIdstringnullableOptional case-sensitive reference unique to your partner account, at most 200 characters.
Max 200 charactersauthorityAcceptedbooleanRequiredMust be true to confirm authority under the current wording.
authorityVersionstringnullableRequiredCurrent authority version from GET /managed-clients/capability.
Returns
200 OK
iduuid
Errors
400 | Bad Request |
401 | Unauthorized |
404 | Not Found |
409 | Conflict |
422 | Unprocessable Content |
500 | Internal Server Error |
See Error handling.
curl -X POST https://collectionpartner-api.debitura.com/managed-clients \-H "XApiKey: $DEBITURA_API_KEY" \-H "Content-Type: application/json" \-d '{"companyName": "Muster GmbH","address": "Friedrichstraße 68","city": "Berlin","countryAlpha2": "DE","authorityAccepted": true,"authorityVersion": "string"}'
{"id": "3f2b6c1e-8a4d-4b7f-9c2e-5d1a0b9e7f31"}
Retrieve a represented client's current company details.
/managed-clients/{clientId}Unavailable and inaccessible clients both return NotFound. Historical address fields can be null.
Path parameters
clientIduuidRequired
Returns
200 OK
iduuidcompanyNamestringnullableaddressstringnullablecitystringnullablecountryAlpha2stringnullablezipCodestringnullablestatestringnullablecompanyRegistrationNumberstringnullablevatNumberstringnullableexternalClientIdstringnullable
curl https://collectionpartner-api.debitura.com/managed-clients/3f2b6c1e-8a4d-4b7f-9c2e-5d1a0b9e7f31 \-H "XApiKey: $DEBITURA_API_KEY"
{"id": "3f2b6c1e-8a4d-4b7f-9c2e-5d1a0b9e7f31","companyName": "Muster GmbH","address": "Friedrichstraße 68","city": "Berlin","countryAlpha2": "DE","zipCode": "10115","state": "string","companyRegistrationNumber": "DE123456789","vatNumber": "DE123456789","externalClientId": "string"}
Replace the address of an unused represented client.
/managed-clients/{clientId}Only address, city, zipCode and state may be supplied. Omitted optional fields are cleared. Legal identity and external reference are immutable. Requires both creation flags enabled and no case (including deleted/test/closed), user access or commercial relationship history. GET the client first and send its ETag as one strong If-Match value. Missing: 428 PreconditionRequired; invalid: 400 InvalidPrecondition; stale: 412 PreconditionFailed. In-use: 409 ClientInUse; historical identity-less client: 409 ClientNotEditable. Success is 204 with the current ETag.
Path parameters
clientIduuidRequired
Headers
If-MatchstringRequiredThe strong ETag returned by GET for this client.
Request body
addressstringnullableRequiredRequired street address, at most 500 characters after trimming.
Max 500 characterscitystringnullableRequiredRequired city, at most 200 characters after trimming.
Max 200 characterszipCodestringnullablePostal code, at most 50 characters. Omitted or null clears the value.
Max 50 charactersstatestringnullableState or region, at most 200 characters. Omitted or null clears the value.
Max 200 characters
Returns
204 No Content — no response body.
Errors
400 | Bad Request |
401 | Unauthorized |
404 | Not Found |
409 | Conflict |
412 | Precondition Failed |
428 | Precondition Required |
500 | Internal Server Error |
See Error handling.
curl -X PUT https://collectionpartner-api.debitura.com/managed-clients/3f2b6c1e-8a4d-4b7f-9c2e-5d1a0b9e7f31 \-H "XApiKey: $DEBITURA_API_KEY" \-H "Content-Type: application/json" \-d '{"address": "Friedrichstraße 68","city": "Berlin"}'
204 No Content. No response body.
Soft-delete an unused represented client.
/managed-clients/{clientId}Uses the same ownership, history, feature and If-Match restrictions as PUT. Authority, external reference reservations and create receipts are retained. No related records are deleted. Subsequent reads, mutations and original create replay return 404; the external reference cannot be reused. Success is 204 with no body.
Path parameters
clientIduuidRequired
Headers
If-MatchstringRequiredThe strong ETag returned by GET for this client.
Returns
204 No Content — no response body.
Errors
400 | Bad Request |
401 | Unauthorized |
404 | Not Found |
409 | Conflict |
412 | Precondition Failed |
428 | Precondition Required |
500 | Internal Server Error |
See Error handling.
curl -X DELETE https://collectionpartner-api.debitura.com/managed-clients/3f2b6c1e-8a4d-4b7f-9c2e-5d1a0b9e7f31 \-H "XApiKey: $DEBITURA_API_KEY"
204 No Content. No response body.