cURL
curl --request POST \ --url https://api.example.com/api/vendor-credits/{vendorCreditId}/apply-to-bills \ --header 'Authorization: <authorization>' \ --header 'Content-Type: application/json' \ --header 'organization-id: <organization-id>' \ --data ' { "entries": [ { "billId": 1, "amount": 100.5 }, { "billId": 2, "amount": 50 } ] } '
Value must be 'Bearer ' where is an API key prefixed with 'bc_' or a JWT token.
"Bearer bc_1234567890abcdef"
Required if Authorization is a JWT token. The organization ID to operate within.
Entries of bill ID and amount to apply
Show child attributes
[ { "billId": 1, "amount": 100.5 }, { "billId": 2, "amount": 50 }]