Divisions
- Base URL
https://customer-api.debitura.com- Authentication
- API key in the
XApiKeyheader
List divisions for the authenticated creditor.
/divisionsReturns a paginated list of divisions for the authenticated creditor.
By default, archived divisions are excluded. Set includeArchived=true to include them.
Query parameters
pageintegerpageSizeintegerincludeArchivedboolean
Returns
200 List of divisions
pageobjectRequiredStable v1 pagination metadata shared by public list responses.
divisionsarray of objectsnullable
curl https://customer-api.debitura.com/divisions \-H "XApiKey: $DEBITURA_API_KEY"
{"page": {"totalResults": 42,"pageSize": 25,"currentPage": 1,"responseCount": 42,"totalPages": 1},"divisions": [{"id": "3f2b6c1e-8a4d-4b7f-9c2e-5d1a0b9e7f31","companyName": "Muster GmbH","registrationNumber": "DE123456789","address": "Friedrichstraße 68","zipCode": "10115","state": "string","city": "Berlin","country": {"id": 3,"name": "Muster GmbH","alpha2": "string"},"officeEmail": "finance@example.com","officePhone": "+49 30 1234567","isArchived": true,"createdUtc": "2026-10-01T14:05:00Z","updatedUtc": "2026-10-01T14:05:00Z"}]}
Create a new division.
/divisionsCreates a new division for the authenticated creditor.
Divisions allow creditors to organize cases under different business units, branches, or departments.
Required Fields:
- companyName - Name of the division
- city - City where the division is located
- countryCode - ISO 3166-1 alpha-2 country code (e.g. 'US', 'DE', 'DK')
Optional Fields:
- registrationNumber - Company registration number (CVR, VAT, etc.)
- address, zipCode, state - Full address details
- officeEmail, officePhone - Contact information
Headers
Idempotency-KeystringOptional non-empty, non-whitespace idempotency key (max 255 characters) for safely retrying this request. If a previous request used the same key with an identical body, the original terminal response is replayed verbatim. Reusing the key with a different body returns 422 with
businessErrors[0].type: "IdempotencyConflict". Field-level 400 validation errors are not stored, so you may fix the request and retry with the same key.Max 255 characters
Request body
companyNamestringRequiredMax 200 charactersregistrationNumberstringnullableMax 50 charactersaddressstringnullablezipCodestringnullableMax 50 charactersstatestringnullablecitystringRequiredcountryCodestringRequired2–2 charactersofficeEmailstringnullableMax 250 characters · Email addressofficePhonestringnullableMax 50 characters
Returns
201 Division created successfully
iduuidcompanyNamestringnullableregistrationNumberstringnullableaddressstringnullablezipCodestringnullablestatestringnullablecitystringnullablecountryobjectofficeEmailstringnullableofficePhonestringnullableisArchivedbooleancreatedUtcdatetimeupdatedUtcdatetimenullable
curl -X POST https://customer-api.debitura.com/divisions \-H "XApiKey: $DEBITURA_API_KEY" \-H "Content-Type: application/json" \-d '{"companyName": "Muster GmbH","city": "Berlin","countryCode": "DE"}'
{"id": "3f2b6c1e-8a4d-4b7f-9c2e-5d1a0b9e7f31","companyName": "Muster GmbH","registrationNumber": "DE123456789","address": "Friedrichstraße 68","zipCode": "10115","state": "string","city": "Berlin","country": {"id": 3,"name": "Muster GmbH","alpha2": "string"},"officeEmail": "finance@example.com","officePhone": "+49 30 1234567","isArchived": true,"createdUtc": "2026-10-01T14:05:00Z","updatedUtc": "2026-10-01T14:05:00Z"}
Get a single division by ID.
/divisions/{id}Returns details of a specific division. The division must belong to the authenticated creditor.
Path parameters
iduuidRequired
Returns
200 Division found
iduuidcompanyNamestringnullableregistrationNumberstringnullableaddressstringnullablezipCodestringnullablestatestringnullablecitystringnullablecountryobjectofficeEmailstringnullableofficePhonestringnullableisArchivedbooleancreatedUtcdatetimeupdatedUtcdatetimenullable
curl https://customer-api.debitura.com/divisions/3f2b6c1e-8a4d-4b7f-9c2e-5d1a0b9e7f31 \-H "XApiKey: $DEBITURA_API_KEY"
{"id": "3f2b6c1e-8a4d-4b7f-9c2e-5d1a0b9e7f31","companyName": "Muster GmbH","registrationNumber": "DE123456789","address": "Friedrichstraße 68","zipCode": "10115","state": "string","city": "Berlin","country": {"id": 3,"name": "Muster GmbH","alpha2": "string"},"officeEmail": "finance@example.com","officePhone": "+49 30 1234567","isArchived": true,"createdUtc": "2026-10-01T14:05:00Z","updatedUtc": "2026-10-01T14:05:00Z"}
Update a division.
/divisions/{id}Replaces all fields of a division. All required fields must be provided.
Required Fields:
- companyName - Name of the division
- city - City where the division is located
- countryCode - ISO 3166-1 alpha-2 country code (e.g. 'US', 'DE', 'DK')
Path parameters
iduuidRequired
Request body
companyNamestringRequiredMax 200 charactersregistrationNumberstringnullableMax 50 charactersaddressstringnullablezipCodestringnullableMax 50 charactersstatestringnullablecitystringRequiredcountryCodestringRequired2–2 charactersofficeEmailstringnullableMax 250 characters · Email addressofficePhonestringnullableMax 50 characters
Returns
200 Division updated successfully
iduuidcompanyNamestringnullableregistrationNumberstringnullableaddressstringnullablezipCodestringnullablestatestringnullablecitystringnullablecountryobjectofficeEmailstringnullableofficePhonestringnullableisArchivedbooleancreatedUtcdatetimeupdatedUtcdatetimenullable
curl -X PUT https://customer-api.debitura.com/divisions/3f2b6c1e-8a4d-4b7f-9c2e-5d1a0b9e7f31 \-H "XApiKey: $DEBITURA_API_KEY" \-H "Content-Type: application/json" \-d '{"companyName": "Muster GmbH","city": "Berlin","countryCode": "DE"}'
{"id": "3f2b6c1e-8a4d-4b7f-9c2e-5d1a0b9e7f31","companyName": "Muster GmbH","registrationNumber": "DE123456789","address": "Friedrichstraße 68","zipCode": "10115","state": "string","city": "Berlin","country": {"id": 3,"name": "Muster GmbH","alpha2": "string"},"officeEmail": "finance@example.com","officePhone": "+49 30 1234567","isArchived": true,"createdUtc": "2026-10-01T14:05:00Z","updatedUtc": "2026-10-01T14:05:00Z"}
Delete a division.
/divisions/{id}Deletes a division.
Important: A division cannot be deleted if it is referenced by active cases. If you need to deactivate a division that has cases, use the archive endpoint instead.
Path parameters
iduuidRequired
Returns
204 Division deleted successfully — no response body.
Errors
404 | Division not found |
422 | Division cannot be deleted because it has active cases |
See Error handling.
curl -X DELETE https://customer-api.debitura.com/divisions/3f2b6c1e-8a4d-4b7f-9c2e-5d1a0b9e7f31 \-H "XApiKey: $DEBITURA_API_KEY"
204 Division deleted successfully. No response body.
Archive a division.
/divisions/{id}/archiveArchives a division, making it inactive. Archived divisions are excluded from list results by default.
Important: This action is irreversible. Archived divisions can still be referenced by existing cases.
Path parameters
iduuidRequired
Returns
200 Division archived successfully
iduuidcompanyNamestringnullableregistrationNumberstringnullableaddressstringnullablezipCodestringnullablestatestringnullablecitystringnullablecountryobjectofficeEmailstringnullableofficePhonestringnullableisArchivedbooleancreatedUtcdatetimeupdatedUtcdatetimenullable
curl -X POST https://customer-api.debitura.com/divisions/3f2b6c1e-8a4d-4b7f-9c2e-5d1a0b9e7f31/archive \-H "XApiKey: $DEBITURA_API_KEY"
{"id": "3f2b6c1e-8a4d-4b7f-9c2e-5d1a0b9e7f31","companyName": "Muster GmbH","registrationNumber": "DE123456789","address": "Friedrichstraße 68","zipCode": "10115","state": "string","city": "Berlin","country": {"id": 3,"name": "Muster GmbH","alpha2": "string"},"officeEmail": "finance@example.com","officePhone": "+49 30 1234567","isArchived": true,"createdUtc": "2026-10-01T14:05:00Z","updatedUtc": "2026-10-01T14:05:00Z"}
Archive a division.
/divisions/{id}:archiveArchives a division, making it inactive. Archived divisions are excluded from list results by default.
Important: This action is irreversible. Archived divisions can still be referenced by existing cases.
Path parameters
iduuidRequired
Returns
200 Division archived successfully
iduuidcompanyNamestringnullableregistrationNumberstringnullableaddressstringnullablezipCodestringnullablestatestringnullablecitystringnullablecountryobjectofficeEmailstringnullableofficePhonestringnullableisArchivedbooleancreatedUtcdatetimeupdatedUtcdatetimenullable
curl -X POST https://customer-api.debitura.com/divisions/3f2b6c1e-8a4d-4b7f-9c2e-5d1a0b9e7f31:archive \-H "XApiKey: $DEBITURA_API_KEY"
{"id": "3f2b6c1e-8a4d-4b7f-9c2e-5d1a0b9e7f31","companyName": "Muster GmbH","registrationNumber": "DE123456789","address": "Friedrichstraße 68","zipCode": "10115","state": "string","city": "Berlin","country": {"id": 3,"name": "Muster GmbH","alpha2": "string"},"officeEmail": "finance@example.com","officePhone": "+49 30 1234567","isArchived": true,"createdUtc": "2026-10-01T14:05:00Z","updatedUtc": "2026-10-01T14:05:00Z"}