{"openapi":"3.1.0","info":{"title":"Weth Technologies E-invoice Infrastructure","version":"0.1.0"},"paths":{"/api/v2/auth/signup":{"post":{"tags":["auth"],"summary":"Signup Route","operationId":"signup_route_api_v2_auth_signup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignupRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/auth/login":{"post":{"tags":["auth"],"summary":"Login Route","operationId":"login_route_api_v2_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/organizations":{"post":{"tags":["organizations"],"summary":"Create Organization Route","operationId":"create_organization_route_api_v2_organizations_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["organizations"],"summary":"List Organizations Route","operationId":"list_organizations_route_api_v2_organizations_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/projects":{"post":{"tags":["projects"],"summary":"Create Project Route","operationId":"create_project_route_api_v2_projects_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["projects"],"summary":"List Projects Route","operationId":"list_projects_route_api_v2_projects_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/projects/{project_id}/keys":{"post":{"tags":["projects"],"summary":"Create Api Key Route","operationId":"create_api_key_route_api_v2_projects__project_id__keys_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["projects"],"summary":"List Api Keys Route","operationId":"list_api_keys_route_api_v2_projects__project_id__keys_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/projects/{project_id}/keys/{key_id}/rotate":{"post":{"tags":["projects"],"summary":"Rotate Api Key Route","operationId":"rotate_api_key_route_api_v2_projects__project_id__keys__key_id__rotate_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"key_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Key Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/projects/{project_id}/keys/{key_id}":{"delete":{"tags":["projects"],"summary":"Revoke Api Key Route","operationId":"revoke_api_key_route_api_v2_projects__project_id__keys__key_id__delete","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"key_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Key Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/invoices/schema/validate":{"post":{"tags":["invoices"],"summary":"Validate Invoice Schema Route","operationId":"validate_invoice_schema_route_api_v2_invoices_schema_validate_post","parameters":[{"name":"x-client-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Client-Id"}},{"name":"x-client-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Client-Secret"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceSchemaValidateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/invoices/irn/generate":{"post":{"tags":["invoices"],"summary":"Generate Irn Route","operationId":"generate_irn_route_api_v2_invoices_irn_generate_post","parameters":[{"name":"x-client-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Client-Id"}},{"name":"x-client-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Client-Secret"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IrnGenerateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/invoices/irn/validate":{"post":{"tags":["invoices"],"summary":"Validate Irn Route","operationId":"validate_irn_route_api_v2_invoices_irn_validate_post","parameters":[{"name":"x-client-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Client-Id"}},{"name":"x-client-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Client-Secret"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IrnValidateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/invoices/qr/generate":{"post":{"tags":["invoices"],"summary":"Generate Qr Route","operationId":"generate_qr_route_api_v2_invoices_qr_generate_post","parameters":[{"name":"x-client-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Client-Id"}},{"name":"x-client-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Client-Secret"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QrGenerateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/invoices/render":{"post":{"tags":["invoices"],"summary":"Render Invoice Route","operationId":"render_invoice_route_api_v2_invoices_render_post","parameters":[{"name":"x-client-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Client-Id"}},{"name":"x-client-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Client-Secret"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenderRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/certification/nrs/smoke":{"post":{"tags":["certification"],"summary":"Certification Run Route","operationId":"certification_run_route_api_v2_certification_nrs_smoke_post","parameters":[{"name":"x-client-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Client-Id"}},{"name":"x-client-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Client-Secret"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CertificationRunRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/certification/runs/{run_id}":{"get":{"tags":["certification"],"summary":"Certification Run Detail Route","operationId":"certification_run_detail_route_api_v2_certification_runs__run_id__get","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}},{"name":"x-client-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Client-Id"}},{"name":"x-client-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Client-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/usage":{"get":{"tags":["usage"],"summary":"Usage Route","operationId":"usage_route_api_v2_usage_get","parameters":[{"name":"x-client-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Client-Id"}},{"name":"x-client-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Client-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/audit-logs":{"get":{"tags":["usage"],"summary":"Audit Logs Route","operationId":"audit_logs_route_api_v2_audit_logs_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"ApiKeyCreate":{"properties":{"key_name":{"type":"string","maxLength":255,"minLength":2,"title":"Key Name"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"}},"type":"object","required":["key_name"],"title":"ApiKeyCreate"},"CertificationRunRequest":{"properties":{"invoice_payload":{"type":"object","title":"Invoice Payload"},"invoice_type":{"type":"string","pattern":"^(B2B|B2C|B2G)$","title":"Invoice Type"},"issue_date":{"type":"string","title":"Issue Date"}},"type":"object","required":["invoice_type","issue_date"],"title":"CertificationRunRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"InvoiceSchemaValidateRequest":{"properties":{"invoice_type_code":{"type":"string","title":"Invoice Type Code"},"tax_authority_code":{"type":"string","title":"Tax Authority Code"},"schema_version":{"type":"string","title":"Schema Version","default":"1.1"},"payload":{"type":"object","title":"Payload"}},"type":"object","required":["invoice_type_code","tax_authority_code","payload"],"title":"InvoiceSchemaValidateRequest"},"IrnGenerateRequest":{"properties":{"invoice_reference":{"type":"string","title":"Invoice Reference"},"invoice_type_code":{"type":"string","title":"Invoice Type Code"},"tax_authority_code":{"type":"string","title":"Tax Authority Code"},"issue_date":{"type":"string","title":"Issue Date"}},"type":"object","required":["invoice_reference","invoice_type_code","tax_authority_code","issue_date"],"title":"IrnGenerateRequest"},"IrnValidateRequest":{"properties":{"invoice_reference":{"type":"string","title":"Invoice Reference"},"business_id":{"type":"string","format":"uuid","title":"Business Id"},"irn":{"type":"string","title":"Irn"}},"type":"object","required":["invoice_reference","business_id","irn"],"title":"IrnValidateRequest"},"LoginRequest":{"properties":{"email":{"type":"string","maxLength":255,"minLength":3,"title":"Email"},"password":{"type":"string","maxLength":255,"minLength":8,"title":"Password"}},"type":"object","required":["email","password"],"title":"LoginRequest"},"OrganizationCreate":{"properties":{"name":{"type":"string","maxLength":255,"minLength":2,"title":"Name"},"slug":{"type":"string","maxLength":100,"minLength":2,"title":"Slug"}},"type":"object","required":["name","slug"],"title":"OrganizationCreate"},"ProjectCreate":{"properties":{"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"name":{"type":"string","maxLength":255,"minLength":2,"title":"Name"},"environment":{"type":"string","pattern":"^(sandbox|production)$","title":"Environment","default":"sandbox"}},"type":"object","required":["organization_id","name"],"title":"ProjectCreate"},"QrGenerateRequest":{"properties":{"irn":{"type":"string","title":"Irn"},"timestamp":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Timestamp"}},"type":"object","required":["irn"],"title":"QrGenerateRequest"},"RenderRequest":{"properties":{"invoice_type":{"type":"string","pattern":"^(B2B|B2C|B2G)$","title":"Invoice Type"},"payload":{"type":"object","title":"Payload"}},"type":"object","required":["invoice_type","payload"],"title":"RenderRequest"},"SignupRequest":{"properties":{"email":{"type":"string","maxLength":255,"minLength":3,"title":"Email"},"password":{"type":"string","maxLength":255,"minLength":8,"title":"Password"},"organization_name":{"type":"string","maxLength":255,"minLength":2,"title":"Organization Name"},"organization_slug":{"type":"string","maxLength":100,"minLength":2,"title":"Organization Slug"}},"type":"object","required":["email","password","organization_name","organization_slug"],"title":"SignupRequest"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}