Title: Error executing API call (422: Unprocessable Entity)
Last modified: April 13, 2024

---

# Error executing API call (422: Unprocessable Entity)

 *  Resolved [stevejonk](https://wordpress.org/support/users/stevejonk/)
 * (@stevejonk)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/error-executing-api-call-422-unprocessable-entity/)
 * Hi!
 * Since a week or so, two of my clients for who I implemented this plugin had difficulties
   with payments. For both of them I see the following error in the logs:
   `Error
   executing API call (422: Unprocessable Entity): The 'billingAddress.givenName'
   field should have more than 1 character`
 * This makes sense, as no customer information seems to be sent to Mollie. Any 
   idea how this can happen? It happens for different payment methods.
 * Below is the full trace for a failed order (with Klarna):
 * `2024-04-11T09:43:44+00:00 Foutopsporing klarnapaylater: Start process_payment
   for order 657926
   Aanvullende context2024-04-11T09:43:44+00:00 Foutopsporing getUserMollieCustomerId:
   Mollie Customer ID (cst_TgdTHQ4cyx) found and valid for user 10076 on this API
   key. (live).2024-04-11T09:43:44+00:00 Foutopsporing mollie_wc_gateway_klarnapaylater:
   Create Mollie payment object for order 657926Aanvullende context2024-04-11T09:
   43:44+00:00 Foutopsporing Order 657926 returnUrl: https://rubia-boutique.nl/checkout/
   order-received/657926/?key=wc_order_XW0gCJZPDYUAu&order_id=657926&filter_flag
   =onMollieReturnAanvullende context2024-04-11T09:43:44+00:00 Foutopsporing Order
   657926 webhookUrl: https://rubia-boutique.nl/wc-api/mollie_wc_gateway_klarnapaylater?
   order_id=657926&key=wc_order_XW0gCJZPDYUAu&filter_flagAanvullende context2024-
   04-11T09:43:44+00:00 Foutopsporing Creating payment object: type Order, first
   try creating a Mollie Order.2024-04-11T09:43:44+00:00 Foutopsporing {"amount":{"
   currency":"EUR","value":"289.90"},"redirectUrl":"https:\/\/rubia-boutique.nl\/
   checkout\/order-received\/657926\/?key=wc_order_XW0gCJZPDYUAu&order_id=657926&
   filter_flag=onMollieReturn","webhookUrl":"https:\/\/rubia-boutique.nl\/wc-api\/
   mollie_wc_gateway_klarnapaylater?order_id=657926&key=wc_order_XW0gCJZPDYUAu&filter_flag","
   method":"klarnapaylater","payment":{"issuer":null,"customerId":"cst_TgdTHQ4cyx"},"
   locale":"nl_NL","metadata":{"order_id":657926,"order_number":"74473"},"orderNumber":"
   74473","lines":[{"sku":"112159","name":"Skirt Mrs Mabe lavender - S\/M","quantity":
   1,"vatRate":21,"unitPrice":{"currency":"EUR","value":"139.95"},"totalAmount":{"
   currency":"EUR","value":"139.95"},"vatAmount":{"currency":"EUR","value":"24.29"},"
   discountAmount":{"currency":"EUR","value":"0.00"},"metadata":{"order_item_id":
   17111}},{"sku":"112156","name":"Top Mrs Mabe lavender","quantity":1,"vatRate":
   21,"unitPrice":{"currency":"EUR","value":"149.95"},"totalAmount":{"currency":"
   EUR","value":"149.95"},"vatAmount":{"currency":"EUR","value":"26.02"},"discountAmount":{"
   currency":"EUR","value":"0.00"},"metadata":{"order_item_id":17112}},{"type":"
   shipping_fee","name":"Verzending","quantity":1,"vatRate":0,"unitPrice":{"currency":"
   EUR","value":"0.00"},"totalAmount":{"currency":"EUR","value":"0.00"},"vatAmount":{"
   currency":"EUR","value":"0.00"},"metadata":{"order_item_id":"17113"}}]}2024-04-
   11T09:43:45+00:00 Foutopsporing Creating payment object: type Order failed, stopping
   process.2024-04-11T09:43:45+00:00 Foutopsporing klarnapaylater: Failed to create
   Mollie payment object for order 657926: [2024-04-11T09:43:45+0000] Error executing
   API call (422: Unprocessable Entity): The 'billingAddress.givenName' field should
   have more than 1 character.. Documentation: https://docs.mollie.com/reference/
   v2/orders-api/create-order. Request body: {"status":422,"title":"Unprocessable
   Entity","detail":"The 'billingAddress.givenName' field should have more than 
   1 character.","field":"payment.billingAddress.givenName","_links":{"documentation":{"
   href":"https://docs.mollie.com/reference/v2/orders-api/create-order","type":"
   text/html"}}}. Field: payment.billingAddress.givenName2024-04-11T11:17:46+00:
   00 Foutopsporing Mollie\WooCommerce\Payment\PaymentModule::cancelOrderAtMollie-
   657926 - Try to process cancelled order at Mollie.2024-04-11T11:17:46+00:00 Foutopsporing
   Mollie\WooCommerce\Payment\PaymentModule::cancelOrderAtMollie - 657926 - Order
   contains Mollie payment method, but not a valid Mollie Order ID. Canceling order
   failed.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [Femi](https://wordpress.org/support/users/femiyb/)
 * (@femiyb)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/error-executing-api-call-422-unprocessable-entity/#post-17694080)
 * Hello
 * The ‘Firstname’ and ‘Lastname’ fields require more than one character each. The
   error you’re encountering suggests that the buyer may have entered invalid details.
   Please verify that all the provided information meets the required criteria.
 * Regards,
   Femi.
 *  Thread Starter [stevejonk](https://wordpress.org/support/users/stevejonk/)
 * (@stevejonk)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/error-executing-api-call-422-unprocessable-entity/#post-17694288)
 * Hi [@femiyb](https://wordpress.org/support/users/femiyb/) ,
 * I have read that error message as well. 
   The provided information is all there,
   in all different cases. For some it was an existing customer (with the correct
   information stored in customer object) and for others it was an anonymous order,
   with the information filled in properly.
 * As you can see in the attached log (maybe scroll down a bit in it), no customer
   information is sent at all. Normally – for other orders – the logs also contain
   the personal information.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Error executing API call (422: Unprocessable Entity)’ is closed to new
replies.

 * ![](https://ps.w.org/mollie-payments-for-woocommerce/assets/icon-256x256.png?
   rev=3090580)
 * [Mollie Payments for WooCommerce](https://wordpress.org/plugins/mollie-payments-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mollie-payments-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mollie-payments-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/mollie-payments-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mollie-payments-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mollie-payments-for-woocommerce/reviews/)

## Tags

 * [api](https://wordpress.org/support/topic-tag/api/)
 * [missing](https://wordpress.org/support/topic-tag/missing/)

 * 2 replies
 * 2 participants
 * Last reply from: [stevejonk](https://wordpress.org/support/users/stevejonk/)
 * Last activity: [2 years, 1 month ago](https://wordpress.org/support/topic/error-executing-api-call-422-unprocessable-entity/#post-17694288)
 * Status: resolved