Site icon Hip-Hop Website Design and Development

Add a buttons inside WooCommerce order page to send order info vai API to the shipping company [closed]

I want to send order details directly to the shipping company directly from order page via their API, instead of filling info manually in their website.

How to add a button next to order and when it’s clicked the info will be sent via API.

and what code should I use to get the order details (name, address, phone …)

this is their API:

http://pro.tunisia-express.tn/api/telifouni/additem?format=json&api_key=xxxxxxxxxxxxxxxxxxxxxxx&destinataire=receivername&user_name=**telifouni**&date_enlevement=**2017-09-29**&date_livraison=**2017-09-30**&adresse_de_livraison=**somwhere**&gouvernorat_livraison=**5**&telephone_de_contact_livraison=**50000000**&code_postal_livraison=**2097**&nombre_de_colis=**2**&libelle_de_marchandise=**fragile**&valeur_marchandise=**100**&barcode_client=011100111

What is the best approach for this?