I'm trying out 0.24.0 and I run into problems with this call:
curl -v \
-X POST \
-u admin:admin \
-H "X-Killbill-ApiKey: Knifethrower" \
-H "X-Killbill-ApiSecret: abc123" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "X-Killbill-CreatedBy: snakecharmer" \
-H "X-Killbill-Reason: external-invoice-A20230308011733386.xlsx" \
-d '[{"accountId": "8c4d4d71-0f4a-434c-8833-b40ca2a19114", "description": "I20230308011733386", "startDate": "2020-09-01", "amount": 100.00,"currency": "NZD" }]' \
"
http://192.168.1.121:8080/1.0/kb/invoices/charges/e595bb30-c35f-4846-a660-95ad00249683?requestedDate=2020-09-01&autoCommit=true"
The response I get is:
{"className":"java.lang.ArrayIndexOutOfBoundsException","code":null,"message":"Index 1 out of bounds for length 1","causeClassName":null,"causeMessage":null,"stackTrace":[]}
Note that the account id is valid. I can do this command without error:
curl -v \
-u admin:admin \
-H "X-Killbill-ApiKey: Knifethrower" \
-H "X-Killbill-ApiSecret: abc123" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
"
http://192.168.1.121:8080/1.0/kb/accounts/e595bb30-c35f-4846-a660-95ad00249683"
I have seen the same error on a different call but, alas, I don't know which one atm. Hopefully I have the same problem there though.
Thanks for your help