Is the wc order_key always unique?
The API call to /wp-json/wc/v3/orders results in -> {.. "id" : 123,..., "order_key": "wc_order_ru4mFC4nNfDAE",...}.
The following code shows the set_order_key function in the wc_order class. They use a substring but I cant figure out the source of $value.
public function set_order_key( $value ) {
$this->set_prop( 'order_key', substr( $value, 0, 22 ) );
}
I want to use the order_key to sync the database of a remote telegram bot, that handles subscription tables.