{"openapi":"3.0.3","info":{"title":"xAWB Business API","version":"1.0.0","description":"Track Romanian courier shipments. Authenticate with an API key created in your xAWB Business account: 'Authorization: Bearer xawb_live_...'."},"servers":[{"url":"https://beta.xawb.ro"}],"components":{"securitySchemes":{"ApiKey":{"type":"http","scheme":"bearer"}}},"security":[{"ApiKey":[]}],"paths":{"/api/v1/track":{"get":{"summary":"Track an AWB","parameters":[{"name":"awb","in":"query","required":true,"schema":{"type":"string"}},{"name":"provider","in":"query","required":true,"schema":{"type":"string","enum":["fan","cargus","gls-ro","sameday","dpd","tnt","posta"]}},{"name":"lang","in":"query","required":false,"schema":{"type":"string","enum":["ro","en"]}}],"responses":{"200":{"description":"Tracking result"},"400":{"description":"Bad request"},"401":{"description":"Invalid key"},"403":{"description":"Business plan required"}}}},"/api/v1/awbs":{"get":{"summary":"List saved AWBs","responses":{"200":{"description":"List"}}},"post":{"summary":"Save an AWB to track","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["awb","provider"],"properties":{"awb":{"type":"string"},"provider":{"type":"string"}}}}}},"responses":{"201":{"description":"Created"}}}},"/api/v1/account":{"get":{"summary":"Account + plan + usage","responses":{"200":{"description":"Account"}}}},"/api/v1/report":{"get":{"summary":"Status rollup of your saved AWBs (counts by status, delivered/in-transit, freshness)","responses":{"200":{"description":"Report"}}}}}}