#Small bug in Sales Invoice API

1 messages ยท Page 1 of 1 (latest)

compact kayak
#

Hey, I found another small bug in the Sales Invoice API: When I create a Sales Invoice, I set the VAT rate to "21.00" in my request. In the response of the create request, the VAT rate is then returned as "21" by the Mollie API.

This behavior is inconsistent with the order API, where the VAT rate is always specified with the correct number of decimals.

Tagging @iron imp

compact kayak
#

Found some more bugs: When creating a Sales Invoice, I passed in the values recipient.type=consumer and recipient.locale=nl_NL. These are required fields. However, in the Mollie response of the create request, these fields are not present in the response

iron imp
#

Hiya, and thanks for the heads up! Will look into both this week, though the locale issue might be a tough one, since we only really store the language code part of it at this point.

iron imp
#

Alright, the vat rate is now always a 2-decimal formatted string (so 21.00, for example), and the recipient type is returned as well ๐Ÿ™‚

As for the locale, for now there's no quick fix. We'll need to look into it.

compact kayak
#

Thanks @iron imp ๐Ÿ‘

#

Regarding the locale: You could also update the docs to reflect that you won't be returning the locale property ๐Ÿ˜‰