{"openapi":"3.1.0","info":{"title":"Refund Tracker — Studio Apps Connector","version":"1.0.0","description":"Track Amazon, Flipkart, Swiggy, Myntra, Zomato refunds. Parses order emails from Muse Gmail reads."},"servers":[{"url":"https://refunds.studioapps.dev"}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"studio_<token>"}}},"security":[{"bearerAuth":[]}],"paths":{"/api/v1/gmail/sync":{"post":{"summary":"Sync orders parsed from Gmail emails (Muse workflow)","tags":["Gmail Integration"],"description":"Requires X-Studio-User-Id header. Muse reads Gmail, sends email batch here."}},"/api/v1/gmail/parse":{"post":{"summary":"Parse a single order email","tags":["Gmail Integration"]}},"/api/v1/sync/status":{"get":{"summary":"Last Gmail sync status for user","tags":["Gmail Integration"]}},"/api/v1/integration/guide":{"get":{"summary":"Muse + Gmail integration guide","tags":["Gmail Integration"]}},"/api/v1/orders":{"get":{"summary":"List orders (synced or demo)","tags":["Orders"]}},"/api/v1/refunds/pending":{"get":{"summary":"Pending refunds","tags":["Refunds"]}},"/api/v1/returns/deadlines":{"get":{"summary":"Return windows closing soon","tags":["Returns"]}},"/api/v1/memberships/analysis":{"get":{"summary":"Membership worth analysis","tags":["Memberships"]}},"/api/v1/orders/{id}/track":{"get":{"summary":"Track order/refund","tags":["Orders"]}}}}