POST
/
v1
/
{tenantId}
/
case-vouchers
/
{caseId}
Add case voucher to case
curl --request POST \
  --url https://api.debbiecollect.com/v1/{tenantId}/case-vouchers/{caseId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "currency": "DKK",
  "amount": -100000,
  "referenceId": "D12412347",
  "text": "J.no. 1234",
  "date": "2024-05-28 00:00:00.000+01",
  "source": "CREDITOR",
  "voucherTypeId": "eb41e58e-fccf-419d-a771-cd5027fe6e87"
}'
{
  "caseVoucherId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

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
required

Id of the tenant

caseId
string
required

Case id

Body

application/json

New case voucher object

The body is of type object.

Response

200
application/json

Successful operation

The response is of type object.