Getting 500 “internal_server_error” for POST order WooCommerce API
-
Hi Team,
We get a 500 “internal_server_error” while invoking the below WooCommerce Rest API. This especially happens when the country is “IS” which is the country code for Iceland and a valid one. Can you please check this?
POST https://stokkur.wpcomstaging.com/wp-json/wc/v3/orders
Sample Request :
{ "customer_id": 194470358, "customer_note": "Beware of aggresive dogs", "payment_method": "google", "payment_method_title": "Google Pay Payment", "set_paid": false, "billing": { "first_name": "Pujitha", "last_name": "M", "address_1": "Stokkur Software", "address_2": "Borgatun", "city": "Reykjavik", "state": "", "postcode": "105", "country": "IS", "email": "[email protected]", "phone": "6550601" }, "shipping": { "first_name": "Pujitha", "last_name": "M", "address_1": "Stokkur Software", "address_2": "Borgatun", "city": "Reykjavik", "state": "", "postcode": "105", "country": "IS" }, "line_items": [ { "product_id": 388, "quantity": 1 } ], "shipping_lines": [ ] }
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Getting 500 “internal_server_error” for POST order WooCommerce API’ is closed to new replies.