POST
/
v1
/
{tenantId}
/
customers
/
{customerId}
/
add-case-vouchers
curl --request POST \
  --url https://api.debbiecollect.com/v1/{tenantId}/customers/{customerId}/add-case-vouchers \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "caseVouchers": [
    {
      "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"
    }
  ]
}'
[
  {
    "merged": true,
    "caseId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "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 the customer is related to

customerId
string
required

Customer id

Body

application/json

List of new case vouchers

The body is of type object.

Response

200 - application/json

Successful operation

The response is of type object[].