cURL
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" } ]
Add new case vouchers to a customer
Authentication can be done by using a bearer token in the Authorization header. This is done using the following format Authorization: Bearer {token}.
Authorization: Bearer {token}
Id of the tenant the customer is related to
Customer id
List of new case vouchers
Show child attributes
Successful operation
Whether the new case voucher was merged with an existing one
Id of the case that the case voucher is added to
Id of the case new case voucher