Go to WooCommerce > Settings > Advanced
Go to the REST API tab and click Add key.
Give the key a description for your own reference, choose a user with access to orders etc, and give the key read/write permissions.
Click Generate api key.
Your keys will be shown – do not close this tab yet, the secret will be hidden if you try to view the key again.
6. Copy the Consumer key in the consumer key field
7. Copy the Consumer secret in the Cobnsumer secret field