{"openapi":"3.1.0","info":{"title":"SyncBooks API","version":"1.0.0","description":"The SyncBooks REST API. Authenticate with an API key (`Authorization: Bearer sk_live_…`) or an OAuth access token. Guides: https://syncbooksapp.com/docs","contact":{"name":"SyncBooks developers","url":"https://syncbooksapp.com/developers"}},"servers":[{"url":"https://api.syncbooksapp.com"}],"tags":[{"name":"Invoices","x-group":"Sales"},{"name":"Customers","x-group":"Sales"},{"name":"Estimates","x-group":"Sales"},{"name":"Credit notes","x-group":"Sales"},{"name":"Payments","x-group":"Sales"},{"name":"Products","x-group":"Inventory"},{"name":"Bills","x-group":"Purchases"},{"name":"Expenses","x-group":"Purchases"},{"name":"Vendors","x-group":"Purchases"},{"name":"Purchase orders","x-group":"Purchases"},{"name":"Procurement","x-group":"Purchases"},{"name":"Chart of accounts","x-group":"Accounting"},{"name":"Journal entries","x-group":"Accounting"},{"name":"General ledger","x-group":"Accounting"},{"name":"Bank transactions","x-group":"Accounting"},{"name":"Budgets","x-group":"Accounting"},{"name":"Fixed assets","x-group":"Accounting"},{"name":"Reports","x-group":"Accounting"},{"name":"Employees","x-group":"People"},{"name":"Payroll","x-group":"People"},{"name":"Projects","x-group":"Operations"},{"name":"CRM","x-group":"Operations"},{"name":"Production","x-group":"Operations"},{"name":"Fleet","x-group":"Industry"},{"name":"E-commerce","x-group":"Industry"},{"name":"Subscriptions","x-group":"Industry"},{"name":"Helpdesk","x-group":"Industry"},{"name":"Repairs","x-group":"Industry"},{"name":"Rental","x-group":"Industry"},{"name":"Field service","x-group":"Industry"},{"name":"Fuel station","x-group":"Industry"},{"name":"Webhooks","x-group":"Platform"}],"paths":{"/api/v1/invoices":{"get":{"operationId":"get_invoices","summary":"List invoices","tags":["Invoices"],"security":[{"apiKey":[]},{"oauth2":["invoices:read"]}],"x-scope":"invoices:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"post_invoices","summary":"Create invoice","tags":["Invoices"],"security":[{"apiKey":[]},{"oauth2":["invoices:write"]}],"x-scope":"invoices:write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/invoices/summary":{"get":{"operationId":"get_invoices_summary","summary":"Get summary","tags":["Invoices"],"security":[{"apiKey":[]},{"oauth2":["invoices:read"]}],"x-scope":"invoices:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/invoices/{id}":{"get":{"operationId":"get_invoices_id","summary":"Retrieve invoice","tags":["Invoices"],"security":[{"apiKey":[]},{"oauth2":["invoices:read"]}],"x-scope":"invoices:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"put":{"operationId":"put_invoices_id","summary":"Update invoice","tags":["Invoices"],"security":[{"apiKey":[]},{"oauth2":["invoices:write"]}],"x-scope":"invoices:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"delete":{"operationId":"delete_invoices_id","summary":"Delete invoice","tags":["Invoices"],"security":[{"apiKey":[]},{"oauth2":["invoices:write"]}],"x-scope":"invoices:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/customers":{"get":{"operationId":"get_customers","summary":"List customers","tags":["Customers"],"security":[{"apiKey":[]},{"oauth2":["customers:read"]}],"x-scope":"customers:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"post_customers","summary":"Create customer","tags":["Customers"],"security":[{"apiKey":[]},{"oauth2":["customers:write"]}],"x-scope":"customers:write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/customers/{id}":{"get":{"operationId":"get_customers_id","summary":"Retrieve customer","tags":["Customers"],"security":[{"apiKey":[]},{"oauth2":["customers:read"]}],"x-scope":"customers:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"put":{"operationId":"put_customers_id","summary":"Update customer","tags":["Customers"],"security":[{"apiKey":[]},{"oauth2":["customers:write"]}],"x-scope":"customers:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"delete":{"operationId":"delete_customers_id","summary":"Delete customer","tags":["Customers"],"security":[{"apiKey":[]},{"oauth2":["customers:write"]}],"x-scope":"customers:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/estimates":{"get":{"operationId":"get_estimates","summary":"List estimates","tags":["Estimates"],"security":[{"apiKey":[]},{"oauth2":["estimates:read"]}],"x-scope":"estimates:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"post_estimates","summary":"Create estimate","tags":["Estimates"],"security":[{"apiKey":[]},{"oauth2":["estimates:write"]}],"x-scope":"estimates:write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/estimates/{id}":{"get":{"operationId":"get_estimates_id","summary":"Retrieve estimate","tags":["Estimates"],"security":[{"apiKey":[]},{"oauth2":["estimates:read"]}],"x-scope":"estimates:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"put":{"operationId":"put_estimates_id","summary":"Update estimate","tags":["Estimates"],"security":[{"apiKey":[]},{"oauth2":["estimates:write"]}],"x-scope":"estimates:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"delete":{"operationId":"delete_estimates_id","summary":"Delete estimate","tags":["Estimates"],"security":[{"apiKey":[]},{"oauth2":["estimates:write"]}],"x-scope":"estimates:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/estimates/{id}/accept":{"post":{"operationId":"post_estimates_id_accept","summary":"Accept estimate","tags":["Estimates"],"security":[{"apiKey":[]},{"oauth2":["estimates:write"]}],"x-scope":"estimates:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/estimates/{id}/decline":{"post":{"operationId":"post_estimates_id_decline","summary":"Decline estimate","tags":["Estimates"],"security":[{"apiKey":[]},{"oauth2":["estimates:write"]}],"x-scope":"estimates:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/estimates/{id}/convert-to-invoice":{"post":{"operationId":"post_estimates_id_convert_to_invoice","summary":"Convert to invoice (estimate)","tags":["Estimates"],"security":[{"apiKey":[]},{"oauth2":["estimates:write"]}],"x-scope":"estimates:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/credit-notes":{"get":{"operationId":"get_credit_notes","summary":"List credit notes","tags":["Credit notes"],"security":[{"apiKey":[]},{"oauth2":["credit_notes:read"]}],"x-scope":"credit_notes:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"post_credit_notes","summary":"Create credit note","tags":["Credit notes"],"security":[{"apiKey":[]},{"oauth2":["credit_notes:write"]}],"x-scope":"credit_notes:write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/credit-notes/{id}":{"get":{"operationId":"get_credit_notes_id","summary":"Retrieve credit note","tags":["Credit notes"],"security":[{"apiKey":[]},{"oauth2":["credit_notes:read"]}],"x-scope":"credit_notes:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"put":{"operationId":"put_credit_notes_id","summary":"Update credit note","tags":["Credit notes"],"security":[{"apiKey":[]},{"oauth2":["credit_notes:write"]}],"x-scope":"credit_notes:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"delete":{"operationId":"delete_credit_notes_id","summary":"Delete credit note","tags":["Credit notes"],"security":[{"apiKey":[]},{"oauth2":["credit_notes:write"]}],"x-scope":"credit_notes:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/credit-notes/{id}/apply":{"post":{"operationId":"post_credit_notes_id_apply","summary":"Apply credit note","tags":["Credit notes"],"security":[{"apiKey":[]},{"oauth2":["credit_notes:write"]}],"x-scope":"credit_notes:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/payments":{"get":{"operationId":"get_payments","summary":"List payments","tags":["Payments"],"security":[{"apiKey":[]},{"oauth2":["payments:read"]}],"x-scope":"payments:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"post_payments","summary":"Create payment","tags":["Payments"],"security":[{"apiKey":[]},{"oauth2":["payments:write"]}],"x-scope":"payments:write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/payments/{id}":{"get":{"operationId":"get_payments_id","summary":"Retrieve payment","tags":["Payments"],"security":[{"apiKey":[]},{"oauth2":["payments:read"]}],"x-scope":"payments:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"put":{"operationId":"put_payments_id","summary":"Update payment","tags":["Payments"],"security":[{"apiKey":[]},{"oauth2":["payments:write"]}],"x-scope":"payments:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"delete":{"operationId":"delete_payments_id","summary":"Delete payment","tags":["Payments"],"security":[{"apiKey":[]},{"oauth2":["payments:write"]}],"x-scope":"payments:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/products":{"get":{"operationId":"get_products","summary":"List products","tags":["Products"],"security":[{"apiKey":[]},{"oauth2":["products:read"]}],"x-scope":"products:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"post_products","summary":"Create product","tags":["Products"],"security":[{"apiKey":[]},{"oauth2":["products:write"]}],"x-scope":"products:write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/products/{id}":{"get":{"operationId":"get_products_id","summary":"Retrieve product","tags":["Products"],"security":[{"apiKey":[]},{"oauth2":["products:read"]}],"x-scope":"products:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"put":{"operationId":"put_products_id","summary":"Update product","tags":["Products"],"security":[{"apiKey":[]},{"oauth2":["products:write"]}],"x-scope":"products:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"delete":{"operationId":"delete_products_id","summary":"Delete product","tags":["Products"],"security":[{"apiKey":[]},{"oauth2":["products:write"]}],"x-scope":"products:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/bills":{"get":{"operationId":"get_bills","summary":"List bills","tags":["Bills"],"security":[{"apiKey":[]},{"oauth2":["bills:read"]}],"x-scope":"bills:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"post_bills","summary":"Create bill","tags":["Bills"],"security":[{"apiKey":[]},{"oauth2":["bills:write"]}],"x-scope":"bills:write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/bills/{id}":{"get":{"operationId":"get_bills_id","summary":"Retrieve bill","tags":["Bills"],"security":[{"apiKey":[]},{"oauth2":["bills:read"]}],"x-scope":"bills:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"put":{"operationId":"put_bills_id","summary":"Update bill","tags":["Bills"],"security":[{"apiKey":[]},{"oauth2":["bills:write"]}],"x-scope":"bills:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"delete":{"operationId":"delete_bills_id","summary":"Delete bill","tags":["Bills"],"security":[{"apiKey":[]},{"oauth2":["bills:write"]}],"x-scope":"bills:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/bills/{id}/approve":{"post":{"operationId":"post_bills_id_approve","summary":"Approve bill","tags":["Bills"],"security":[{"apiKey":[]},{"oauth2":["bills:write"]}],"x-scope":"bills:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/bills/{id}/payment":{"post":{"operationId":"post_bills_id_payment","summary":"Add payment (bill)","tags":["Bills"],"security":[{"apiKey":[]},{"oauth2":["bills:write"]}],"x-scope":"bills:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/bills/{id}/reverse-payments":{"post":{"operationId":"post_bills_id_reverse_payments","summary":"Reverse payments (bill)","tags":["Bills"],"security":[{"apiKey":[]},{"oauth2":["bills:write"]}],"x-scope":"bills:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/expenses":{"get":{"operationId":"get_expenses","summary":"List expenses","tags":["Expenses"],"security":[{"apiKey":[]},{"oauth2":["expenses:read"]}],"x-scope":"expenses:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"post_expenses","summary":"Create expense","tags":["Expenses"],"security":[{"apiKey":[]},{"oauth2":["expenses:write"]}],"x-scope":"expenses:write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/expenses/summary":{"get":{"operationId":"get_expenses_summary","summary":"Get summary","tags":["Expenses"],"security":[{"apiKey":[]},{"oauth2":["expenses:read"]}],"x-scope":"expenses:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/expenses/{id}":{"get":{"operationId":"get_expenses_id","summary":"Retrieve expense","tags":["Expenses"],"security":[{"apiKey":[]},{"oauth2":["expenses:read"]}],"x-scope":"expenses:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"put":{"operationId":"put_expenses_id","summary":"Update expense","tags":["Expenses"],"security":[{"apiKey":[]},{"oauth2":["expenses:write"]}],"x-scope":"expenses:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"delete":{"operationId":"delete_expenses_id","summary":"Delete expense","tags":["Expenses"],"security":[{"apiKey":[]},{"oauth2":["expenses:write"]}],"x-scope":"expenses:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/expenses/{id}/approve":{"post":{"operationId":"post_expenses_id_approve","summary":"Approve expense","tags":["Expenses"],"security":[{"apiKey":[]},{"oauth2":["expenses:write"]}],"x-scope":"expenses:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/expenses/{id}/reject":{"post":{"operationId":"post_expenses_id_reject","summary":"Reject expense","tags":["Expenses"],"security":[{"apiKey":[]},{"oauth2":["expenses:write"]}],"x-scope":"expenses:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/expenses/{id}/mark-paid":{"post":{"operationId":"post_expenses_id_mark_paid","summary":"Mark paid (expense)","tags":["Expenses"],"security":[{"apiKey":[]},{"oauth2":["expenses:write"]}],"x-scope":"expenses:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/vendors":{"get":{"operationId":"get_vendors","summary":"List vendors","tags":["Vendors"],"security":[{"apiKey":[]},{"oauth2":["vendors:read"]}],"x-scope":"vendors:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"post_vendors","summary":"Create vendor","tags":["Vendors"],"security":[{"apiKey":[]},{"oauth2":["vendors:write"]}],"x-scope":"vendors:write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/vendors/{id}":{"get":{"operationId":"get_vendors_id","summary":"Retrieve vendor","tags":["Vendors"],"security":[{"apiKey":[]},{"oauth2":["vendors:read"]}],"x-scope":"vendors:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"put":{"operationId":"put_vendors_id","summary":"Update vendor","tags":["Vendors"],"security":[{"apiKey":[]},{"oauth2":["vendors:write"]}],"x-scope":"vendors:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"delete":{"operationId":"delete_vendors_id","summary":"Delete vendor","tags":["Vendors"],"security":[{"apiKey":[]},{"oauth2":["vendors:write"]}],"x-scope":"vendors:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/purchase-orders":{"get":{"operationId":"get_purchase_orders","summary":"List purchase orders","tags":["Purchase orders"],"security":[{"apiKey":[]},{"oauth2":["purchase_orders:read"]}],"x-scope":"purchase_orders:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"post_purchase_orders","summary":"Create purchase order","tags":["Purchase orders"],"security":[{"apiKey":[]},{"oauth2":["purchase_orders:write"]}],"x-scope":"purchase_orders:write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/purchase-orders/{id}":{"get":{"operationId":"get_purchase_orders_id","summary":"Retrieve purchase order","tags":["Purchase orders"],"security":[{"apiKey":[]},{"oauth2":["purchase_orders:read"]}],"x-scope":"purchase_orders:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"put":{"operationId":"put_purchase_orders_id","summary":"Update purchase order","tags":["Purchase orders"],"security":[{"apiKey":[]},{"oauth2":["purchase_orders:write"]}],"x-scope":"purchase_orders:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"delete":{"operationId":"delete_purchase_orders_id","summary":"Delete purchase order","tags":["Purchase orders"],"security":[{"apiKey":[]},{"oauth2":["purchase_orders:write"]}],"x-scope":"purchase_orders:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/purchase-orders/{id}/approve":{"post":{"operationId":"post_purchase_orders_id_approve","summary":"Approve purchase order","tags":["Purchase orders"],"security":[{"apiKey":[]},{"oauth2":["purchase_orders:write"]}],"x-scope":"purchase_orders:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/purchase-orders/{id}/receive":{"post":{"operationId":"post_purchase_orders_id_receive","summary":"Receive purchase order","tags":["Purchase orders"],"security":[{"apiKey":[]},{"oauth2":["purchase_orders:write"]}],"x-scope":"purchase_orders:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/procurement/config/activate":{"post":{"operationId":"post_procurement_config_activate","summary":"Activate config","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:write"]}],"x-scope":"procurement:write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/procurement/config/deactivate":{"post":{"operationId":"post_procurement_config_deactivate","summary":"Deactivate config","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:write"]}],"x-scope":"procurement:write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/procurement/config":{"get":{"operationId":"get_procurement_config","summary":"Get config","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:read"]}],"x-scope":"procurement:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"put":{"operationId":"put_procurement_config","summary":"Update config (procurement)","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:write"]}],"x-scope":"procurement:write","parameters":[],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/procurement/config/roles":{"post":{"operationId":"post_procurement_config_roles","summary":"Create role","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:write"]}],"x-scope":"procurement:write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/procurement/config/roles/{userId}":{"delete":{"operationId":"delete_procurement_config_roles_userId","summary":"Delete role","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:write"]}],"x-scope":"procurement:write","parameters":[{"name":"userId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/procurement/requisitions":{"post":{"operationId":"post_procurement_requisitions","summary":"Create requisition","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:write"]}],"x-scope":"procurement:write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}},"get":{"operationId":"get_procurement_requisitions","summary":"List requisitions","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:read"]}],"x-scope":"procurement:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/procurement/requisitions/{id}":{"get":{"operationId":"get_procurement_requisitions_id","summary":"Retrieve requisition","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:read"]}],"x-scope":"procurement:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"put":{"operationId":"put_procurement_requisitions_id","summary":"Update requisition","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:write"]}],"x-scope":"procurement:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/procurement/requisitions/{id}/submit":{"post":{"operationId":"post_procurement_requisitions_id_submit","summary":"Submit requisition","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:write"]}],"x-scope":"procurement:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/procurement/requisitions/{id}/cancel":{"post":{"operationId":"post_procurement_requisitions_id_cancel","summary":"Cancel requisition","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:write"]}],"x-scope":"procurement:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/procurement/approvals/pending":{"get":{"operationId":"get_procurement_approvals_pending","summary":"Get pending (approvals)","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:read"]}],"x-scope":"procurement:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/procurement/approvals/{id}/approve":{"post":{"operationId":"post_procurement_approvals_id_approve","summary":"Approve approval","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:write"]}],"x-scope":"procurement:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/procurement/approvals/{id}/reject":{"post":{"operationId":"post_procurement_approvals_id_reject","summary":"Reject approval","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:write"]}],"x-scope":"procurement:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/procurement/approvals/thresholds":{"post":{"operationId":"post_procurement_approvals_thresholds","summary":"Add threshold (approval)","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:write"]}],"x-scope":"procurement:write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}},"get":{"operationId":"get_procurement_approvals_thresholds","summary":"Get thresholds (approvals)","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:read"]}],"x-scope":"procurement:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/procurement/approvals/delegate":{"post":{"operationId":"post_procurement_approvals_delegate","summary":"Delegate approval","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:write"]}],"x-scope":"procurement:write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/procurement/rfq":{"post":{"operationId":"post_procurement_rfq","summary":"Create rfq","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:write"]}],"x-scope":"procurement:write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}},"get":{"operationId":"get_procurement_rfq","summary":"List rfq","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:read"]}],"x-scope":"procurement:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/procurement/rfq/{id}":{"get":{"operationId":"get_procurement_rfq_id","summary":"Retrieve rfq","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:read"]}],"x-scope":"procurement:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/procurement/rfq/{id}/send":{"post":{"operationId":"post_procurement_rfq_id_send","summary":"Send rfq","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:write"]}],"x-scope":"procurement:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/procurement/rfq/{id}/responses":{"post":{"operationId":"post_procurement_rfq_id_responses","summary":"Add response (rfq)","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:write"]}],"x-scope":"procurement:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/procurement/rfq/{id}/award":{"post":{"operationId":"post_procurement_rfq_id_award","summary":"Award rfq","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:write"]}],"x-scope":"procurement:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/procurement/rfq/{id}/convert-to-po":{"post":{"operationId":"post_procurement_rfq_id_convert_to_po","summary":"Convert to po (rfq)","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:write"]}],"x-scope":"procurement:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/procurement/purchase-orders/from-requisition/{requisitionId}":{"post":{"operationId":"post_procurement_purchase_orders_from_requisition_requisitionId","summary":"Create purchase order from requisition","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:write"]}],"x-scope":"procurement:write","parameters":[{"name":"requisitionId","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/procurement/purchase-orders/from-rfq/{rfqId}":{"post":{"operationId":"post_procurement_purchase_orders_from_rfq_rfqId","summary":"Create purchase order from rfq","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:write"]}],"x-scope":"procurement:write","parameters":[{"name":"rfqId","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/procurement/purchase-orders":{"get":{"operationId":"get_procurement_purchase_orders","summary":"List purchase orders","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:read"]}],"x-scope":"procurement:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/procurement/purchase-orders/{id}":{"get":{"operationId":"get_procurement_purchase_orders_id","summary":"Retrieve purchase order","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:read"]}],"x-scope":"procurement:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/procurement/purchase-orders/{id}/send":{"post":{"operationId":"post_procurement_purchase_orders_id_send","summary":"Send purchase order","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:write"]}],"x-scope":"procurement:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/procurement/purchase-orders/{id}/amend":{"put":{"operationId":"put_procurement_purchase_orders_id_amend","summary":"Update amend (purchase order)","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:write"]}],"x-scope":"procurement:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/procurement/purchase-orders/{id}/cancel":{"post":{"operationId":"post_procurement_purchase_orders_id_cancel","summary":"Cancel purchase order","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:write"]}],"x-scope":"procurement:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/procurement/goods-receiving":{"post":{"operationId":"post_procurement_goods_receiving","summary":"Create goods receiving","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:write"]}],"x-scope":"procurement:write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}},"get":{"operationId":"get_procurement_goods_receiving","summary":"List goods receiving","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:read"]}],"x-scope":"procurement:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/procurement/goods-receiving/{id}":{"get":{"operationId":"get_procurement_goods_receiving_id","summary":"Retrieve goods receiving","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:read"]}],"x-scope":"procurement:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/procurement/goods-receiving/{id}/confirm":{"post":{"operationId":"post_procurement_goods_receiving_id_confirm","summary":"Confirm goods receiving","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:write"]}],"x-scope":"procurement:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/procurement/goods-receiving/{id}/cancel":{"post":{"operationId":"post_procurement_goods_receiving_id_cancel","summary":"Cancel goods receiving","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:write"]}],"x-scope":"procurement:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/procurement/invoice-matching/match":{"post":{"operationId":"post_procurement_invoice_matching_match","summary":"Match invoice matching","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:write"]}],"x-scope":"procurement:write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/procurement/invoice-matching":{"get":{"operationId":"get_procurement_invoice_matching","summary":"List invoice matching","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:read"]}],"x-scope":"procurement:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/procurement/invoice-matching/{id}":{"get":{"operationId":"get_procurement_invoice_matching_id","summary":"Retrieve invoice matching","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:read"]}],"x-scope":"procurement:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/procurement/invoice-matching/{id}/approve":{"post":{"operationId":"post_procurement_invoice_matching_id_approve","summary":"Approve invoice matching","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:write"]}],"x-scope":"procurement:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/procurement/invoice-matching/{id}/override":{"post":{"operationId":"post_procurement_invoice_matching_id_override","summary":"Override invoice matching","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:write"]}],"x-scope":"procurement:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/procurement/vendors":{"get":{"operationId":"get_procurement_vendors","summary":"List vendors","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:read"]}],"x-scope":"procurement:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/procurement/vendors/preferred/{category}":{"get":{"operationId":"get_procurement_vendors_preferred_category","summary":"Retrieve preferred","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:read"]}],"x-scope":"procurement:read","parameters":[{"name":"category","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/procurement/vendors/{id}":{"get":{"operationId":"get_procurement_vendors_id","summary":"Retrieve vendor","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:read"]}],"x-scope":"procurement:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/procurement/vendors/{id}/scorecard":{"get":{"operationId":"get_procurement_vendors_id_scorecard","summary":"Get scorecard (vendor)","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:read"]}],"x-scope":"procurement:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/procurement/vendors/{id}/qualify":{"post":{"operationId":"post_procurement_vendors_id_qualify","summary":"Qualify vendor","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:write"]}],"x-scope":"procurement:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/procurement/vendors/{id}/status":{"put":{"operationId":"put_procurement_vendors_id_status","summary":"Update status (vendor)","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:write"]}],"x-scope":"procurement:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/procurement/contracts":{"post":{"operationId":"post_procurement_contracts","summary":"Create contract","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:write"]}],"x-scope":"procurement:write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}},"get":{"operationId":"get_procurement_contracts","summary":"List contracts","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:read"]}],"x-scope":"procurement:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/procurement/contracts/{id}":{"get":{"operationId":"get_procurement_contracts_id","summary":"Retrieve contract","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:read"]}],"x-scope":"procurement:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"put":{"operationId":"put_procurement_contracts_id","summary":"Update contract","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:write"]}],"x-scope":"procurement:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/procurement/contracts/{id}/activate":{"post":{"operationId":"post_procurement_contracts_id_activate","summary":"Activate contract","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:write"]}],"x-scope":"procurement:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/procurement/contracts/{id}/renew":{"post":{"operationId":"post_procurement_contracts_id_renew","summary":"Add renew (contract)","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:write"]}],"x-scope":"procurement:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/procurement/contracts/{id}/terminate":{"post":{"operationId":"post_procurement_contracts_id_terminate","summary":"Terminate contract","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:write"]}],"x-scope":"procurement:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/procurement/contracts/{id}/attachments":{"post":{"operationId":"post_procurement_contracts_id_attachments","summary":"Add attachment (contract)","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:write"]}],"x-scope":"procurement:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/procurement/contracts/{id}/attachments/{attachmentId}":{"delete":{"operationId":"delete_procurement_contracts_id_attachments_attachmentId","summary":"Delete attachment","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:write"]}],"x-scope":"procurement:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"attachmentId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/procurement/catalog":{"post":{"operationId":"post_procurement_catalog","summary":"Create catalog","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:write"]}],"x-scope":"procurement:write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}},"get":{"operationId":"get_procurement_catalog","summary":"List catalog","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:read"]}],"x-scope":"procurement:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/procurement/catalog/{id}":{"get":{"operationId":"get_procurement_catalog_id","summary":"Retrieve catalog","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:read"]}],"x-scope":"procurement:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"put":{"operationId":"put_procurement_catalog_id","summary":"Update catalog","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:write"]}],"x-scope":"procurement:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/procurement/catalog/{id}/discontinue":{"put":{"operationId":"put_procurement_catalog_id_discontinue","summary":"Update discontinue (catalog)","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:write"]}],"x-scope":"procurement:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/procurement/catalog/{id}/vendors":{"post":{"operationId":"post_procurement_catalog_id_vendors","summary":"Add vendor (catalog)","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:write"]}],"x-scope":"procurement:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/procurement/catalog/{id}/link-product":{"post":{"operationId":"post_procurement_catalog_id_link_product","summary":"Add link product (catalog)","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:write"]}],"x-scope":"procurement:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/procurement/catalog/import":{"post":{"operationId":"post_procurement_catalog_import","summary":"Import catalog","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:write"]}],"x-scope":"procurement:write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/procurement/analytics/spend":{"get":{"operationId":"get_procurement_analytics_spend","summary":"Get spend (analytics)","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:read"]}],"x-scope":"procurement:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/procurement/analytics/vendor-performance":{"get":{"operationId":"get_procurement_analytics_vendor_performance","summary":"Get vendor performance (analytics)","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:read"]}],"x-scope":"procurement:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/procurement/analytics/cycle-time":{"get":{"operationId":"get_procurement_analytics_cycle_time","summary":"Get cycle time (analytics)","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:read"]}],"x-scope":"procurement:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/procurement/analytics/savings":{"get":{"operationId":"get_procurement_analytics_savings","summary":"Get savings (analytics)","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:read"]}],"x-scope":"procurement:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/procurement/analytics/po-status":{"get":{"operationId":"get_procurement_analytics_po_status","summary":"Get po status (analytics)","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:read"]}],"x-scope":"procurement:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/procurement/analytics/export":{"post":{"operationId":"post_procurement_analytics_export","summary":"Export analytic","tags":["Procurement"],"security":[{"apiKey":[]},{"oauth2":["procurement:write"]}],"x-scope":"procurement:write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/accounts":{"get":{"operationId":"get_accounts","summary":"List accounts","tags":["Chart of accounts"],"security":[{"apiKey":[]},{"oauth2":["accounts:read"]}],"x-scope":"accounts:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"post_accounts","summary":"Create account","tags":["Chart of accounts"],"security":[{"apiKey":[]},{"oauth2":["accounts:write"]}],"x-scope":"accounts:write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/accounts/{id}":{"get":{"operationId":"get_accounts_id","summary":"Retrieve account","tags":["Chart of accounts"],"security":[{"apiKey":[]},{"oauth2":["accounts:read"]}],"x-scope":"accounts:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"put":{"operationId":"put_accounts_id","summary":"Update account","tags":["Chart of accounts"],"security":[{"apiKey":[]},{"oauth2":["accounts:write"]}],"x-scope":"accounts:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"delete":{"operationId":"delete_accounts_id","summary":"Delete account","tags":["Chart of accounts"],"security":[{"apiKey":[]},{"oauth2":["accounts:write"]}],"x-scope":"accounts:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/journal-entries":{"get":{"operationId":"get_journal_entries","summary":"List journal entries","tags":["Journal entries"],"security":[{"apiKey":[]},{"oauth2":["journal_entries:read"]}],"x-scope":"journal_entries:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"post_journal_entries","summary":"Create journal entry","tags":["Journal entries"],"security":[{"apiKey":[]},{"oauth2":["journal_entries:write"]}],"x-scope":"journal_entries:write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/journal-entries/{id}":{"get":{"operationId":"get_journal_entries_id","summary":"Retrieve journal entry","tags":["Journal entries"],"security":[{"apiKey":[]},{"oauth2":["journal_entries:read"]}],"x-scope":"journal_entries:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"put":{"operationId":"put_journal_entries_id","summary":"Update journal entry","tags":["Journal entries"],"security":[{"apiKey":[]},{"oauth2":["journal_entries:write"]}],"x-scope":"journal_entries:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"delete":{"operationId":"delete_journal_entries_id","summary":"Delete journal entry","tags":["Journal entries"],"security":[{"apiKey":[]},{"oauth2":["journal_entries:write"]}],"x-scope":"journal_entries:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/journal-entries/{id}/post":{"post":{"operationId":"post_journal_entries_id_post","summary":"Post journal entry","tags":["Journal entries"],"security":[{"apiKey":[]},{"oauth2":["journal_entries:write"]}],"x-scope":"journal_entries:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/journal-entries/{id}/void":{"post":{"operationId":"post_journal_entries_id_void","summary":"Void journal entry","tags":["Journal entries"],"security":[{"apiKey":[]},{"oauth2":["journal_entries:write"]}],"x-scope":"journal_entries:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/general-ledger":{"get":{"operationId":"get_general_ledger","summary":"List general ledger","tags":["General ledger"],"security":[{"apiKey":[]},{"oauth2":["general_ledger:read"]}],"x-scope":"general_ledger:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/general-ledger/account/{accountId}":{"get":{"operationId":"get_general_ledger_account_accountId","summary":"Retrieve account","tags":["General ledger"],"security":[{"apiKey":[]},{"oauth2":["general_ledger:read"]}],"x-scope":"general_ledger:read","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/general-ledger/summary":{"get":{"operationId":"get_general_ledger_summary","summary":"Get summary","tags":["General ledger"],"security":[{"apiKey":[]},{"oauth2":["general_ledger:read"]}],"x-scope":"general_ledger:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/bank-transactions":{"get":{"operationId":"get_bank_transactions","summary":"List bank transactions","tags":["Bank transactions"],"security":[{"apiKey":[]},{"oauth2":["bank_transactions:read"]}],"x-scope":"bank_transactions:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"post_bank_transactions","summary":"Create bank transaction","tags":["Bank transactions"],"security":[{"apiKey":[]},{"oauth2":["bank_transactions:write"]}],"x-scope":"bank_transactions:write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/bank-transactions/{id}":{"get":{"operationId":"get_bank_transactions_id","summary":"Retrieve bank transaction","tags":["Bank transactions"],"security":[{"apiKey":[]},{"oauth2":["bank_transactions:read"]}],"x-scope":"bank_transactions:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"put":{"operationId":"put_bank_transactions_id","summary":"Update bank transaction","tags":["Bank transactions"],"security":[{"apiKey":[]},{"oauth2":["bank_transactions:write"]}],"x-scope":"bank_transactions:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"delete":{"operationId":"delete_bank_transactions_id","summary":"Delete bank transaction","tags":["Bank transactions"],"security":[{"apiKey":[]},{"oauth2":["bank_transactions:write"]}],"x-scope":"bank_transactions:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/bank-transactions/{id}/categorize":{"post":{"operationId":"post_bank_transactions_id_categorize","summary":"Add categorize (bank transaction)","tags":["Bank transactions"],"security":[{"apiKey":[]},{"oauth2":["bank_transactions:write"]}],"x-scope":"bank_transactions:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/bank-transactions/{id}/reconcile":{"post":{"operationId":"post_bank_transactions_id_reconcile","summary":"Add reconcile (bank transaction)","tags":["Bank transactions"],"security":[{"apiKey":[]},{"oauth2":["bank_transactions:write"]}],"x-scope":"bank_transactions:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/budgets":{"get":{"operationId":"get_budgets","summary":"List budgets","tags":["Budgets"],"security":[{"apiKey":[]},{"oauth2":["budgets:read"]}],"x-scope":"budgets:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"post_budgets","summary":"Create budget","tags":["Budgets"],"security":[{"apiKey":[]},{"oauth2":["budgets:write"]}],"x-scope":"budgets:write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/budgets/{id}":{"get":{"operationId":"get_budgets_id","summary":"Retrieve budget","tags":["Budgets"],"security":[{"apiKey":[]},{"oauth2":["budgets:read"]}],"x-scope":"budgets:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"put":{"operationId":"put_budgets_id","summary":"Update budget","tags":["Budgets"],"security":[{"apiKey":[]},{"oauth2":["budgets:write"]}],"x-scope":"budgets:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"delete":{"operationId":"delete_budgets_id","summary":"Delete budget","tags":["Budgets"],"security":[{"apiKey":[]},{"oauth2":["budgets:write"]}],"x-scope":"budgets:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/budgets/{id}/activate":{"post":{"operationId":"post_budgets_id_activate","summary":"Activate budget","tags":["Budgets"],"security":[{"apiKey":[]},{"oauth2":["budgets:write"]}],"x-scope":"budgets:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/budgets/{id}/variance":{"get":{"operationId":"get_budgets_id_variance","summary":"Get variance (budget)","tags":["Budgets"],"security":[{"apiKey":[]},{"oauth2":["budgets:read"]}],"x-scope":"budgets:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/assets":{"get":{"operationId":"get_assets","summary":"List assets","tags":["Fixed assets"],"security":[{"apiKey":[]},{"oauth2":["assets:read"]}],"x-scope":"assets:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"post_assets","summary":"Create asset","tags":["Fixed assets"],"security":[{"apiKey":[]},{"oauth2":["assets:write"]}],"x-scope":"assets:write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/assets/{id}":{"get":{"operationId":"get_assets_id","summary":"Retrieve asset","tags":["Fixed assets"],"security":[{"apiKey":[]},{"oauth2":["assets:read"]}],"x-scope":"assets:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"put":{"operationId":"put_assets_id","summary":"Update asset","tags":["Fixed assets"],"security":[{"apiKey":[]},{"oauth2":["assets:write"]}],"x-scope":"assets:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"delete":{"operationId":"delete_assets_id","summary":"Delete asset","tags":["Fixed assets"],"security":[{"apiKey":[]},{"oauth2":["assets:write"]}],"x-scope":"assets:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/assets/{id}/depreciate":{"post":{"operationId":"post_assets_id_depreciate","summary":"Add depreciate (asset)","tags":["Fixed assets"],"security":[{"apiKey":[]},{"oauth2":["assets:write"]}],"x-scope":"assets:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/reports/trial-balance":{"get":{"operationId":"get_reports_trial_balance","summary":"Get trial balance","tags":["Reports"],"security":[{"apiKey":[]},{"oauth2":["reports:read"]}],"x-scope":"reports:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/reports/balance-sheet":{"get":{"operationId":"get_reports_balance_sheet","summary":"Get balance sheet","tags":["Reports"],"security":[{"apiKey":[]},{"oauth2":["reports:read"]}],"x-scope":"reports:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/reports/profit-loss":{"get":{"operationId":"get_reports_profit_loss","summary":"Get profit loss","tags":["Reports"],"security":[{"apiKey":[]},{"oauth2":["reports:read"]}],"x-scope":"reports:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/reports/cash-flow":{"get":{"operationId":"get_reports_cash_flow","summary":"Get cash flow","tags":["Reports"],"security":[{"apiKey":[]},{"oauth2":["reports:read"]}],"x-scope":"reports:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/reports/ar-aging":{"get":{"operationId":"get_reports_ar_aging","summary":"Get ar aging","tags":["Reports"],"security":[{"apiKey":[]},{"oauth2":["reports:read"]}],"x-scope":"reports:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/reports/ap-aging":{"get":{"operationId":"get_reports_ap_aging","summary":"Get ap aging","tags":["Reports"],"security":[{"apiKey":[]},{"oauth2":["reports:read"]}],"x-scope":"reports:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/reports/tax-summary":{"get":{"operationId":"get_reports_tax_summary","summary":"Get tax summary","tags":["Reports"],"security":[{"apiKey":[]},{"oauth2":["reports:read"]}],"x-scope":"reports:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/employees":{"get":{"operationId":"get_employees","summary":"List employees","tags":["Employees"],"security":[{"apiKey":[]},{"oauth2":["employees:read"]}],"x-scope":"employees:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"post_employees","summary":"Create employee","tags":["Employees"],"security":[{"apiKey":[]},{"oauth2":["employees:write"]}],"x-scope":"employees:write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/employees/summary":{"get":{"operationId":"get_employees_summary","summary":"Get summary","tags":["Employees"],"security":[{"apiKey":[]},{"oauth2":["employees:read"]}],"x-scope":"employees:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/employees/{id}":{"get":{"operationId":"get_employees_id","summary":"Retrieve employee","tags":["Employees"],"security":[{"apiKey":[]},{"oauth2":["employees:read"]}],"x-scope":"employees:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"put":{"operationId":"put_employees_id","summary":"Update employee","tags":["Employees"],"security":[{"apiKey":[]},{"oauth2":["employees:write"]}],"x-scope":"employees:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"delete":{"operationId":"delete_employees_id","summary":"Delete employee","tags":["Employees"],"security":[{"apiKey":[]},{"oauth2":["employees:write"]}],"x-scope":"employees:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/payroll/runs":{"get":{"operationId":"get_payroll_runs","summary":"List runs","tags":["Payroll"],"security":[{"apiKey":[]},{"oauth2":["payroll:read"]}],"x-scope":"payroll:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"post_payroll_runs","summary":"Create run","tags":["Payroll"],"security":[{"apiKey":[]},{"oauth2":["payroll:write"]}],"x-scope":"payroll:write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/payroll/runs/{id}":{"get":{"operationId":"get_payroll_runs_id","summary":"Retrieve run","tags":["Payroll"],"security":[{"apiKey":[]},{"oauth2":["payroll:read"]}],"x-scope":"payroll:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"put":{"operationId":"put_payroll_runs_id","summary":"Update run","tags":["Payroll"],"security":[{"apiKey":[]},{"oauth2":["payroll:write"]}],"x-scope":"payroll:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"delete":{"operationId":"delete_payroll_runs_id","summary":"Delete run","tags":["Payroll"],"security":[{"apiKey":[]},{"oauth2":["payroll:write"]}],"x-scope":"payroll:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/payroll/runs/{id}/process":{"post":{"operationId":"post_payroll_runs_id_process","summary":"Process run","tags":["Payroll"],"security":[{"apiKey":[]},{"oauth2":["payroll:write"]}],"x-scope":"payroll:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/projects":{"get":{"operationId":"get_projects","summary":"List projects","tags":["Projects"],"security":[{"apiKey":[]},{"oauth2":["projects:read"]}],"x-scope":"projects:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/projects/{id}":{"get":{"operationId":"get_projects_id","summary":"Retrieve project","tags":["Projects"],"security":[{"apiKey":[]},{"oauth2":["projects:read"]}],"x-scope":"projects:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/projects/{id}/tasks":{"get":{"operationId":"get_projects_id_tasks","summary":"List tasks (project)","tags":["Projects"],"security":[{"apiKey":[]},{"oauth2":["projects:read"]}],"x-scope":"projects:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/projects/{id}/time":{"get":{"operationId":"get_projects_id_time","summary":"Get time (project)","tags":["Projects"],"security":[{"apiKey":[]},{"oauth2":["projects:read"]}],"x-scope":"projects:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/crm/leads":{"get":{"operationId":"get_crm_leads","summary":"List leads","tags":["CRM"],"security":[{"apiKey":[]},{"oauth2":["crm:read"]}],"x-scope":"crm:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/crm/leads/{id}":{"get":{"operationId":"get_crm_leads_id","summary":"Retrieve lead","tags":["CRM"],"security":[{"apiKey":[]},{"oauth2":["crm:read"]}],"x-scope":"crm:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/crm/opportunities":{"get":{"operationId":"get_crm_opportunities","summary":"Get opportunities","tags":["CRM"],"security":[{"apiKey":[]},{"oauth2":["crm:read"]}],"x-scope":"crm:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/crm/contacts":{"get":{"operationId":"get_crm_contacts","summary":"Get contacts","tags":["CRM"],"security":[{"apiKey":[]},{"oauth2":["crm:read"]}],"x-scope":"crm:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/production/bom":{"get":{"operationId":"get_production_bom","summary":"List bom","tags":["Production"],"security":[{"apiKey":[]},{"oauth2":["production:read"]}],"x-scope":"production:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/production/bom/{id}":{"get":{"operationId":"get_production_bom_id","summary":"Retrieve bom","tags":["Production"],"security":[{"apiKey":[]},{"oauth2":["production:read"]}],"x-scope":"production:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/production/work-orders":{"get":{"operationId":"get_production_work_orders","summary":"List work orders","tags":["Production"],"security":[{"apiKey":[]},{"oauth2":["production:read"]}],"x-scope":"production:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/production/work-orders/{id}":{"get":{"operationId":"get_production_work_orders_id","summary":"Retrieve work order","tags":["Production"],"security":[{"apiKey":[]},{"oauth2":["production:read"]}],"x-scope":"production:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/production/summary":{"get":{"operationId":"get_production_summary","summary":"Get summary","tags":["Production"],"security":[{"apiKey":[]},{"oauth2":["production:read"]}],"x-scope":"production:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/fleet/vehicles":{"get":{"operationId":"get_fleet_vehicles","summary":"List vehicles","tags":["Fleet"],"security":[{"apiKey":[]},{"oauth2":["fleet:read"]}],"x-scope":"fleet:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/fleet/vehicles/{id}":{"get":{"operationId":"get_fleet_vehicles_id","summary":"Retrieve vehicle","tags":["Fleet"],"security":[{"apiKey":[]},{"oauth2":["fleet:read"]}],"x-scope":"fleet:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/fleet/fuel-logs":{"post":{"operationId":"post_fleet_fuel_logs","summary":"Add fuel log (fleet)","tags":["Fleet"],"security":[{"apiKey":[]},{"oauth2":["fleet:write"]}],"x-scope":"fleet:write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}},"get":{"operationId":"get_fleet_fuel_logs","summary":"Get fuel logs","tags":["Fleet"],"security":[{"apiKey":[]},{"oauth2":["fleet:read"]}],"x-scope":"fleet:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/fleet/maintenance":{"post":{"operationId":"post_fleet_maintenance","summary":"Add maintenance (fleet)","tags":["Fleet"],"security":[{"apiKey":[]},{"oauth2":["fleet:write"]}],"x-scope":"fleet:write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}},"get":{"operationId":"get_fleet_maintenance","summary":"Get maintenance","tags":["Fleet"],"security":[{"apiKey":[]},{"oauth2":["fleet:read"]}],"x-scope":"fleet:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/fleet/trips":{"post":{"operationId":"post_fleet_trips","summary":"Add trip (fleet)","tags":["Fleet"],"security":[{"apiKey":[]},{"oauth2":["fleet:write"]}],"x-scope":"fleet:write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}},"get":{"operationId":"get_fleet_trips","summary":"Get trips","tags":["Fleet"],"security":[{"apiKey":[]},{"oauth2":["fleet:read"]}],"x-scope":"fleet:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/ecommerce/orders":{"get":{"operationId":"get_ecommerce_orders","summary":"List orders","tags":["E-commerce"],"security":[{"apiKey":[]},{"oauth2":["ecommerce:read"]}],"x-scope":"ecommerce:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/ecommerce/orders/{id}":{"get":{"operationId":"get_ecommerce_orders_id","summary":"Retrieve order","tags":["E-commerce"],"security":[{"apiKey":[]},{"oauth2":["ecommerce:read"]}],"x-scope":"ecommerce:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/ecommerce/orders/{id}/status":{"patch":{"operationId":"patch_ecommerce_orders_id_status","summary":"Update status (order)","tags":["E-commerce"],"security":[{"apiKey":[]},{"oauth2":["ecommerce:write"]}],"x-scope":"ecommerce:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/ecommerce/store-config":{"get":{"operationId":"get_ecommerce_store_config","summary":"Get store config","tags":["E-commerce"],"security":[{"apiKey":[]},{"oauth2":["ecommerce:read"]}],"x-scope":"ecommerce:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/ecommerce/coupons":{"get":{"operationId":"get_ecommerce_coupons","summary":"Get coupons","tags":["E-commerce"],"security":[{"apiKey":[]},{"oauth2":["ecommerce:read"]}],"x-scope":"ecommerce:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/ecommerce/reviews":{"get":{"operationId":"get_ecommerce_reviews","summary":"Get reviews","tags":["E-commerce"],"security":[{"apiKey":[]},{"oauth2":["ecommerce:read"]}],"x-scope":"ecommerce:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/subscriptions/plans":{"get":{"operationId":"get_subscriptions_plans","summary":"Get plans","tags":["Subscriptions"],"security":[{"apiKey":[]},{"oauth2":["subscriptions:read"]}],"x-scope":"subscriptions:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/subscriptions/subscribers":{"get":{"operationId":"get_subscriptions_subscribers","summary":"List subscribers","tags":["Subscriptions"],"security":[{"apiKey":[]},{"oauth2":["subscriptions:read"]}],"x-scope":"subscriptions:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/subscriptions/subscribers/{id}":{"get":{"operationId":"get_subscriptions_subscribers_id","summary":"Retrieve subscriber","tags":["Subscriptions"],"security":[{"apiKey":[]},{"oauth2":["subscriptions:read"]}],"x-scope":"subscriptions:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/subscriptions/subscribe":{"post":{"operationId":"post_subscriptions_subscribe","summary":"Add subscribe (subscription)","tags":["Subscriptions"],"security":[{"apiKey":[]},{"oauth2":["subscriptions:write"]}],"x-scope":"subscriptions:write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/subscriptions/subscribers/{id}/cancel":{"patch":{"operationId":"patch_subscriptions_subscribers_id_cancel","summary":"Update cancel (subscriber)","tags":["Subscriptions"],"security":[{"apiKey":[]},{"oauth2":["subscriptions:write"]}],"x-scope":"subscriptions:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/subscriptions/metrics":{"get":{"operationId":"get_subscriptions_metrics","summary":"Get metrics","tags":["Subscriptions"],"security":[{"apiKey":[]},{"oauth2":["subscriptions:read"]}],"x-scope":"subscriptions:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/helpdesk/tickets":{"get":{"operationId":"get_helpdesk_tickets","summary":"List tickets","tags":["Helpdesk"],"security":[{"apiKey":[]},{"oauth2":["helpdesk:read"]}],"x-scope":"helpdesk:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"post_helpdesk_tickets","summary":"Create ticket","tags":["Helpdesk"],"security":[{"apiKey":[]},{"oauth2":["helpdesk:write"]}],"x-scope":"helpdesk:write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/helpdesk/tickets/{id}":{"get":{"operationId":"get_helpdesk_tickets_id","summary":"Retrieve ticket","tags":["Helpdesk"],"security":[{"apiKey":[]},{"oauth2":["helpdesk:read"]}],"x-scope":"helpdesk:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"patch":{"operationId":"patch_helpdesk_tickets_id","summary":"Update ticket","tags":["Helpdesk"],"security":[{"apiKey":[]},{"oauth2":["helpdesk:write"]}],"x-scope":"helpdesk:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/helpdesk/tickets/{id}/replies":{"post":{"operationId":"post_helpdesk_tickets_id_replies","summary":"Add reply (ticket)","tags":["Helpdesk"],"security":[{"apiKey":[]},{"oauth2":["helpdesk:write"]}],"x-scope":"helpdesk:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/repairs/jobs":{"get":{"operationId":"get_repairs_jobs","summary":"List jobs","tags":["Repairs"],"security":[{"apiKey":[]},{"oauth2":["repairs:read"]}],"x-scope":"repairs:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"post_repairs_jobs","summary":"Create job","tags":["Repairs"],"security":[{"apiKey":[]},{"oauth2":["repairs:write"]}],"x-scope":"repairs:write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/repairs/jobs/{id}":{"get":{"operationId":"get_repairs_jobs_id","summary":"Retrieve job","tags":["Repairs"],"security":[{"apiKey":[]},{"oauth2":["repairs:read"]}],"x-scope":"repairs:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/repairs/jobs/{id}/status":{"patch":{"operationId":"patch_repairs_jobs_id_status","summary":"Update status (job)","tags":["Repairs"],"security":[{"apiKey":[]},{"oauth2":["repairs:write"]}],"x-scope":"repairs:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/repairs/jobs/{id}/parts":{"get":{"operationId":"get_repairs_jobs_id_parts","summary":"List parts (job)","tags":["Repairs"],"security":[{"apiKey":[]},{"oauth2":["repairs:read"]}],"x-scope":"repairs:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/rental/assets":{"get":{"operationId":"get_rental_assets","summary":"Get assets","tags":["Rental"],"security":[{"apiKey":[]},{"oauth2":["rental:read"]}],"x-scope":"rental:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/rental/contracts":{"get":{"operationId":"get_rental_contracts","summary":"List contracts","tags":["Rental"],"security":[{"apiKey":[]},{"oauth2":["rental:read"]}],"x-scope":"rental:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"post_rental_contracts","summary":"Create contract","tags":["Rental"],"security":[{"apiKey":[]},{"oauth2":["rental:write"]}],"x-scope":"rental:write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/rental/contracts/{id}":{"get":{"operationId":"get_rental_contracts_id","summary":"Retrieve contract","tags":["Rental"],"security":[{"apiKey":[]},{"oauth2":["rental:read"]}],"x-scope":"rental:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/rental/checkout":{"post":{"operationId":"post_rental_checkout","summary":"Add checkout (rental)","tags":["Rental"],"security":[{"apiKey":[]},{"oauth2":["rental:write"]}],"x-scope":"rental:write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/rental/checkin":{"post":{"operationId":"post_rental_checkin","summary":"Add checkin (rental)","tags":["Rental"],"security":[{"apiKey":[]},{"oauth2":["rental:write"]}],"x-scope":"rental:write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/field-service/jobs":{"get":{"operationId":"get_field_service_jobs","summary":"List jobs","tags":["Field service"],"security":[{"apiKey":[]},{"oauth2":["field_service:read"]}],"x-scope":"field_service:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"post_field_service_jobs","summary":"Create job","tags":["Field service"],"security":[{"apiKey":[]},{"oauth2":["field_service:write"]}],"x-scope":"field_service:write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/field-service/jobs/{id}":{"get":{"operationId":"get_field_service_jobs_id","summary":"Retrieve job","tags":["Field service"],"security":[{"apiKey":[]},{"oauth2":["field_service:read"]}],"x-scope":"field_service:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/field-service/jobs/{id}/status":{"patch":{"operationId":"patch_field_service_jobs_id_status","summary":"Update status (job)","tags":["Field service"],"security":[{"apiKey":[]},{"oauth2":["field_service:write"]}],"x-scope":"field_service:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/field-service/jobs/{id}/checkin":{"post":{"operationId":"post_field_service_jobs_id_checkin","summary":"Add checkin (job)","tags":["Field service"],"security":[{"apiKey":[]},{"oauth2":["field_service:write"]}],"x-scope":"field_service:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/fuel-station/pumps":{"get":{"operationId":"get_fuel_station_pumps","summary":"Get pumps","tags":["Fuel station"],"security":[{"apiKey":[]},{"oauth2":["fuel_station:read"]}],"x-scope":"fuel_station:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/fuel-station/shifts":{"get":{"operationId":"get_fuel_station_shifts","summary":"List shifts","tags":["Fuel station"],"security":[{"apiKey":[]},{"oauth2":["fuel_station:read"]}],"x-scope":"fuel_station:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/fuel-station/shifts/open":{"post":{"operationId":"post_fuel_station_shifts_open","summary":"Open shift","tags":["Fuel station"],"security":[{"apiKey":[]},{"oauth2":["fuel_station:write"]}],"x-scope":"fuel_station:write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/fuel-station/shifts/{id}/close":{"post":{"operationId":"post_fuel_station_shifts_id_close","summary":"Close shift","tags":["Fuel station"],"security":[{"apiKey":[]},{"oauth2":["fuel_station:write"]}],"x-scope":"fuel_station:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/fuel-station/tanks":{"get":{"operationId":"get_fuel_station_tanks","summary":"Get tanks","tags":["Fuel station"],"security":[{"apiKey":[]},{"oauth2":["fuel_station:read"]}],"x-scope":"fuel_station:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/fuel-station/dip-readings":{"post":{"operationId":"post_fuel_station_dip_readings","summary":"Add dip reading (fuel station)","tags":["Fuel station"],"security":[{"apiKey":[]},{"oauth2":["fuel_station:write"]}],"x-scope":"fuel_station:write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/fuel-station/deliveries":{"post":{"operationId":"post_fuel_station_deliveries","summary":"Add delivery (fuel station)","tags":["Fuel station"],"security":[{"apiKey":[]},{"oauth2":["fuel_station:write"]}],"x-scope":"fuel_station:write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/fuel-station/credit-sales":{"post":{"operationId":"post_fuel_station_credit_sales","summary":"Add credit sale (fuel station)","tags":["Fuel station"],"security":[{"apiKey":[]},{"oauth2":["fuel_station:write"]}],"x-scope":"fuel_station:write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}},"get":{"operationId":"get_fuel_station_credit_sales","summary":"Get credit sales","tags":["Fuel station"],"security":[{"apiKey":[]},{"oauth2":["fuel_station:read"]}],"x-scope":"fuel_station:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/fuel-station/price-changes":{"post":{"operationId":"post_fuel_station_price_changes","summary":"Add price change (fuel station)","tags":["Fuel station"],"security":[{"apiKey":[]},{"oauth2":["fuel_station:write"]}],"x-scope":"fuel_station:write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}},"/api/v1/webhooks":{"post":{"operationId":"post_webhooks","summary":"Create webhook","tags":["Webhooks"],"security":[{"apiKey":[]},{"oauth2":["webhooks:write"]}],"x-scope":"webhooks:write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}},"get":{"operationId":"get_webhooks","summary":"List webhooks","tags":["Webhooks"],"security":[{"apiKey":[]},{"oauth2":["webhooks:read"]}],"x-scope":"webhooks:read","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/webhooks/{id}":{"delete":{"operationId":"delete_webhooks_id","summary":"Delete webhook","tags":["Webhooks"],"security":[{"apiKey":[]},{"oauth2":["webhooks:write"]}],"x-scope":"webhooks:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/webhooks/{id}/deliveries":{"get":{"operationId":"get_webhooks_id_deliveries","summary":"List deliveries (webhook)","tags":["Webhooks"],"security":[{"apiKey":[]},{"oauth2":["webhooks:read"]}],"x-scope":"webhooks:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/api/v1/webhooks/{id}/test":{"post":{"operationId":"post_webhooks_id_test","summary":"Test webhook","tags":["Webhooks"],"security":[{"apiKey":[]},{"oauth2":["webhooks:write"]}],"x-scope":"webhooks:write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}}}}},"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","description":"An API key from the developer dashboard"},"oauth2":{"type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://syncbooksapp.com/oauth/authorize","tokenUrl":"https://api.syncbooksapp.com/oauth/token","scopes":{"invoices:read":"Read invoices","invoices:write":"Create and change invoices","customers:read":"Read customers","customers:write":"Create and change customers","estimates:read":"Read estimates","estimates:write":"Create and change estimates","credit_notes:read":"Read credit notes","credit_notes:write":"Create and change credit notes","payments:read":"Read payments","payments:write":"Create and change payments","products:read":"Read products","products:write":"Create and change products","bills:read":"Read bills","bills:write":"Create and change bills","expenses:read":"Read expenses","expenses:write":"Create and change expenses","vendors:read":"Read vendors","vendors:write":"Create and change vendors","purchase_orders:read":"Read purchase orders","purchase_orders:write":"Create and change purchase orders","procurement:read":"Read procurement","procurement:write":"Create and change procurement","accounts:read":"Read chart of accounts","accounts:write":"Create and change chart of accounts","journal_entries:read":"Read journal entries","journal_entries:write":"Create and change journal entries","general_ledger:read":"Read general ledger","general_ledger:write":"Create and change general ledger","bank_transactions:read":"Read bank transactions","bank_transactions:write":"Create and change bank transactions","budgets:read":"Read budgets","budgets:write":"Create and change budgets","assets:read":"Read fixed assets","assets:write":"Create and change fixed assets","reports:read":"Read reports","reports:write":"Create and change reports","employees:read":"Read employees","employees:write":"Create and change employees","payroll:read":"Read payroll","payroll:write":"Create and change payroll","projects:read":"Read projects","projects:write":"Create and change projects","crm:read":"Read crm","crm:write":"Create and change crm","production:read":"Read production","production:write":"Create and change production","fleet:read":"Read fleet","fleet:write":"Create and change fleet","ecommerce:read":"Read e-commerce","ecommerce:write":"Create and change e-commerce","subscriptions:read":"Read subscriptions","subscriptions:write":"Create and change subscriptions","helpdesk:read":"Read helpdesk","helpdesk:write":"Create and change helpdesk","repairs:read":"Read repairs","repairs:write":"Create and change repairs","rental:read":"Read rental","rental:write":"Create and change rental","field_service:read":"Read field service","field_service:write":"Create and change field service","fuel_station:read":"Read fuel station","fuel_station:write":"Create and change fuel station","webhooks:read":"Read webhooks","webhooks:write":"Create and change webhooks"}}}}},"parameters":{"IdempotencyKey":{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":255},"description":"Retry safely: the same key within 24 hours returns the first answer instead of doing the work again."}},"responses":{"Error":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"schemas":{"Error":{"type":"object","required":["error","code","request_id"],"properties":{"error":{"type":"string","description":"What went wrong, for people"},"code":{"type":"string","description":"What went wrong, for code (e.g. not_found, insufficient_scope, validation_failed)"},"details":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"message":{"type":"string"}}}},"request_id":{"type":"string","description":"Quote it to support"},"doc_url":{"type":"string"}}}}}}