{"openapi":"3.0.3","info":{"title":"Nakroteck Client API","version":"1.0.0","description":"First-party client API for account management, catalog lookup, hosting, domains, and invoice-first ordering."},"servers":[{"url":"https:\/\/nakroteck.net\/api\/v1","description":"Current Nakroteck environment"}],"tags":[{"name":"Developers","description":"OpenAPI specification and documentation support"},{"name":"Auth","description":"Token login and token management"},{"name":"Catalog","description":"Public products and domain pricing"},{"name":"Domains","description":"Domain search and client domain management"},{"name":"Clients","description":"Client account profile and account overview"},{"name":"Mobile","description":"Flutter app configuration, push devices, and mobile payment hints"},{"name":"Billing","description":"Invoices, payments, and orders"},{"name":"Hosting","description":"Hosting account management"},{"name":"Support","description":"Support ticket management"}],"paths":{"\/openapi.json":{"get":{"tags":["Developers"],"summary":"Get this OpenAPI document","operationId":"openApiSpec","security":[],"responses":{"200":{"description":"OpenAPI document","content":{"application\/json":{"schema":{"type":"object"}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Validation error"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}}}},"\/status":{"get":{"tags":["Developers"],"summary":"Get API health and version","operationId":"apiStatus","security":[],"responses":{"200":{"description":"API status","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiStatus"}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Validation error"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}}}},"\/mobile\/config":{"get":{"tags":["Mobile"],"summary":"Get Flutter app configuration","operationId":"mobileConfig","security":[],"responses":{"200":{"description":"Mobile app configuration","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/MobileConfig"}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Validation error"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}}}},"\/broadcasting\/auth":{"post":{"tags":["Mobile"],"summary":"Authorize mobile Reverb channels","operationId":"mobileBroadcastAuth","security":[{"bearerAuth":[]}],"parameters":[],"responses":{"200":{"description":"Pusher protocol auth response","content":{"application\/json":{"schema":{"type":"object"}}}},"403":{"description":"Channel access denied","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Channel access denied"}}}},"422":{"description":"Invalid channel authorization request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Invalid channel authorization request"}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}},"description":"Sanctum-protected channel authorization for Nakapp realtime. Supports private-client.{clientId} with clients:read, and private-client.{clientId}.tickets, presence-ticket.{ticketId}, and private-ticket.{ticketId} with tickets:read. Client and ticket access is checked for every subscription.","requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"},"example":{"socket_id":"1234.5678","channel_name":"presence-ticket.123"}}},"description":"Broadcast auth request"}}},"\/auth\/login":{"post":{"tags":["Auth"],"summary":"Issue a Sanctum bearer token","description":"Use a verified, eligible client portal email and password to create a token valid for 30 days. Verify your email in the client area first. Paste the returned access_token into the bearer authorization field to test protected endpoints.","operationId":"login","security":[],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"},"example":{"email":"client@example.com","password":"secret-password","device_name":"API docs console"}}},"description":"Login credentials"},"responses":{"200":{"description":"Token issued","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/LoginResponse"}}}},"403":{"description":"Account cannot access the client API","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Account cannot access the client API"}}}},"422":{"description":"Invalid credentials or validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Invalid credentials or validation error"}}}},"429":{"description":"Too many login attempts","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Too many login attempts"}}}}}}},"\/auth\/logout":{"post":{"tags":["Auth"],"summary":"Revoke the current token","operationId":"logout","security":[{"bearerAuth":[]}],"parameters":[],"responses":{"200":{"description":"Token revoked.","content":{"application\/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"Token revoked."}}}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Validation error"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}}}},"\/auth\/tokens":{"get":{"tags":["Auth"],"summary":"List current user tokens","operationId":"listTokens","security":[{"bearerAuth":[]}],"parameters":[],"responses":{"200":{"description":"Token list","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/ApiToken"}}}}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Validation error"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}}}},"\/auth\/tokens\/{token}":{"delete":{"tags":["Auth"],"summary":"Revoke one token by ID","operationId":"revokeToken","security":[{"bearerAuth":[]}],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"integer"},"example":12}],"responses":{"200":{"description":"Token revoked.","content":{"application\/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"Token revoked."}}}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Validation error"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}}}},"\/me":{"get":{"tags":["Auth"],"summary":"Get authenticated user and accessible clients","operationId":"me","security":[{"bearerAuth":[]}],"parameters":[],"responses":{"200":{"description":"Current user","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/MeResponse"}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Validation error"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}}}},"\/me\/deletion-eligibility":{"get":{"tags":["Auth"],"summary":"Check account deletion eligibility","operationId":"accountDeletionEligibility","security":[{"bearerAuth":[]}],"parameters":[],"responses":{"200":{"description":"Deletion eligibility","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AccountDeletionEligibility"}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Validation error"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}}}},"\/me\/deletion-request":{"post":{"tags":["Auth"],"summary":"Request account deletion","operationId":"accountDeletionRequest","security":[{"bearerAuth":[]}],"parameters":[],"responses":{"200":{"description":"Deletion completed","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AccountDeletionResult"}}}},"409":{"description":"Deletion blocked by active records","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AccountDeletionResult"}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Validation error"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}}}},"\/catalog\/hosting-packages":{"get":{"tags":["Catalog"],"summary":"List public hosting packages","operationId":"hostingPackages","security":[],"responses":{"200":{"description":"Hosting packages","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/HostingPackage"}}}}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Validation error"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}}}},"\/catalog\/domain-tlds":{"get":{"tags":["Catalog"],"summary":"List active domain TLDs and pricing","operationId":"domainTlds","security":[],"responses":{"200":{"description":"Domain TLDs","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/DomainTld"}}}}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Validation error"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}}}},"\/domains\/check":{"post":{"tags":["Domains"],"summary":"Check domain availability","description":"Public domain availability lookup. GH-family domains may return provisional\/manual registration states.","operationId":"checkDomain","security":[],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"},"example":{"domain":"example.com.gh"}}},"description":"Domain lookup"},"responses":{"200":{"description":"Domain availability result","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DomainAvailabilityResponse"}}}},"422":{"description":"Invalid domain request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Invalid domain request"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}}}},"\/domains\/bulk-check":{"post":{"tags":["Domains"],"summary":"Check multiple domains","operationId":"bulkCheckDomains","security":[],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"},"example":{"domains":["example.com","example.com.gh"]}}},"description":"Bulk domain lookup"},"responses":{"200":{"description":"Bulk domain results","content":{"application\/json":{"schema":{"type":"object"}}}},"422":{"description":"Invalid domain list","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Invalid domain list"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}}}},"\/clients":{"get":{"tags":["Clients"],"summary":"List accessible client accounts","operationId":"listClients","security":[{"bearerAuth":[]}],"parameters":[],"responses":{"200":{"description":"Accessible client accounts","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/Client"}}}}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Validation error"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}}}},"\/clients\/{client}":{"get":{"tags":["Clients"],"summary":"Get one client account","operationId":"getClient","security":[{"bearerAuth":[]}],"parameters":[{"name":"client","in":"path","required":true,"schema":{"type":"integer"},"example":7013},{"name":"X-Client-Id","in":"header","required":false,"description":"Optional stateless client-account context. If both route client and header are present, they must match.","schema":{"type":"integer"},"example":7013}],"responses":{"200":{"description":"Client account","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/Client"}}}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Validation error"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}}}},"\/clients\/{client}\/profile":{"patch":{"tags":["Clients"],"summary":"Update client profile","operationId":"updateClientProfile","security":[{"bearerAuth":[]}],"parameters":[{"name":"client","in":"path","required":true,"schema":{"type":"integer"},"example":7013},{"name":"X-Client-Id","in":"header","required":false,"description":"Optional stateless client-account context. If both route client and header are present, they must match.","schema":{"type":"integer"},"example":7013}],"responses":{"200":{"description":"Updated client account","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/Client"}}}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Validation error"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"},"example":{"company_name":"Example Company","first_name":"Ama","last_name":"Mensah","phone":"+233550507788","country":"GH"}}},"description":"Profile fields"}}},"\/clients\/{client}\/overview":{"get":{"tags":["Clients"],"summary":"Get account overview counts","operationId":"clientOverview","security":[{"bearerAuth":[]}],"parameters":[{"name":"client","in":"path","required":true,"schema":{"type":"integer"},"example":7013},{"name":"X-Client-Id","in":"header","required":false,"description":"Optional stateless client-account context. If both route client and header are present, they must match.","schema":{"type":"integer"},"example":7013}],"responses":{"200":{"description":"Client overview","content":{"application\/json":{"schema":{"type":"object"}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Validation error"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}}}},"\/clients\/{client}\/dashboard":{"get":{"tags":["Clients"],"summary":"Get client dashboard summary","operationId":"clientDashboard","security":[{"bearerAuth":[]}],"parameters":[{"name":"client","in":"path","required":true,"schema":{"type":"integer"},"example":7013},{"name":"X-Client-Id","in":"header","required":false,"description":"Optional stateless client-account context. If both route client and header are present, they must match.","schema":{"type":"integer"},"example":7013}],"responses":{"200":{"description":"Client dashboard","content":{"application\/json":{"schema":{"type":"object"}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Validation error"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}}}},"\/clients\/{client}\/events":{"get":{"tags":["Clients"],"summary":"Get recent client events","operationId":"clientEvents","security":[{"bearerAuth":[]}],"parameters":[{"name":"client","in":"path","required":true,"schema":{"type":"integer"},"example":7013},{"name":"X-Client-Id","in":"header","required":false,"description":"Optional stateless client-account context. If both route client and header are present, they must match.","schema":{"type":"integer"},"example":7013}],"responses":{"200":{"description":"Recent events","content":{"application\/json":{"schema":{"type":"object"}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Validation error"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}}}},"\/clients\/{client}\/devices":{"get":{"tags":["Mobile"],"summary":"List registered mobile devices","operationId":"listMobileDevices","security":[{"bearerAuth":[]}],"parameters":[{"name":"client","in":"path","required":true,"schema":{"type":"integer"},"example":7013},{"name":"X-Client-Id","in":"header","required":false,"description":"Optional stateless client-account context. If both route client and header are present, they must match.","schema":{"type":"integer"},"example":7013}],"responses":{"200":{"description":"Mobile devices","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/MobileDevice"}}}}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Validation error"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}}},"post":{"tags":["Mobile"],"summary":"Register or update a Flutter push device","operationId":"registerMobileDevice","security":[{"bearerAuth":[]}],"parameters":[{"name":"client","in":"path","required":true,"schema":{"type":"integer"},"example":7013},{"name":"X-Client-Id","in":"header","required":false,"description":"Optional stateless client-account context. If both route client and header are present, they must match.","schema":{"type":"integer"},"example":7013}],"responses":{"200":{"description":"Updated mobile device","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/MobileDevice"}}}}}},"201":{"description":"Registered mobile device","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/MobileDevice"}}}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Validation error"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"},"example":{"device_id":"flutter-installation-uuid","device_name":"Ama iPhone","platform":"ios","push_provider":"apns","push_token":"push-token-from-firebase-or-apns","app_version":"1.0.0","build_number":"12","locale":"en","timezone":"Africa\/Accra","notifications_enabled":true}}},"description":"Mobile device registration"}}},"\/clients\/{client}\/devices\/{device}":{"delete":{"tags":["Mobile"],"summary":"Unregister a mobile push device","operationId":"unregisterMobileDevice","security":[{"bearerAuth":[]}],"parameters":[{"name":"client","in":"path","required":true,"schema":{"type":"integer"},"example":7013},{"name":"device","in":"path","required":true,"schema":{"type":"integer"},"example":9},{"name":"X-Client-Id","in":"header","required":false,"description":"Optional stateless client-account context. If both route client and header are present, they must match.","schema":{"type":"integer"},"example":7013}],"responses":{"200":{"description":"Unregistered mobile device","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/MobileDevice"}}}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Validation error"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}}}},"\/clients\/{client}\/invoices":{"get":{"tags":["Billing"],"summary":"List client invoices","operationId":"listInvoices","security":[{"bearerAuth":[]}],"parameters":[{"name":"client","in":"path","required":true,"schema":{"type":"integer"},"example":7013},{"name":"X-Client-Id","in":"header","required":false,"description":"Optional stateless client-account context. If both route client and header are present, they must match.","schema":{"type":"integer"},"example":7013}],"responses":{"200":{"description":"Invoices","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/Invoice"}},"links":{"type":"object"},"meta":{"type":"object"}}}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Validation error"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}}}},"\/clients\/{client}\/invoices\/{invoice}":{"get":{"tags":["Billing"],"summary":"Get one invoice","operationId":"getInvoice","security":[{"bearerAuth":[]}],"parameters":[{"name":"client","in":"path","required":true,"schema":{"type":"integer"},"example":7013},{"name":"invoice","in":"path","required":true,"schema":{"type":"integer"},"example":584},{"name":"X-Client-Id","in":"header","required":false,"description":"Optional stateless client-account context. If both route client and header are present, they must match.","schema":{"type":"integer"},"example":7013}],"responses":{"200":{"description":"Invoice","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/Invoice"}}}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Validation error"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}}}},"\/clients\/{client}\/credit\/invoices":{"post":{"tags":["Billing"],"summary":"Create account credit invoice","operationId":"createCreditInvoice","security":[{"bearerAuth":[]}],"parameters":[{"name":"client","in":"path","required":true,"schema":{"type":"integer"},"example":7013},{"name":"X-Client-Id","in":"header","required":false,"description":"Optional stateless client-account context. If both route client and header are present, they must match.","schema":{"type":"integer"},"example":7013},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required for order creation, account credit invoice creation, and payment-starting endpoints. Reuse the same key only when retrying the exact same request for the same client.","schema":{"type":"string","maxLength":160},"example":"order-20260426-001"}],"responses":{"201":{"description":"Account credit invoice created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/CreditInvoiceCreateResponse"}}}},"409":{"description":"Idempotency key conflict","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Idempotency key conflict"}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Validation error"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}},"description":"Creates a normal unpaid Nakroteck invoice for account credit. The client pays the invoice using any enabled payment method, and credit is issued only after the invoice becomes paid.","requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"},"example":{"amount":50}}},"description":"Account credit amount"}}},"\/clients\/{client}\/invoices\/{invoice}\/payments\/start":{"post":{"tags":["Billing"],"summary":"Start native invoice payment","operationId":"startInvoicePayment","security":[{"bearerAuth":[]}],"parameters":[{"name":"client","in":"path","required":true,"schema":{"type":"integer"},"example":7013},{"name":"invoice","in":"path","required":true,"schema":{"type":"integer"},"example":584},{"name":"X-Client-Id","in":"header","required":false,"description":"Optional stateless client-account context. If both route client and header are present, they must match.","schema":{"type":"integer"},"example":7013},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required for order creation, account credit invoice creation, and payment-starting endpoints. Reuse the same key only when retrying the exact same request for the same client.","schema":{"type":"string","maxLength":160},"example":"order-20260426-001"}],"responses":{"201":{"description":"Payment session created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PaymentStartResponse"}}}},"409":{"description":"Invoice is already paid or not payable","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Invoice is already paid or not payable"}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Validation error"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}},"description":"Creates a Stripe PaymentIntent client secret or a Paystack authorization URL for an existing unpaid Nakroteck invoice. Invoice payment is still completed by gateway confirmation and webhooks.","requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"},"example":{"gateway":"stripe","save_card":false}}},"description":"Payment start request"}}},"\/clients\/{client}\/invoices\/{invoice}\/payment-status":{"get":{"tags":["Billing"],"summary":"Get invoice payment status","operationId":"invoicePaymentStatus","security":[{"bearerAuth":[]}],"parameters":[{"name":"client","in":"path","required":true,"schema":{"type":"integer"},"example":7013},{"name":"invoice","in":"path","required":true,"schema":{"type":"integer"},"example":584},{"name":"X-Client-Id","in":"header","required":false,"description":"Optional stateless client-account context. If both route client and header are present, they must match.","schema":{"type":"integer"},"example":7013}],"responses":{"200":{"description":"Invoice payment status","content":{"application\/json":{"schema":{"type":"object"}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Validation error"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}}}},"\/clients\/{client}\/invoices\/{invoice}\/payment-timeline":{"get":{"tags":["Billing"],"summary":"Get invoice payment timeline","operationId":"invoicePaymentTimeline","security":[{"bearerAuth":[]}],"parameters":[{"name":"client","in":"path","required":true,"schema":{"type":"integer"},"example":7013},{"name":"invoice","in":"path","required":true,"schema":{"type":"integer"},"example":584},{"name":"X-Client-Id","in":"header","required":false,"description":"Optional stateless client-account context. If both route client and header are present, they must match.","schema":{"type":"integer"},"example":7013}],"responses":{"200":{"description":"Invoice payment timeline","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/InvoicePaymentTimeline"}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Validation error"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}}}},"\/clients\/{client}\/orders":{"get":{"tags":["Billing"],"summary":"List client orders","operationId":"listOrders","security":[{"bearerAuth":[]}],"parameters":[{"name":"client","in":"path","required":true,"schema":{"type":"integer"},"example":7013},{"name":"X-Client-Id","in":"header","required":false,"description":"Optional stateless client-account context. If both route client and header are present, they must match.","schema":{"type":"integer"},"example":7013}],"responses":{"200":{"description":"Orders","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/Order"}},"links":{"type":"object"},"meta":{"type":"object"}}}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Validation error"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}}},"post":{"tags":["Billing"],"summary":"Create invoice-first order","operationId":"createOrder","security":[{"bearerAuth":[]}],"parameters":[{"name":"client","in":"path","required":true,"schema":{"type":"integer"},"example":7013},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required for order creation, account credit invoice creation, and payment-starting endpoints. Reuse the same key only when retrying the exact same request for the same client.","schema":{"type":"string","maxLength":160},"example":"order-20260426-001"}],"responses":{"201":{"description":"Order created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/OrderCreateResponse"}}}},"409":{"description":"Idempotency key conflict","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Idempotency key conflict"}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Validation error"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}},"description":"Creates an order, invoice, and pending service\/domain records. Provisioning still waits for invoice payment. Requires Idempotency-Key.","requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"},"example":{"items":[{"type":"hosting","package_id":1,"billing_cycle":"annually","domain":"example.com","domain_option":"existing"}],"payment_gateway":"paystack","notes":"Created from API documentation console."}}},"description":"Order payload"}}},"\/clients\/{client}\/orders\/{order}":{"get":{"tags":["Billing"],"summary":"Get one order","operationId":"getOrder","security":[{"bearerAuth":[]}],"parameters":[{"name":"client","in":"path","required":true,"schema":{"type":"integer"},"example":7013},{"name":"order","in":"path","required":true,"schema":{"type":"integer"},"example":123},{"name":"X-Client-Id","in":"header","required":false,"description":"Optional stateless client-account context. If both route client and header are present, they must match.","schema":{"type":"integer"},"example":7013}],"responses":{"200":{"description":"Order","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/Order"}}}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Validation error"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}}}},"\/clients\/{client}\/payments":{"get":{"tags":["Billing"],"summary":"List client payments","operationId":"listPayments","security":[{"bearerAuth":[]}],"parameters":[{"name":"client","in":"path","required":true,"schema":{"type":"integer"},"example":7013},{"name":"X-Client-Id","in":"header","required":false,"description":"Optional stateless client-account context. If both route client and header are present, they must match.","schema":{"type":"integer"},"example":7013}],"responses":{"200":{"description":"Payments","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/Payment"}},"links":{"type":"object"},"meta":{"type":"object"}}}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Validation error"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}}}},"\/orders\/quote":{"post":{"tags":["Billing"],"summary":"Quote an order payload","operationId":"quoteOrder","security":[{"bearerAuth":[]}],"parameters":[{"name":"X-Client-Id","in":"header","required":false,"description":"Optional stateless client-account context. If both route client and header are present, they must match.","schema":{"type":"integer"},"example":7013}],"responses":{"200":{"description":"Quote result","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/OrderQuoteResponse"}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Validation error"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}},"description":"Quotes an order for the selected client account. Use X-Client-Id to choose the account without relying on web session state.","requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"},"example":{"items":[{"type":"hosting","package_id":1,"billing_cycle":"annually","domain":"example.com","domain_option":"existing"}]}}},"description":"Quote payload"}}},"\/clients\/{client}\/hosting":{"get":{"tags":["Hosting"],"summary":"List hosting accounts","operationId":"listHosting","security":[{"bearerAuth":[]}],"parameters":[{"name":"client","in":"path","required":true,"schema":{"type":"integer"},"example":7013},{"name":"X-Client-Id","in":"header","required":false,"description":"Optional stateless client-account context. If both route client and header are present, they must match.","schema":{"type":"integer"},"example":7013}],"responses":{"200":{"description":"Hosting accounts","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/HostingAccount"}},"links":{"type":"object"},"meta":{"type":"object"}}}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Validation error"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}}}},"\/clients\/{client}\/hosting\/{hostingAccount}":{"get":{"tags":["Hosting"],"summary":"Get hosting account","operationId":"getHosting","security":[{"bearerAuth":[]}],"parameters":[{"name":"client","in":"path","required":true,"schema":{"type":"integer"},"example":7013},{"name":"hostingAccount","in":"path","required":true,"schema":{"type":"integer"},"example":1055},{"name":"X-Client-Id","in":"header","required":false,"description":"Optional stateless client-account context. If both route client and header are present, they must match.","schema":{"type":"integer"},"example":7013}],"responses":{"200":{"description":"Hosting account","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/HostingAccount"}}}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Validation error"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}}}},"\/clients\/{client}\/hosting\/{hostingAccount}\/login-url":{"post":{"tags":["Hosting"],"summary":"Create hosting control panel login URL","operationId":"hostingLoginUrl","security":[{"bearerAuth":[]}],"parameters":[{"name":"client","in":"path","required":true,"schema":{"type":"integer"},"example":7013},{"name":"hostingAccount","in":"path","required":true,"schema":{"type":"integer"},"example":1055},{"name":"X-Client-Id","in":"header","required":false,"description":"Optional stateless client-account context. If both route client and header are present, they must match.","schema":{"type":"integer"},"example":7013}],"responses":{"200":{"description":"Temporary login URL","content":{"application\/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"expires_hint_seconds":{"type":"integer"}}}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Validation error"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}}}},"\/clients\/{client}\/hosting\/{hostingAccount}\/usage\/refresh":{"post":{"tags":["Hosting"],"summary":"Refresh cached hosting server usage","operationId":"refreshHostingUsage","security":[{"bearerAuth":[]}],"parameters":[{"name":"client","in":"path","required":true,"schema":{"type":"integer"},"example":7013},{"name":"hostingAccount","in":"path","required":true,"schema":{"type":"integer"},"example":1055},{"name":"X-Client-Id","in":"header","required":false,"description":"Optional stateless client-account context. If both route client and header are present, they must match.","schema":{"type":"integer"},"example":7013}],"responses":{"200":{"description":"Updated hosting account","content":{"application\/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"hosting":{"$ref":"#\/components\/schemas\/HostingAccount"}}}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Validation error"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}}}},"\/clients\/{client}\/hosting\/{hostingAccount}\/upgrade-options":{"get":{"tags":["Hosting"],"summary":"List eligible hosting upgrade packages","operationId":"hostingUpgradeOptions","security":[{"bearerAuth":[]}],"parameters":[{"name":"client","in":"path","required":true,"schema":{"type":"integer"},"example":7013},{"name":"hostingAccount","in":"path","required":true,"schema":{"type":"integer"},"example":1055},{"name":"X-Client-Id","in":"header","required":false,"description":"Optional stateless client-account context. If both route client and header are present, they must match.","schema":{"type":"integer"},"example":7013}],"responses":{"200":{"description":"Upgrade packages","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/HostingUpgradePackage"}}}}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Validation error"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}}}},"\/clients\/{client}\/hosting\/{hostingAccount}\/upgrade":{"post":{"tags":["Hosting"],"summary":"Create hosting upgrade invoice","operationId":"createHostingUpgradeInvoice","security":[{"bearerAuth":[]}],"parameters":[{"name":"client","in":"path","required":true,"schema":{"type":"integer"},"example":7013},{"name":"hostingAccount","in":"path","required":true,"schema":{"type":"integer"},"example":1055},{"name":"X-Client-Id","in":"header","required":false,"description":"Optional stateless client-account context. If both route client and header are present, they must match.","schema":{"type":"integer"},"example":7013}],"responses":{"200":{"description":"Upgrade invoice result","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HostingUpgradeInvoiceResponse"}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Validation error"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}},"description":"Creates an unpaid invoice for a self-service hosting plan change. The package change is applied only after payment.","requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"},"example":{"package_id":12}}},"description":"Upgrade target"}}},"\/clients\/{client}\/hosting\/{hostingAccount}\/change-password":{"post":{"tags":["Hosting"],"summary":"Change hosting password","operationId":"changeHostingPassword","security":[{"bearerAuth":[]}],"parameters":[{"name":"client","in":"path","required":true,"schema":{"type":"integer"},"example":7013},{"name":"hostingAccount","in":"path","required":true,"schema":{"type":"integer"},"example":1055},{"name":"X-Client-Id","in":"header","required":false,"description":"Optional stateless client-account context. If both route client and header are present, they must match.","schema":{"type":"integer"},"example":7013}],"responses":{"200":{"description":"Password changed successfully.","content":{"application\/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"Password changed successfully."}}}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Validation error"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"},"example":{"password":"StrongPassword123!","password_confirmation":"StrongPassword123!"}}},"description":"New password"}}},"\/clients\/{client}\/hosting\/{hostingAccount}\/login-password":{"get":{"tags":["Hosting"],"summary":"Review Plesk login password scope","operationId":"previewPleskLoginPassword","security":[{"bearerAuth":[]}],"parameters":[{"name":"client","in":"path","required":true,"schema":{"type":"integer"},"example":7013},{"name":"hostingAccount","in":"path","required":true,"schema":{"type":"integer"},"example":1055},{"name":"X-Client-Id","in":"header","required":false,"description":"Optional stateless client-account context. If both route client and header are present, they must match.","schema":{"type":"integer"},"example":7013}],"responses":{"200":{"description":"Verified Plesk login, server, sites and scope_token","content":{"application\/json":{"schema":{"type":"object"}}}},"422":{"description":"Unable to verify account ownership","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unable to verify account ownership"}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}},"description":"Requires hosting:manage and an accepted client owner. Returns data.login, data.server, data.sites and data.scope_token. The token expires after 10 minutes. This does not change a password."},"post":{"tags":["Hosting"],"summary":"Change Plesk customer login password","operationId":"changePleskLoginPassword","security":[{"bearerAuth":[]}],"parameters":[{"name":"client","in":"path","required":true,"schema":{"type":"integer"},"example":7013},{"name":"hostingAccount","in":"path","required":true,"schema":{"type":"integer"},"example":1055},{"name":"X-Client-Id","in":"header","required":false,"description":"Optional stateless client-account context. If both route client and header are present, they must match.","schema":{"type":"integer"},"example":7013}],"responses":{"200":{"description":"Plesk login password changed successfully.","content":{"application\/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"Plesk login password changed successfully."}}}}}},"422":{"description":"Validation, ownership or provider confirmation failed","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Validation, ownership or provider confirmation failed"}}}},"429":{"description":"Too many password change attempts","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Too many password change attempts"}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}}},"description":"Requires hosting:manage, an accepted client owner and their current Nakroteck password. First GET this URL and present the entire scope to the user. Changes only the Plesk customer password; FTP, mailbox and Nakroteck passwords are unchanged. A timeout may mean the password changed: check the login before retrying. Passwords are never returned.","requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"},"example":{"password":"NewPanelPassword123!","password_confirmation":"NewPanelPassword123!","current_password":"your-current-Nakroteck-password","scope_token":"copy-from-the-scope-preview","confirm_scope":true}}},"description":"Confirmed Plesk login password change"}}},"\/clients\/{client}\/hosting\/{hostingAccount}\/cancel":{"post":{"tags":["Hosting"],"summary":"Request hosting cancellation","operationId":"cancelHosting","security":[{"bearerAuth":[]}],"parameters":[{"name":"client","in":"path","required":true,"schema":{"type":"integer"},"example":7013},{"name":"hostingAccount","in":"path","required":true,"schema":{"type":"integer"},"example":1055},{"name":"X-Client-Id","in":"header","required":false,"description":"Optional stateless client-account context. If both route client and header are present, they must match.","schema":{"type":"integer"},"example":7013}],"responses":{"200":{"description":"Cancellation request","content":{"application\/json":{"schema":{"type":"object"}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Validation error"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"},"example":{"cancellation_type":"end_of_billing_period","reason":"No longer needed"}}},"description":"Cancellation request"}}},"\/clients\/{client}\/domains":{"get":{"tags":["Domains"],"summary":"List client domains","operationId":"listClientDomains","security":[{"bearerAuth":[]}],"parameters":[{"name":"client","in":"path","required":true,"schema":{"type":"integer"},"example":7013},{"name":"X-Client-Id","in":"header","required":false,"description":"Optional stateless client-account context. If both route client and header are present, they must match.","schema":{"type":"integer"},"example":7013}],"responses":{"200":{"description":"Domains","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/Domain"}},"links":{"type":"object"},"meta":{"type":"object"}}}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Validation error"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}}}},"\/clients\/{client}\/tickets":{"get":{"tags":["Support"],"summary":"List support tickets","operationId":"listTickets","security":[{"bearerAuth":[]}],"parameters":[{"name":"client","in":"path","required":true,"schema":{"type":"integer"},"example":7013},{"name":"X-Client-Id","in":"header","required":false,"description":"Optional stateless client-account context. If both route client and header are present, they must match.","schema":{"type":"integer"},"example":7013}],"responses":{"200":{"description":"Tickets","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/Ticket"}},"links":{"type":"object"},"meta":{"type":"object"}}}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Validation error"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}}},"post":{"tags":["Support"],"summary":"Create support ticket","operationId":"createTicket","security":[{"bearerAuth":[]}],"parameters":[{"name":"client","in":"path","required":true,"schema":{"type":"integer"},"example":7013},{"name":"X-Client-Id","in":"header","required":false,"description":"Optional stateless client-account context. If both route client and header are present, they must match.","schema":{"type":"integer"},"example":7013}],"responses":{"201":{"description":"Created ticket","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/Ticket"}}}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Validation error"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}},"requestBody":{"required":true,"content":{"multipart\/form-data":{"schema":{"type":"object","properties":{"department_id":{"type":"integer","example":1},"subject":{"type":"string","example":"Need help with my hosting"},"message":{"type":"string","example":"Please help me check my hosting account."},"message_format":{"type":"string","enum":["plain","html"],"default":"plain","description":"HTML is sanitized to the supported ticket formatting allowlist."},"priority":{"type":"string","example":"medium"},"related_type":{"type":"string","nullable":true,"enum":["hosting","domain","ssl","invoice","order","service"]},"related_id":{"type":"integer","nullable":true,"description":"A record owned by this client. Use type service to attach an active technical-support agreement."},"attachments[]":{"type":"array","items":{"type":"string","format":"binary"}}}}}},"description":"Ticket request with optional attachments"}}},"\/clients\/{client}\/tickets\/{ticket}":{"get":{"tags":["Support"],"summary":"Get support ticket","operationId":"getTicket","security":[{"bearerAuth":[]}],"parameters":[{"name":"client","in":"path","required":true,"schema":{"type":"integer"},"example":7013},{"name":"ticket","in":"path","required":true,"schema":{"type":"integer"},"example":123},{"name":"X-Client-Id","in":"header","required":false,"description":"Optional stateless client-account context. If both route client and header are present, they must match.","schema":{"type":"integer"},"example":7013}],"responses":{"200":{"description":"Ticket","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/Ticket"}}}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Validation error"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}}}},"\/clients\/{client}\/tickets\/{ticket}\/attachments\/{attachment}":{"get":{"tags":["Support"],"summary":"Download a private ticket attachment","operationId":"downloadTicketAttachment","security":[{"bearerAuth":[]}],"parameters":[{"name":"client","in":"path","required":true,"schema":{"type":"integer"},"example":7013},{"name":"ticket","in":"path","required":true,"schema":{"type":"integer"},"example":123},{"name":"attachment","in":"path","required":true,"schema":{"type":"integer"},"example":456},{"name":"X-Client-Id","in":"header","required":false,"description":"Optional stateless client-account context. If both route client and header are present, they must match.","schema":{"type":"integer"},"example":7013}],"responses":{"200":{"description":"Private attachment download","content":{"application\/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"404":{"description":"Attachment is unavailable for this ticket","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Attachment is unavailable for this ticket"}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Validation error"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}},"description":"Requires tickets:read and ticket view permission for the selected client. Internal staff note attachments are not exposed. Send the bearer token with this download request; attachment URLs are not public links."}},"\/clients\/{client}\/tickets\/{ticket}\/reply":{"post":{"tags":["Support"],"summary":"Reply to support ticket","operationId":"replyTicket","security":[{"bearerAuth":[]}],"parameters":[{"name":"client","in":"path","required":true,"schema":{"type":"integer"},"example":7013},{"name":"ticket","in":"path","required":true,"schema":{"type":"integer"},"example":123},{"name":"X-Client-Id","in":"header","required":false,"description":"Optional stateless client-account context. If both route client and header are present, they must match.","schema":{"type":"integer"},"example":7013}],"responses":{"200":{"description":"Updated ticket","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/Ticket"}}}}}},"409":{"description":"Ticket is closed","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Ticket is closed"}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Validation error"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}},"requestBody":{"required":true,"content":{"multipart\/form-data":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"Here is the update from my side."},"message_format":{"type":"string","enum":["plain","html"],"default":"plain","description":"HTML is sanitized to the supported ticket formatting allowlist."},"attachments[]":{"type":"array","items":{"type":"string","format":"binary"}}}}}},"description":"Ticket reply with optional attachments"}}},"\/clients\/{client}\/tickets\/{ticket}\/close":{"post":{"tags":["Support"],"summary":"Close support ticket","operationId":"closeTicket","security":[{"bearerAuth":[]}],"parameters":[{"name":"client","in":"path","required":true,"schema":{"type":"integer"},"example":7013},{"name":"ticket","in":"path","required":true,"schema":{"type":"integer"},"example":123},{"name":"X-Client-Id","in":"header","required":false,"description":"Optional stateless client-account context. If both route client and header are present, they must match.","schema":{"type":"integer"},"example":7013}],"responses":{"200":{"description":"Closed ticket","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/Ticket"}}}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Validation error"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}}}},"\/clients\/{client}\/tickets\/{ticket}\/reopen":{"post":{"tags":["Support"],"summary":"Reopen support ticket","operationId":"reopenTicket","security":[{"bearerAuth":[]}],"parameters":[{"name":"client","in":"path","required":true,"schema":{"type":"integer"},"example":7013},{"name":"ticket","in":"path","required":true,"schema":{"type":"integer"},"example":123},{"name":"X-Client-Id","in":"header","required":false,"description":"Optional stateless client-account context. If both route client and header are present, they must match.","schema":{"type":"integer"},"example":7013}],"responses":{"200":{"description":"Reopened ticket","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/Ticket"}}}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Validation error"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}}}},"\/clients\/{client}\/domains\/{domain}":{"get":{"tags":["Domains"],"summary":"Get client domain","operationId":"getDomain","security":[{"bearerAuth":[]}],"parameters":[{"name":"client","in":"path","required":true,"schema":{"type":"integer"},"example":7013},{"name":"domain","in":"path","required":true,"schema":{"type":"integer"},"example":9759},{"name":"X-Client-Id","in":"header","required":false,"description":"Optional stateless client-account context. If both route client and header are present, they must match.","schema":{"type":"integer"},"example":7013}],"responses":{"200":{"description":"Domain","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/Domain"}}}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Validation error"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}}}},"\/clients\/{client}\/domains\/{domain}\/nameservers":{"put":{"tags":["Domains"],"summary":"Update domain nameservers","operationId":"updateNameservers","security":[{"bearerAuth":[]}],"parameters":[{"name":"client","in":"path","required":true,"schema":{"type":"integer"},"example":7013},{"name":"domain","in":"path","required":true,"schema":{"type":"integer"},"example":9759},{"name":"X-Client-Id","in":"header","required":false,"description":"Optional stateless client-account context. If both route client and header are present, they must match.","schema":{"type":"integer"},"example":7013}],"responses":{"200":{"description":"Updated domain","content":{"application\/json":{"schema":{"type":"object"}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Validation error"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"},"example":{"nameserver_type":"custom","nameservers":["ns1.example.com","ns2.example.com"]}}},"description":"Nameserver update"}}},"\/clients\/{client}\/domains\/{domain}\/transfer\/auth-code":{"patch":{"tags":["Domains"],"summary":"Replace an inbound transfer authorization code","operationId":"replaceDomainTransferAuthCode","security":[{"bearerAuth":[]}],"parameters":[{"name":"client","in":"path","required":true,"schema":{"type":"integer"},"example":7013},{"name":"domain","in":"path","required":true,"schema":{"type":"integer"},"example":9759},{"name":"X-Client-Id","in":"header","required":false,"description":"Optional stateless client-account context. If both route client and header are present, they must match.","schema":{"type":"integer"},"example":7013}],"responses":{"200":{"description":"Updated transfer","content":{"application\/json":{"schema":{"type":"object"}}}},"422":{"description":"Transfer cannot accept a new code","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Transfer cannot accept a new code"}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}},"description":"Rechecks the provider state before submitting or replacing the code. The authorization code is write-only and is never returned.","requestBody":{"required":true,"description":"Write-only authorization code. The value is never returned.","content":{"application\/json":{"schema":{"type":"object","required":["authorization_code"],"properties":{"authorization_code":{"type":"string","writeOnly":true,"maxLength":255}}}}}}}},"\/clients\/{client}\/domains\/{domain}\/transfer\/status":{"get":{"tags":["Domains"],"summary":"Get inbound transfer status","operationId":"getDomainTransferStatus","security":[{"bearerAuth":[]}],"parameters":[{"name":"client","in":"path","required":true,"schema":{"type":"integer"},"example":7013},{"name":"domain","in":"path","required":true,"schema":{"type":"integer"},"example":9759},{"name":"X-Client-Id","in":"header","required":false,"description":"Optional stateless client-account context. If both route client and header are present, they must match.","schema":{"type":"integer"},"example":7013}],"responses":{"200":{"description":"Provider-neutral transfer status","content":{"application\/json":{"schema":{"type":"object"}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Validation error"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}}}},"\/clients\/{client}\/domains\/{domain}\/transfer\/check":{"post":{"tags":["Domains"],"summary":"Check inbound transfer status","operationId":"checkDomainTransferStatus","security":[{"bearerAuth":[]}],"parameters":[{"name":"client","in":"path","required":true,"schema":{"type":"integer"},"example":7013},{"name":"domain","in":"path","required":true,"schema":{"type":"integer"},"example":9759},{"name":"X-Client-Id","in":"header","required":false,"description":"Optional stateless client-account context. If both route client and header are present, they must match.","schema":{"type":"integer"},"example":7013}],"responses":{"200":{"description":"Updated provider-neutral transfer status","content":{"application\/json":{"schema":{"type":"object"}}}},"422":{"description":"Transfer cannot be checked","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Transfer cannot be checked"}}}},"429":{"description":"Live check cooldown is active","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Live check cooldown is active"}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}}},"description":"Performs one read-only registrar status check. It never resubmits, purchases, or modifies the authorization code."}},"\/clients\/{client}\/domains\/{domain}\/dns":{"get":{"tags":["Domains"],"summary":"List registrar DNS records","operationId":"listDnsRecords","security":[{"bearerAuth":[]}],"parameters":[{"name":"client","in":"path","required":true,"schema":{"type":"integer"},"example":7013},{"name":"domain","in":"path","required":true,"schema":{"type":"integer"},"example":9759},{"name":"X-Client-Id","in":"header","required":false,"description":"Optional stateless client-account context. If both route client and header are present, they must match.","schema":{"type":"integer"},"example":7013}],"responses":{"200":{"description":"DNS records","content":{"application\/json":{"schema":{"type":"object"}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Validation error"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}}},"put":{"tags":["Domains"],"summary":"Replace registrar DNS records","operationId":"updateDnsRecords","security":[{"bearerAuth":[]}],"parameters":[{"name":"client","in":"path","required":true,"schema":{"type":"integer"},"example":7013},{"name":"domain","in":"path","required":true,"schema":{"type":"integer"},"example":9759},{"name":"X-Client-Id","in":"header","required":false,"description":"Optional stateless client-account context. If both route client and header are present, they must match.","schema":{"type":"integer"},"example":7013}],"responses":{"200":{"description":"DNS records updated successfully.","content":{"application\/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"DNS records updated successfully."}}}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Validation error"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"},"example":{"zone_revision":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","records":[{"type":"A","name":"@","value":"192.0.2.10","ttl":3600}]}}},"description":"DNS records"}}},"\/clients\/{client}\/domains\/{domain}\/dns\/setup":{"get":{"tags":["Domains"],"summary":"Preview Nakroteck DNS setup","operationId":"previewDomainDnsSetup","security":[{"bearerAuth":[]}],"parameters":[{"name":"client","in":"path","required":true,"schema":{"type":"integer"},"example":7013},{"name":"domain","in":"path","required":true,"schema":{"type":"integer"},"example":9759},{"name":"X-Client-Id","in":"header","required":false,"description":"Optional stateless client-account context. If both route client and header are present, they must match.","schema":{"type":"integer"},"example":7013}],"responses":{"200":{"description":"DNS setup preview","content":{"application\/json":{"schema":{"type":"object"}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Validation error"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}}},"post":{"tags":["Domains"],"summary":"Prepare the DNS zone and confirm nameserver switching","operationId":"confirmDomainDnsSetup","security":[{"bearerAuth":[]}],"parameters":[{"name":"client","in":"path","required":true,"schema":{"type":"integer"},"example":7013},{"name":"domain","in":"path","required":true,"schema":{"type":"integer"},"example":9759},{"name":"X-Client-Id","in":"header","required":false,"description":"Optional stateless client-account context. If both route client and header are present, they must match.","schema":{"type":"integer"},"example":7013}],"responses":{"200":{"description":"DNS setup result","content":{"application\/json":{"schema":{"type":"object"}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Validation error"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"},"example":{"confirm_nameserver_change":true,"confirm_zone_complete":true,"zone_revision":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","records":[{"type":"A","name":"@","value":"192.0.2.10","ttl":3600}]}}},"description":"Confirmed DNS setup"}}},"\/clients\/{client}\/domains\/{domain}\/dns\/setup\/status":{"get":{"tags":["Domains"],"summary":"Get DNS nameserver-switch verification status","operationId":"getDomainDnsSetupStatus","security":[{"bearerAuth":[]}],"parameters":[{"name":"client","in":"path","required":true,"schema":{"type":"integer"},"example":7013},{"name":"domain","in":"path","required":true,"schema":{"type":"integer"},"example":9759},{"name":"X-Client-Id","in":"header","required":false,"description":"Optional stateless client-account context. If both route client and header are present, they must match.","schema":{"type":"integer"},"example":7013}],"responses":{"200":{"description":"DNS setup status","content":{"application\/json":{"schema":{"type":"object"}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Validation error"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}}}},"\/clients\/{client}\/domains\/{domain}\/renew":{"post":{"tags":["Domains"],"summary":"Domain renewal placeholder","operationId":"renewDomain","security":[{"bearerAuth":[]}],"parameters":[{"name":"client","in":"path","required":true,"schema":{"type":"integer"},"example":7013},{"name":"domain","in":"path","required":true,"schema":{"type":"integer"},"example":9759},{"name":"X-Client-Id","in":"header","required":false,"description":"Optional stateless client-account context. If both route client and header are present, they must match.","schema":{"type":"integer"},"example":7013}],"responses":{"422":{"description":"Use invoice-first order endpoint when renewal ordering is enabled","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Use invoice-first order endpoint when renewal ordering is enabled"}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}}}},"\/clients\/{client}\/domains\/{domain}\/cancel":{"post":{"tags":["Domains"],"summary":"Request domain cancellation","operationId":"cancelDomain","security":[{"bearerAuth":[]}],"parameters":[{"name":"client","in":"path","required":true,"schema":{"type":"integer"},"example":7013},{"name":"domain","in":"path","required":true,"schema":{"type":"integer"},"example":9759},{"name":"X-Client-Id","in":"header","required":false,"description":"Optional stateless client-account context. If both route client and header are present, they must match.","schema":{"type":"integer"},"example":7013}],"responses":{"200":{"description":"Domain cancellation request","content":{"application\/json":{"schema":{"type":"object"}}}},"401":{"description":"Unauthenticated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Unauthenticated"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Forbidden"}}}},"404":{"description":"Not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Not found"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Validation error"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"},"example":{"message":"Rate limit exceeded"}}}}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"},"example":{"cancel_type":"end_of_term","reason":"No longer needed"}}},"description":"Cancellation request"}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"Sanctum token"}},"parameters":{"ClientIdHeader":{"name":"X-Client-Id","in":"header","required":false,"description":"Optional stateless client-account context. If both route client and header are present, they must match.","schema":{"type":"integer"},"example":7013},"IdempotencyKey":{"name":"Idempotency-Key","in":"header","required":true,"description":"Required for order creation, account credit invoice creation, and payment-starting endpoints. Reuse the same key only when retrying the exact same request for the same client.","schema":{"type":"string","maxLength":160},"example":"order-20260426-001"}},"schemas":{"Money":{"type":"object","properties":{"amount":{"type":"number","format":"float"},"formatted":{"type":"string"},"currency":{"type":"string","example":"USD"}}},"ApiError":{"type":"object","properties":{"message":{"type":"string"},"errors":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}}}},"User":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"email":{"type":"string","format":"email"},"status":{"type":"string"}}},"Client":{"type":"object","properties":{"id":{"type":"integer"},"display_name":{"type":"string"},"company_name":{"type":"string","nullable":true},"email":{"type":"string","format":"email"},"status":{"type":"string"},"currency_code":{"type":"string"},"credit_balance":{"$ref":"#\/components\/schemas\/Money"},"role":{"type":"string","nullable":true}}},"HostingPackage":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"slug":{"type":"string"},"description":{"type":"string","nullable":true},"service_kind":{"type":"string"},"service_kind_label":{"type":"string"},"provisioning_driver":{"type":"string"},"sort_order":{"type":"integer"},"category":{"nullable":true,"oneOf":[{"$ref":"#\/components\/schemas\/HostingPackageCategory"}]},"requires_domain":{"type":"boolean"},"manual_fulfillment":{"type":"boolean"},"featured":{"type":"boolean"},"features":{"type":"array","items":{"type":"string"}},"free_domain_enabled":{"type":"boolean"},"free_domain_tlds":{"type":"array","items":{"type":"integer"}},"free_domain_tld_labels":{"type":"array","items":{"type":"string"},"example":[".com",".com.gh"]},"free_domain_billing_cycles":{"type":"array","items":{"type":"string"},"example":["annually"]},"free_domain_billing_cycle_labels":{"type":"array","items":{"type":"string"},"example":["Annually"]},"free_domain_first_year_only":{"type":"boolean"},"free_domain_offer_label":{"type":"string","nullable":true},"free_transfer_enabled":{"type":"boolean"},"free_transfer_tlds":{"type":"array","items":{"type":"integer"}},"free_transfer_tld_labels":{"type":"array","items":{"type":"string"}},"free_transfer_billing_cycles":{"type":"array","items":{"type":"string"}},"free_transfer_billing_cycle_labels":{"type":"array","items":{"type":"string"}},"pricing":{"type":"array","items":{"$ref":"#\/components\/schemas\/HostingPackagePrice"}}}},"HostingPackageCategory":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"slug":{"type":"string"},"description":{"type":"string","nullable":true},"sort_order":{"type":"integer"}}},"HostingPackagePrice":{"type":"object","properties":{"billing_cycle":{"type":"string"},"price":{"$ref":"#\/components\/schemas\/Money"},"setup_fee":{"$ref":"#\/components\/schemas\/Money"}}},"DomainTld":{"type":"object","properties":{"id":{"type":"integer"},"tld":{"type":"string","example":".com"},"requires_manual_check":{"type":"boolean"},"supports_id_protection":{"type":"boolean"},"pricing":{"type":"array","items":{"$ref":"#\/components\/schemas\/DomainTldPrice"}}}},"DomainTldPrice":{"type":"object","properties":{"years":{"type":"integer"},"register":{"$ref":"#\/components\/schemas\/Money"},"renew":{"$ref":"#\/components\/schemas\/Money"},"transfer":{"$ref":"#\/components\/schemas\/Money"}}},"Invoice":{"type":"object","properties":{"id":{"type":"integer"},"invoice_number":{"type":"string"},"status":{"type":"string"},"total":{"$ref":"#\/components\/schemas\/Money"},"balance_due":{"$ref":"#\/components\/schemas\/Money"},"due_date":{"type":"string","format":"date","nullable":true},"payment_url":{"type":"string","format":"uri","nullable":true}}},"Order":{"type":"object","properties":{"id":{"type":"integer"},"order_number":{"type":"string"},"status":{"type":"string"},"status_label":{"type":"string"},"lifecycle_status":{"type":"string","example":"pending_payment"},"created_at":{"type":"string","format":"date-time","nullable":true},"subtotal":{"$ref":"#\/components\/schemas\/Money"},"discount":{"$ref":"#\/components\/schemas\/Money"},"tax":{"$ref":"#\/components\/schemas\/Money"},"total":{"$ref":"#\/components\/schemas\/Money"},"invoice_id":{"type":"integer","nullable":true},"invoice":{"$ref":"#\/components\/schemas\/OrderInvoiceSummary"},"items":{"type":"array","items":{"$ref":"#\/components\/schemas\/OrderItem"}},"provisioning":{"$ref":"#\/components\/schemas\/OrderProvisioning"},"provisioned_services":{"type":"array","items":{"$ref":"#\/components\/schemas\/OrderProvisionedService"}},"actions":{"type":"array","items":{"$ref":"#\/components\/schemas\/OrderAction"}}}},"OrderItem":{"type":"object","properties":{"id":{"type":"integer"},"type":{"type":"string"},"type_label":{"type":"string","nullable":true},"description":{"type":"string"},"billing_cycle":{"type":"string","nullable":true},"billing_cycle_label":{"type":"string","nullable":true},"status":{"type":"string"},"status_label":{"type":"string","nullable":true},"quantity":{"type":"integer"},"unit_price":{"$ref":"#\/components\/schemas\/Money"},"setup_fee":{"$ref":"#\/components\/schemas\/Money"},"discount":{"$ref":"#\/components\/schemas\/Money"},"total":{"$ref":"#\/components\/schemas\/Money"},"configuration":{"type":"object","description":"Customer-safe order configuration. Internal registrar\/provider IDs, EPP\/Auth codes, contact snapshots, credentials, private keys, and provisioning settings are never returned.","additionalProperties":false,"properties":{"domain":{"type":"string"},"domain_name":{"type":"string"},"hostname":{"type":"string"},"domain_option":{"type":"string","enum":["new","transfer","existing"],"description":"Hosting requires a real domain. Temporary or synthetic hostnames are not supported."},"domain_action":{"type":"string"},"action":{"type":"string"},"type":{"type":"string"},"years":{"type":"integer"},"id_protection":{"type":"boolean"},"dns_management":{"type":"boolean"},"auto_renew":{"type":"boolean"},"manual_registration":{"type":"boolean"},"manual_fulfillment":{"type":"boolean"},"requires_manual_registration":{"type":"boolean"},"provisional":{"type":"boolean"},"availability_status":{"type":"string"},"fulfillment_status":{"type":"string"},"free_with_hosting":{"type":"boolean"},"hosting_package_id":{"type":"integer"},"original_price":{"type":"number","format":"float"},"promotion_credit":{"type":"number","format":"float"},"promotion_label":{"type":"string"},"common_name":{"type":"string"},"san_domains":{"type":"array","items":{"type":"string"}},"operating_system":{"type":"string"},"nameservers":{"type":"array","items":{"type":"string"}}}},"configuration_summary":{"type":"array","items":{"$ref":"#\/components\/schemas\/OrderConfigurationSummaryItem"}},"provisioned_service":{"$ref":"#\/components\/schemas\/OrderProvisionedService"},"mobile_route":{"type":"string","nullable":true}}},"OrderInvoiceSummary":{"type":"object","properties":{"id":{"type":"integer"},"invoice_number":{"type":"string"},"status":{"type":"string"},"status_label":{"type":"string"},"total":{"$ref":"#\/components\/schemas\/Money"},"balance_due":{"$ref":"#\/components\/schemas\/Money"},"due_date":{"type":"string","format":"date","nullable":true},"can_pay":{"type":"boolean"},"mobile_route":{"type":"string","nullable":true},"pay_route":{"type":"string","nullable":true}}},"OrderProvisioning":{"type":"object","properties":{"status":{"type":"string"},"attempts":{"type":"integer"},"started_at":{"type":"string","format":"date-time","nullable":true},"last_attempt_at":{"type":"string","format":"date-time","nullable":true},"completed_at":{"type":"string","format":"date-time","nullable":true},"failed_at":{"type":"string","format":"date-time","nullable":true},"requires_manual_review":{"type":"boolean"},"state":{"type":"string","nullable":true},"tone":{"type":"string","nullable":true},"title":{"type":"string","nullable":true},"requires_client_action":{"type":"boolean"},"actions":{"type":"array","items":{"$ref":"#\/components\/schemas\/OrderAction"}},"client_message":{"type":"string"}}},"OrderAction":{"type":"object","properties":{"action":{"type":"string"},"label":{"type":"string"},"style":{"type":"string","nullable":true},"tone":{"type":"string","nullable":true},"mobile_route":{"type":"string","nullable":true},"url":{"type":"string","nullable":true}}},"OrderProvisionedService":{"type":"object","properties":{"id":{"type":"integer"},"type":{"type":"string"},"type_label":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","nullable":true},"mobile_route":{"type":"string","nullable":true}}},"OrderConfigurationSummaryItem":{"type":"object","properties":{"label":{"type":"string"},"value":{"type":"string"}}},"Payment":{"type":"object","properties":{"id":{"type":"integer"},"amount":{"$ref":"#\/components\/schemas\/Money"},"status":{"type":"string"},"transaction_id":{"type":"string","nullable":true},"gateway":{"type":"string","nullable":true},"created_at":{"type":"string","format":"date-time"}}},"ServiceCapability":{"type":"object","properties":{"enabled":{"type":"boolean"},"reason":{"type":"string","nullable":true}}},"RelatedService":{"type":"object","properties":{"id":{"type":"integer"},"type":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","nullable":true},"next_due_date":{"type":"string","format":"date","nullable":true},"renewal_mode":{"type":"string","nullable":true,"enum":["renewal","new_purchase"]}}},"ServiceTimelineItem":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"occurred_at":{"type":"string","format":"date-time","nullable":true},"tone":{"type":"string"}}},"HostingUsageMetric":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"used":{"type":"integer","nullable":true},"limit":{"type":"integer"},"unit":{"type":"string","enum":["bytes","count"]},"used_display":{"type":"string","nullable":true},"limit_display":{"type":"string","nullable":true},"summary":{"type":"string","example":"26 GB \/ 10 GB"},"percent":{"type":"number","format":"float","nullable":true},"percent_label":{"type":"string","nullable":true},"level":{"type":"string","example":"danger"},"is_unlimited":{"type":"boolean"}}},"HostingUsageAlert":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"used":{"type":"integer","nullable":true},"limit":{"type":"integer","nullable":true},"unit":{"type":"string","nullable":true},"summary":{"type":"string","nullable":true},"percent":{"type":"number","format":"float","nullable":true},"percent_label":{"type":"string","nullable":true},"level":{"type":"string","example":"danger"}}},"HostingServerUsage":{"type":"object","properties":{"available":{"type":"boolean"},"has_usage":{"type":"boolean"},"last_sync":{"type":"string","nullable":true},"partial":{"type":"boolean"},"metrics":{"type":"array","items":{"$ref":"#\/components\/schemas\/HostingUsageMetric"}}}},"HostingUpgradePackage":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"service_kind":{"type":"string"},"service_kind_label":{"type":"string"},"billing_cycle":{"type":"string"},"recurring_amount":{"$ref":"#\/components\/schemas\/Money"},"disk_space":{"type":"string","nullable":true},"bandwidth":{"type":"string","nullable":true}}},"HostingUpgradeInvoiceResponse":{"type":"object","properties":{"status":{"type":"string","example":"invoice_created"},"message":{"type":"string"},"plan_change_id":{"type":"integer","nullable":true},"invoice":{"nullable":true,"oneOf":[{"$ref":"#\/components\/schemas\/Invoice"}]},"hosting":{"$ref":"#\/components\/schemas\/HostingAccount"}}},"HostingLabelValue":{"type":"object","properties":{"label":{"type":"string","nullable":true},"value":{"type":"string","nullable":true}}},"HostingServiceSpecs":{"type":"object","properties":{"kind":{"type":"string","nullable":true},"details":{"type":"array","items":{"$ref":"#\/components\/schemas\/HostingLabelValue"}},"package_specs":{"type":"array","items":{"$ref":"#\/components\/schemas\/HostingLabelValue"}},"feature_list":{"type":"array","items":{"type":"string"}},"guidance":{"type":"string","nullable":true}}},"HostingAccessTool":{"type":"object","properties":{"key":{"type":"string","nullable":true},"label":{"type":"string","nullable":true},"value":{"type":"string","nullable":true},"action":{"type":"string","nullable":true},"enabled":{"type":"boolean"},"related_id":{"type":"integer","nullable":true}}},"HostingRelatedInvoice":{"type":"object","properties":{"id":{"type":"integer"},"invoice_number":{"type":"string","nullable":true},"status":{"type":"string","nullable":true},"status_label":{"type":"string","nullable":true},"total":{"$ref":"#\/components\/schemas\/Money"},"balance_due":{"$ref":"#\/components\/schemas\/Money"},"issue_date":{"type":"string","format":"date","nullable":true},"due_date":{"type":"string","format":"date","nullable":true},"created_at":{"type":"string","format":"date-time","nullable":true},"can_pay":{"type":"boolean"}}},"HostingLinkedSslCertificate":{"type":"object","properties":{"id":{"type":"integer"},"common_name":{"type":"string","nullable":true},"status":{"type":"string","nullable":true},"status_label":{"type":"string","nullable":true},"expires_at":{"type":"string","format":"date","nullable":true},"workflow_status":{"type":"string","nullable":true},"renewal_mode":{"type":"string","enum":["renewal","new_purchase"]}}},"HostingLinkedSslSummary":{"type":"object","properties":{"has_linked_certificates":{"type":"boolean"},"included_with_plan":{"type":"boolean"},"empty_message":{"type":"string","nullable":true},"certificates":{"type":"array","items":{"$ref":"#\/components\/schemas\/HostingLinkedSslCertificate"}}}},"HostingManagementAction":{"type":"object","properties":{"action":{"type":"string","nullable":true},"label":{"type":"string","nullable":true},"enabled":{"type":"boolean"},"tone":{"type":"string","nullable":true},"related_id":{"type":"integer","nullable":true},"reason":{"type":"string","nullable":true}}},"HostingManagementActions":{"type":"object","properties":{"primary":{"type":"array","items":{"$ref":"#\/components\/schemas\/HostingManagementAction"}},"support":{"type":"array","items":{"$ref":"#\/components\/schemas\/HostingManagementAction"}}}},"HostingAccount":{"type":"object","properties":{"id":{"type":"integer"},"display_name":{"type":"string"},"domain":{"type":"string","nullable":true},"hostname":{"type":"string","nullable":true},"primary_ip":{"type":"string","nullable":true},"dedicated_ip":{"type":"string","nullable":true},"assigned_ips":{"type":"array","items":{"type":"string"}},"nameservers":{"type":"array","items":{"type":"string"}},"operating_system":{"type":"string","nullable":true},"subscription_id":{"type":"string","nullable":true},"username":{"type":"string","nullable":true},"ftp_username":{"type":"string","nullable":true},"status":{"type":"string"},"service_kind_label":{"type":"string","nullable":true},"primary_address_label":{"type":"string","nullable":true},"billing_cycle":{"type":"string"},"recurring_amount":{"$ref":"#\/components\/schemas\/Money"},"registration_date":{"type":"string","format":"date","nullable":true},"next_due_date":{"type":"string","format":"date","nullable":true},"days_until_due":{"type":"integer","nullable":true},"cancellation_requested_at":{"type":"string","format":"date-time","nullable":true},"suspension_reason":{"type":"string","nullable":true},"usage_last_synced_at":{"type":"string","nullable":true},"server_usage":{"$ref":"#\/components\/schemas\/HostingServerUsage"},"quota_alerts":{"type":"array","items":{"$ref":"#\/components\/schemas\/HostingUsageAlert"}},"is_over_quota":{"type":"boolean"},"upgrade_available":{"type":"boolean"},"recommended_upgrade":{"nullable":true,"oneOf":[{"$ref":"#\/components\/schemas\/HostingUpgradePackage"}]},"service_specs":{"$ref":"#\/components\/schemas\/HostingServiceSpecs"},"access_tools":{"type":"array","items":{"$ref":"#\/components\/schemas\/HostingAccessTool"}},"related_invoices":{"type":"array","items":{"$ref":"#\/components\/schemas\/HostingRelatedInvoice"}},"linked_ssl_summary":{"$ref":"#\/components\/schemas\/HostingLinkedSslSummary"},"management_actions":{"$ref":"#\/components\/schemas\/HostingManagementActions"},"package":{"type":"object","nullable":true},"server":{"type":"object","nullable":true},"capabilities":{"type":"object","additionalProperties":{"$ref":"#\/components\/schemas\/ServiceCapability"}},"related":{"type":"object"},"timeline":{"type":"array","items":{"$ref":"#\/components\/schemas\/ServiceTimelineItem"}}}},"Domain":{"type":"object","properties":{"id":{"type":"integer"},"domain_name":{"type":"string"},"status":{"type":"string"},"registration_date":{"type":"string","format":"date","nullable":true},"expiry_date":{"type":"string","format":"date","nullable":true},"next_due_date":{"type":"string","format":"date","nullable":true},"days_until_expiry":{"type":"integer","nullable":true},"auto_renew":{"type":"boolean"},"id_protection":{"type":"boolean"},"dns_management":{"type":"boolean"},"nameservers":{"type":"array","items":{"type":"string"}},"nameserver_type":{"type":"string","nullable":true},"nameserver_source":{"type":"string","nullable":true},"registrar_status":{"type":"string","nullable":true},"registrar_last_synced_at":{"type":"string","format":"date-time","nullable":true},"recurring_amount":{"$ref":"#\/components\/schemas\/Money"},"tld":{"type":"object","nullable":true},"hosting_account_id":{"type":"integer","nullable":true},"capabilities":{"type":"object","additionalProperties":{"$ref":"#\/components\/schemas\/ServiceCapability"}},"dns_context":{"type":"object"},"transfer":{"type":"object","nullable":true,"description":"Customer-safe inbound transfer state. Provider diagnostics and authorization codes are never returned."},"related":{"type":"object"},"timeline":{"type":"array","items":{"$ref":"#\/components\/schemas\/ServiceTimelineItem"}}}},"ApiStatus":{"type":"object","properties":{"status":{"type":"string","example":"ok"},"api_version":{"type":"string","example":"v1"},"time":{"type":"string","format":"date-time"},"maintenance_mode":{"type":"boolean"}}},"MobileConfig":{"type":"object","properties":{"app":{"type":"object"},"mobile":{"type":"object"},"features":{"type":"object"},"limits":{"type":"object"},"firebase":{"$ref":"#\/components\/schemas\/FirebaseAppConfig"},"realtime":{"$ref":"#\/components\/schemas\/RealtimeConfig"},"payment_gateways":{"type":"array","items":{"type":"object"}},"support_departments":{"type":"array","items":{"type":"object"}},"links":{"type":"object","properties":{"privacy_policy":{"type":"string","format":"uri"},"terms":{"type":"string","format":"uri"},"cancellations":{"type":"string","format":"uri"},"account_deletion":{"type":"string","format":"uri"},"support":{"type":"string","format":"uri"}}}}},"RealtimeConfig":{"type":"object","properties":{"enabled":{"type":"boolean"},"driver":{"type":"string","example":"reverb"},"app_key":{"type":"string","nullable":true},"host":{"type":"string","nullable":true,"example":"nakroteck.net"},"port":{"type":"integer","example":443},"scheme":{"type":"string","example":"https"},"use_tls":{"type":"boolean"},"path":{"type":"string","example":"\/app"},"auth_endpoint":{"type":"string","format":"uri"}}},"FirebaseAppConfig":{"type":"object","properties":{"configured":{"type":"boolean","example":true},"api_key":{"type":"string","nullable":true,"example":"AIzaSy..."},"auth_domain":{"type":"string","nullable":true,"example":"nakroteck-host.firebaseapp.com"},"project_id":{"type":"string","nullable":true,"example":"nakroteck-host"},"storage_bucket":{"type":"string","nullable":true,"example":"nakroteck-host.firebasestorage.app"},"messaging_sender_id":{"type":"string","nullable":true,"example":"998733898558"},"app_id":{"type":"string","nullable":true,"example":"1:998733898558:web:bb2aec7be6a4e926ffc26f"},"measurement_id":{"type":"string","nullable":true,"example":"G-81G7BZG750"}}},"MobileDevice":{"type":"object","properties":{"id":{"type":"integer"},"device_id":{"type":"string"},"device_name":{"type":"string","nullable":true},"platform":{"type":"string","enum":["ios","android"]},"push_provider":{"type":"string","enum":["fcm","apns"]},"has_push_token":{"type":"boolean"},"app_version":{"type":"string","nullable":true},"build_number":{"type":"string","nullable":true},"locale":{"type":"string","nullable":true},"timezone":{"type":"string","nullable":true},"notifications_enabled":{"type":"boolean"},"last_seen_at":{"type":"string","format":"date-time","nullable":true},"revoked_at":{"type":"string","format":"date-time","nullable":true},"created_at":{"type":"string","format":"date-time","nullable":true}}},"LoginResponse":{"type":"object","properties":{"token_type":{"type":"string","example":"Bearer"},"access_token":{"type":"string"},"abilities":{"type":"array","items":{"type":"string"}},"user":{"$ref":"#\/components\/schemas\/User"},"clients":{"type":"array","items":{"$ref":"#\/components\/schemas\/Client"}}}},"MeResponse":{"type":"object","properties":{"user":{"$ref":"#\/components\/schemas\/User"},"clients":{"type":"array","items":{"$ref":"#\/components\/schemas\/Client"}},"token":{"type":"object"}}},"AccountDeletionEligibility":{"type":"object","properties":{"eligible":{"type":"boolean"},"can_delete_now":{"type":"boolean"},"blockers":{"type":"array","items":{"$ref":"#\/components\/schemas\/AccountDeletionBlocker"}},"support_url":{"type":"string","format":"uri"},"legal_retention_notice":{"type":"string"}}},"AccountDeletionBlocker":{"type":"object","properties":{"code":{"type":"string","example":"active_domains"},"title":{"type":"string","example":"Active domains"},"count":{"type":"integer","example":2},"message":{"type":"string"},"action":{"type":"string","example":"\/domains"},"client_id":{"type":"integer","nullable":true}}},"AccountDeletionResult":{"type":"object","properties":{"status":{"type":"string","enum":["deleted","blocked"]},"message":{"type":"string"},"eligible":{"type":"boolean"},"can_delete_now":{"type":"boolean"},"blockers":{"type":"array","items":{"$ref":"#\/components\/schemas\/AccountDeletionBlocker"}},"support_url":{"type":"string","format":"uri"},"legal_retention_notice":{"type":"string"}}},"ApiToken":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"abilities":{"type":"array","items":{"type":"string"}},"last_used_at":{"type":"string","format":"date-time","nullable":true},"last_used_ip":{"type":"string","nullable":true},"last_used_user_agent":{"type":"string","nullable":true},"expires_at":{"type":"string","format":"date-time","nullable":true}}},"Ticket":{"type":"object","properties":{"id":{"type":"integer"},"ticket_number":{"type":"string"},"subject":{"type":"string"},"status":{"type":"string"},"status_label":{"type":"string"},"client_status_label":{"type":"string"},"priority":{"type":"string"},"department":{"type":"object"},"related":{"type":"object","nullable":true},"support_agreement":{"type":"object","nullable":true,"description":"Customer-safe covered-service and SLA state. Internal notes and staff cost data are never returned."},"replies":{"type":"array","items":{"$ref":"#\/components\/schemas\/TicketReply"}},"messages":{"type":"array","items":{"$ref":"#\/components\/schemas\/TicketReply"}},"last_reply_at":{"type":"string","format":"date-time","nullable":true},"created_at":{"type":"string","format":"date-time"}}},"TicketReply":{"type":"object","properties":{"id":{"type":"integer"},"author_type":{"type":"string","enum":["staff","client"]},"author_name":{"type":"string"},"message":{"type":"string","description":"Backwards-compatible plaintext message."},"body":{"type":"string","description":"Backwards-compatible plaintext message."},"body_text":{"type":"string"},"body_html":{"type":"string","description":"Server-sanitized HTML suitable for rich display."},"format":{"type":"string","enum":["plain","html"]},"attachments":{"type":"array","items":{"$ref":"#\/components\/schemas\/TicketAttachment"}},"created_at":{"type":"string","format":"date-time"}}},"TicketAttachment":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"mime_type":{"type":"string"},"size":{"type":"integer"},"formatted_size":{"type":"string"},"url":{"type":"string","format":"uri"}}},"DomainAvailabilityResponse":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#\/components\/schemas\/DomainAvailability"}}},"DomainAvailability":{"type":"object","properties":{"domain":{"type":"string","example":"example.com.gh"},"tld_id":{"type":"integer","nullable":true},"status":{"type":"string","example":"provisional_available"},"available":{"type":"boolean","nullable":true},"manual_registration":{"type":"boolean"},"provisional":{"type":"boolean"},"source":{"type":"string","example":"manual_fallback"},"pricing":{"type":"object","nullable":true}}},"OrderQuoteResponse":{"type":"object","properties":{"currency":{"type":"string","example":"USD"},"items":{"type":"array","items":{"type":"object"}},"totals":{"type":"object"}}},"OrderCreateResponse":{"type":"object","properties":{"message":{"type":"string"},"order":{"$ref":"#\/components\/schemas\/Order"},"invoice":{"$ref":"#\/components\/schemas\/Invoice"},"pending_services":{"type":"object"},"payment_url":{"type":"string","format":"uri"},"gateway":{"type":"object"}}},"CreditInvoiceCreateResponse":{"type":"object","properties":{"message":{"type":"string"},"invoice":{"$ref":"#\/components\/schemas\/Invoice"},"payment_url":{"type":"string","format":"uri"}}},"PaymentStartResponse":{"type":"object","properties":{"message":{"type":"string"},"invoice_id":{"type":"integer"},"invoice_number":{"type":"string"},"payment":{"oneOf":[{"$ref":"#\/components\/schemas\/StripePaymentStart"},{"$ref":"#\/components\/schemas\/PaystackPaymentStart"}]}}},"StripePaymentStart":{"type":"object","properties":{"gateway":{"type":"string","example":"stripe"},"mode":{"type":"string","example":"test"},"payment_intent_id":{"type":"string","example":"pi_123"},"client_secret":{"type":"string"},"publishable_key":{"type":"string"},"amount":{"type":"number","format":"float"},"currency":{"type":"string","example":"USD"},"mobile":{"$ref":"#\/components\/schemas\/StripeMobilePayment"}}},"StripeMobilePayment":{"type":"object","properties":{"type":{"type":"string","example":"stripe_payment_sheet"},"payment_intent_client_secret":{"type":"string"},"merchant_display_name":{"type":"string","example":"Nakroteck"},"allows_delayed_payment_methods":{"type":"boolean"},"status_url":{"type":"string","format":"uri"}}},"PaystackPaymentStart":{"type":"object","properties":{"gateway":{"type":"string","example":"paystack"},"reference":{"type":"string"},"authorization_url":{"type":"string","format":"uri"},"access_code":{"type":"string"},"amount":{"type":"number","format":"float"},"currency":{"type":"string","example":"USD"},"presentment":{"type":"object"},"callback_url":{"type":"string","format":"uri"},"mobile":{"$ref":"#\/components\/schemas\/PaystackMobilePayment"}}},"PaystackMobilePayment":{"type":"object","properties":{"type":{"type":"string","example":"paystack_webview"},"authorization_url":{"type":"string","format":"uri"},"reference":{"type":"string"},"status_url":{"type":"string","format":"uri"}}},"InvoicePaymentTimeline":{"type":"object","properties":{"invoice":{"$ref":"#\/components\/schemas\/Invoice"},"summary":{"type":"object"},"timeline":{"type":"array","items":{"$ref":"#\/components\/schemas\/PaymentTimelineEvent"}}}},"PaymentTimelineEvent":{"type":"object","properties":{"id":{"type":"integer"},"status":{"type":"string","example":"failed"},"type":{"type":"string","example":"payment"},"context":{"type":"string","example":"Invoice payment"},"gateway":{"type":"object"},"amount":{"$ref":"#\/components\/schemas\/Money"},"presentment":{"type":"object","nullable":true},"transaction_id":{"type":"string","nullable":true},"decline":{"type":"object"},"notes":{"type":"string","nullable":true},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}}}}}