zwaldeck / mollie

Java framework to consume the Mollie API
Other
39 stars 37 forks source link

Unprocessable Entity #96

Closed Micha0581 closed 1 year ago

Micha0581 commented 1 year ago

Hello, when I try to create an order I get the following error message:

_Error response from mollie with status code '422' and body: {"status":422,"title":"Unprocessable Entity","detail":"The amount contains an invalid value","field":"amount.value","links":{"documentation":{"href":"https://docs.mollie.com/overview/handling-errors","type":"text/html"}}}

The problem is the BigDecimal data type of the "value" attribute. The API expects a String data type. https://docs.mollie.com/reference/v2/orders-api/create-order#parameters

Robybob9 commented 1 year ago

I am having the same problem!

zwaldeck commented 1 year ago

Fixed in version 4.0.1

Robybob9 commented 1 year ago

I still have this problem, maybe I am doing something wrong? Changed the version in pom.xml! molliefout