Title: Custom Order ID
Last modified: November 1, 2017

---

# Custom Order ID

 *  Resolved [chodos](https://wordpress.org/support/users/chodos/)
 * (@chodos)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/custom-order-id/)
 * Can I create a order with a custom ID? I receive orders with an ID via an external
   API and I would like to use this IDs on orders in WooCommerce. How to do it? 
   Thank you!

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

 *  [vankaa](https://wordpress.org/support/users/vankaa/)
 * (@vankaa)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/custom-order-id/#post-9640962)
 * You can try using the `'woocommerce_order_number'` filter and instead of changing
   the order ID, change the visual order number.
 *  Thread Starter [chodos](https://wordpress.org/support/users/chodos/)
 * (@chodos)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/custom-order-id/#post-9642258)
 * Thanks [@vankaa](https://wordpress.org/support/users/vankaa/), but it does not
   solve. This filter only changes what is displayed, the ID remains the same. I
   would like to change the ID in the database to find the order again with the 
   ID that I receive through the API.
    But I do not think it’s possible, I’ll use
   metadata.
 *  [vankaa](https://wordpress.org/support/users/vankaa/)
 * (@vankaa)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/custom-order-id/#post-9642337)
 * Changing the ID is not possible. Save the new ID to the order meta and query 
   the orders via the meta.
 *  Thread Starter [chodos](https://wordpress.org/support/users/chodos/)
 * (@chodos)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/custom-order-id/#post-9642423)
 * Okay, I’ll do it. Thanks!

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

The topic ‘Custom Order ID’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [chodos](https://wordpress.org/support/users/chodos/)
 * Last activity: [8 years, 8 months ago](https://wordpress.org/support/topic/custom-order-id/#post-9642423)
 * Status: resolved