woocommerce rest API
-
Hello,
I am trying to send woocommerce checkout fields using Legacy rest API to and endpoint. here are the fields i am sending:
‘order_id’ => $order->get_order_number(),
‘order’ => new WC_Order($order_id),
‘order_date’ => $order->order_date,
‘billing_first_name’ => $order->get_billing_first_name(),
‘billing_last_name’ => $order->get_billing_last_name(),
‘billing_company’ => $order->get_billing_company(),
‘billing_email’ => $order->get_billing_email(),
‘billing_phone’ => $order->get_billing_phone(),
‘billing_address_1’ => $order->get_billing_address_1(),
‘billing_address_2’ => $order->get_billing_address_2(),
‘billing_postcode’ => $order->get_billing_postcode(),‘billing_city’ => $order->get_billing_city(),
‘billing_country’ => $order->get_billing_country(),
‘customer_note’ => $order->get_customer_note(),my only problem is that billing phone is sending as null to the end point, while the rest of the fields are sending successfully.
FieldName: Phone.
Message: Phone: is null. (). -
Hi there,
If you have WooCommerce installed on a WordPress.com Business Plan or have a paid WooCommerce extension on a self-hosted site you can open a ticket while logged into your account at:
https://woocommerce.com/my-account/create-a-ticket/
But, if your site is self-hosted and built using the WordPress.org open software, you’ll need to seek assistance from their forums which can be found at:
https://wordpress.org/support/plugin/woocommerce
These forums are for WordPress.com hosted websites. If you want to know the difference between the two, you can find more information in this document:
- The topic ‘woocommerce rest API’ is closed to new replies.