{"openapi":"3.1.0","info":{"title":"PATCH /api/v1/businesses/invoice-settings","version":"1.0.0","description":"Update invoice branding settings"},"servers":[{"url":"https://api.ondayzero.com","description":"Production"}],"paths":{"/api/v1/businesses/invoice-settings":{"patch":{"tags":["businesses"],"summary":"Update invoice branding settings","description":"Update the default footer text shown on invoice PDFs.","operationId":"update_invoice_settings_api_v1_businesses_invoice_settings_patch","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-business-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Business-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceSettingsUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceSettingsResponse"}}}},"400":{"description":"Bad Request - Invalid input","content":{"application/json":{"example":{"detail":"Invalid request parameters"}}}},"401":{"description":"Unauthorized - Authentication required","content":{"application/json":{"example":{"detail":"Not authenticated"}}}},"403":{"description":"Forbidden - Insufficient permissions","content":{"application/json":{"example":{"detail":"Not enough permissions"}}}},"404":{"description":"Not Found - Resource does not exist","content":{"application/json":{"example":{"detail":"Resource not found"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"InvoiceSettingsResponse":{"properties":{"invoice_footer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invoice Footer","description":"Default footer text for invoices (payment instructions, bank details)."},"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Url","description":"Business logo URL used for invoice branding."},"stripe_branding_synced_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Stripe Branding Synced At","description":"When the logo was last synced to Stripe account branding."}},"type":"object","title":"InvoiceSettingsResponse","description":"Response schema for invoice branding settings."},"InvoiceSettingsUpdateRequest":{"properties":{"invoice_footer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invoice Footer","description":"Default footer text for invoices (payment instructions, bank details)."}},"type":"object","title":"InvoiceSettingsUpdateRequest","description":"Request schema for updating invoice branding settings.\n\nUpdate the default footer text shown on invoice PDFs.\nThis appears at the bottom of Stripe-generated invoices."},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}},"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"API Token","description":"API token authentication. Format: `Bearer dz_...`"}}},"security":[{"BearerAuth":[]}]}