Luxeurs

final testing

import requests import json shopify_store = 'luxeurs-com.myshopify.com' api_key = '85641c3df17f975b12eef39a379b599a' api_secret_key = '98ce73dc26ef5004c9e76834f08a4264' access_token = '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' order_number = input("Enter your order number: ") api_url = f"https://{api_key}:{api_secret_key}@{shopify_store}/admin/api/2021-09/orders.json?name={order_number}" response = requests.get(api_url, headers={"X-Shopify-Access-Token": access_token}) response_json = json.loads(response.text) if response_json['orders']: tracking_url = response_json['orders'][0]['fulfillments'][0]['tracking_url'] print(f"Your order tracking URL is: {tracking_url}") else: print("Order not found.")