Skip to main content
POST

Authorizations

Authorization
string
header
required

Authentication can be done by using a bearer token in the Authorization header. This is done using the following format Authorization: Bearer {token}.

Path Parameters

tenantId
string<uuid>
required

Id of the tenant

Query Parameters

creditorId
string<uuid>
required

Id of the creditor the case voucher belongs to

Body

application/json

The creditor allocation

One payment or credit note allocated across one or more case vouchers. All matches are validated and saved in one transaction. There is no separate total amount: each created voucher is the sum of its case's match amounts.

voucherTypeId
enum<string>
required

Type of the new allocation voucher: deposit (c51f2f6a-8081-45ef-b52d-5e0569fdf12e) or credit note (ef2cdc50-230f-4046-b1af-0f9c498dddd3).

Available options:
c51f2f6a-8081-45ef-b52d-5e0569fdf12e,
ef2cdc50-230f-4046-b1af-0f9c498dddd3
matches
object[]
required

Allocations to existing debt vouchers belonging to the supplied creditor. Targets may belong to different cases, but must use the same currency. Amounts are summed per case to create one allocation voucher per case.

Minimum array length: 1

One target case voucher and the positive amount to apply to it in minor units. Give exactly one of caseVoucherId and caseVoucherReferenceId; the unused identifier may be absent or null. A target may only occur once, including when identified by both its ID and reference in separate matches.

date

Date of the payment or credit note: YYYY-MM-DD or an ISO 8601 timestamp with Z or a timezone offset (for example, 2026-09-21T12:34:56+02:00). Defaults to now. Invalid calendar dates and timestamps without a timezone are rejected.

currency
enum<string>

Optional currency assertion. When omitted, the first target determines the currency. All targets must use that currency; mixed-currency requests are rejected.

Available options:
DKK,
SEK,
NOK,
USD,
EUR,
GBP,
CHF
text
string

Free text shown on the created allocation voucher.

Response

All allocations were registered. Returns one allocation voucher per case.

caseId
string<uuid>
required

Id of the case the allocation was registered on

caseVoucherId
string<uuid>
required

Id of the created payment or credit note voucher

amount
integer
required

Sum of the matchedAmount values on this case, in minor units.

currency
enum<string>
required

Currency

Available options:
DKK,
SEK,
NOK,
USD,
EUR,
GBP,
CHF
date
string
required
voucherTypeId
enum<string>
required

Type of the new allocation voucher: deposit (c51f2f6a-8081-45ef-b52d-5e0569fdf12e) or credit note (ef2cdc50-230f-4046-b1af-0f9c498dddd3).

Available options:
c51f2f6a-8081-45ef-b52d-5e0569fdf12e,
ef2cdc50-230f-4046-b1af-0f9c498dddd3
targetCaseVouchers
object[]
required

Only targets on this case, with their allocated amounts.

Minimum array length: 1