Title: Order API checkout fields
Last modified: April 20, 2023

---

# Order API checkout fields

 *  Resolved [toddi2303](https://wordpress.org/support/users/toddi2303/)
 * (@toddi2303)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/order-api-checkout-fields/)
 * When I created new checkout fields I wonder if those are part of the woocommerce
   get-orders API and where I can find them.

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

 *  Plugin Contributor [Bartek](https://wordpress.org/support/users/bartj/)
 * (@bartj)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/order-api-checkout-fields/#post-16683721)
 * Hi [@toddi2303](https://wordpress.org/support/users/toddi2303/)!
 * Checkout fields are saved as an order meta values, so any `$order->get_meta('_
   <field_name>')` should be able to retrieve custom values (mind the underscore
   at the beginning of the field name).
 * Alternatively, there’s a class `\WPDesk\FCF\Free\Integration\Integrator` in our
   codebase, which provides an API to access fields and its values in specified 
   order. To make use of this class, you need to hook into `flexible_checkout_fields/
   init`.
 * Here’s an example for getting order field value:
 *     ```wp-block-code
       add_action(
         'flexible_checkout_fields/init',
         static function ( $integrator ) {
           // Get value of custom field for order #13.
           $field = $integrator->get_field_value( 'custom_field', 13 );
           // ...
         }
       );
       ```
   
 *  Thread Starter [toddi2303](https://wordpress.org/support/users/toddi2303/)
 * (@toddi2303)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/order-api-checkout-fields/#post-16687977)
 * Thanks Bartek,
 * I meant how to get the mate data via the REST API and not inside WP. Might be
   that I found it in the meta data properties section. When I can believe the API
   documentation the meta fields will be listed there. Unfortunately I could not
   find it before I wrote this post.
 * Thanks anyways

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

The topic ‘Order API checkout fields’ is closed to new replies.

 * ![](https://ps.w.org/flexible-checkout-fields/assets/icon-256x256.gif?rev=2522628)
 * [Flexible Checkout Fields for WooCommerce - WooCommerce Checkout Manager](https://wordpress.org/plugins/flexible-checkout-fields/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/flexible-checkout-fields/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/flexible-checkout-fields/)
 * [Active Topics](https://wordpress.org/support/plugin/flexible-checkout-fields/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/flexible-checkout-fields/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/flexible-checkout-fields/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [toddi2303](https://wordpress.org/support/users/toddi2303/)
 * Last activity: [3 years, 1 month ago](https://wordpress.org/support/topic/order-api-checkout-fields/#post-16687977)
 * Status: resolved