{"openapi":"3.1.0","info":{"title":"Nayera AI purchase API","version":"1.0.0","description":"Lets people or AI agents buy a Nayera workspace (HR, Legal, Finance, CEO agentic systems) for their company. Every order starts a 14-day free trial; nothing is charged today."},"servers":[{"url":"https://www.nayera7.namaguide.com"}],"paths":{"/api/public/v1/plans":{"get":{"summary":"List plans, prices and limits","responses":{"200":{"description":"Plans"}}}},"/api/public/v1/orders":{"post":{"summary":"Create an order and provision a trial workspace","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["company_name","admin_email","plan","seats","accept_terms"],"properties":{"company_name":{"type":"string"},"admin_email":{"type":"string","format":"email"},"plan":{"type":"string","enum":["starter","business","enterprise"]},"billing_cycle":{"type":"string","enum":["monthly","yearly"],"default":"monthly"},"seats":{"type":"integer"},"country":{"type":"string","description":"ISO 3166-1 alpha-2"},"max_amount":{"type":"number","description":"Spending cap per billing period; the order is refused if the price is higher"},"buyer_agent":{"type":"string","description":"Name of the AI agent placing the order"},"acting_for":{"type":"string","description":"Person or company the agent acts for"},"accept_terms":{"type":"boolean","const":true}}}}}},"responses":{"201":{"description":"Order created; returns order_access_token and api_key once"},"400":{"description":"Invalid order"},"402":{"description":"Price above max_amount"},"429":{"description":"Rate limited"}}}},"/api/public/v1/orders/{orderId}":{"get":{"summary":"Order status (Authorization: Bearer order_access_token)","parameters":[{"name":"orderId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Order"},"404":{"description":"Not found"}}},"post":{"summary":"Cancel during trial: body {\"action\":\"cancel\"}","parameters":[{"name":"orderId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Cancelled, nothing charged"}}}}}}