{ "success": false, "error": { "message": "Expense cannot be modified due to accounting restrictions", "type": "invalid_request_error", "code": "expense_locked" }}
{ "success": false, "error": { "message": "Validation failed", "type": "invalid_request_error", "code": "validation_error", "fields": { "amount": "Amount must be greater than 0", "payment_type": "Payment type is required when expense is marked as paid" } }}
{ "success": false, "error": { "message": "Expense cannot be modified due to accounting restrictions", "type": "invalid_request_error", "code": "expense_locked" }}
{ "success": false, "error": { "message": "Validation failed", "type": "invalid_request_error", "code": "validation_error", "fields": { "amount": "Amount must be greater than 0", "payment_type": "Payment type is required when expense is marked as paid" } }}
The Update Expense endpoint allows you to modify an existing expense record. You can update any field including supplier, category, amounts, payment status, and other details. The system will automatically recalculate VAT and currency conversions based on your changes.
Some expenses may not be modifiable if they are locked due to accounting periods or other business rules. The system will return an error if the expense cannot be modified.
Path Parameters
string
required
The CzUid of the expense to update
Request Body
All fields are optional - only include the fields you want to update. Existing values will be preserved for any fields not included in the request.
string
Change the supplier for this expense (CzUid)
integer
Change the expense category
string
Update the reference or invoice number
string
Update the expense description
number
Update the expense amount (will trigger VAT recalculation)
boolean
Change whether the amount includes VAT
integer | string
Update the VAT percentage. Either a numeric value (0, 5, 9, 11, 19, 21) or the string "mix" for multi-rate receipts where the caller supplies total VAT manually via amount_vat_manual. See Mix VAT mode on Create for the full shape.
number
Total VAT amount in receipt currency. Required (>= 0) when vat = "mix", ignored otherwise. The server stores amount_wvat = amount, amount_vat = amount_vat_manual, amount_total = amount + amount_vat_manual.
string
Change the currency (will trigger currency conversion recalculation)
string
Update the expense date (YYYY-MM-DD)
string
Update the payment due date (YYYY-MM-DD)
boolean
Change the payment status
string
Update the payment date (only relevant if is_paid is true)
integer
Update the payment type ID (1-7, only relevant if is_paid is true):
1 - Cash
2 - Bank transfer
3 - Card
4 - Check
5 - Promissory note
6 - Other
7 - Compensation
boolean
Enable or disable currency exchange
string
Update the target currency for exchange
array
Replace the expense line rows. Sending itemsoverwrites all
existing lines for this expense — send the full desired set, not a diff.
Lines you omit are deleted. When items is present the server derives
amount, vat, and vat_breakdown from the lines; the corresponding
header-level fields on the request body are ignored.Omit items entirely to leave the existing lines untouched and update
only the header fields you pass. To convert an itemized expense back to
flat, send an empty items: [] alongside new amount + vat.Per-item shape matches the Create Expense endpoint.
See Expense Lines & VAT Breakdown for rounding rules.
array
Update the per-rate VAT breakdown for multi-VAT receipts on the flat or
mix paths. Send an array of { rate, net, vat_amount, gross } entries
(two or more). On the mix path, the breakdown is also used to synthesize
one persisted line per rate group. Ignored when items is supplied.
number
Update the exchange rate
Response
Returns the updated expense object with all recalculated fields.
object
The updated expense object with all details
Show Updated Expense Properties
string
Expense CzUid (unchanged)
string
Updated reference
string
Updated description
object
Recalculated amounts in expense currency
object
Recalculated amounts in base currency
integer
Updated VAT percentage
boolean
Updated VAT inclusion flag
string
Updated expense date
string
Updated due date
boolean
Updated payment status
string
Updated payment date
object
Updated payment type info
string
Recalculated expense status
string
Updated supplier CzUid
integer
Updated category ID
integer
Original user ID (unchanged)
object
Updated currency exchange info
string
Original creation time (unchanged)
string
New modification timestamp
string
Success message confirming the update
Automatic Recalculations
When you update certain fields, the system automatically recalculates related values:
VAT Recalculation
Amount changes: VAT amounts are recalculated based on the new amount and VAT percentage
VAT percentage changes: All VAT-related amounts are recalculated
with_vat changes: The relationship between total and VAT-exclusive amounts is recalculated
Currency Conversion
Currency changes: Account amounts are recalculated using current exchange rates
Exchange rate changes: Account amounts are recalculated with the new rate
Status Updates
Payment status: The overall expense status is updated based on payment and due date information
Validation Rules
Modifiability: The expense must not be locked by accounting rules
Supplier: If changed, must exist and be owned by your firm
Category: If changed, must be a valid expense category
Amount: If changed, must be a positive number
Dates: Must be in YYYY-MM-DD format
Payment consistency: If marking as paid, payment_type is required
{ "success": false, "error": { "message": "Expense cannot be modified due to accounting restrictions", "type": "invalid_request_error", "code": "expense_locked" }}
{ "success": false, "error": { "message": "Validation failed", "type": "invalid_request_error", "code": "validation_error", "fields": { "amount": "Amount must be greater than 0", "payment_type": "Payment type is required when expense is marked as paid" } }}
All fields optional. Sending items REPLACES all existing lines —
send the full desired set, not a diff. Omit items to leave lines
untouched. To convert an itemized expense back to flat, send
items: [] alongside new amount + vat.
supplier_id
string
category_id
integer | null
reference
string
description
string
amount
number
with_vat
enum<integer>
Available options:
0,
1
vat
enum<integer>enum<string>
VAT percentage. Either a numeric value or the string "mix" for
multi-rate receipts. When set to "mix" the request must include
amount_vat_manual.
Available options:
0,
5,
9,
11,
19,
21
amount_vat_manual
number
Total VAT amount when vat = "mix". Server stores
amount_wvat = amount, amount_vat = amount_vat_manual,
amount_total = amount + amount_vat_manual.
Required range: x >= 0
currency
string
date
string<date>
due_date
string<date>
is_paid
enum<integer>
Available options:
0,
1
paid_date
string<date>
payment_type
integer
Required range: 1 <= x <= 7
with_currency_exchange
enum<integer>
Available options:
0,
1
currency_to
string
currency_rate
number
items
object[]
Replace all line rows. When present, the server re-derives
amount / vat / vat_breakdown from the lines and ignores
the corresponding header fields on the body. Empty array
([]) clears the lines.
Show child attributes
vat_breakdown
object[]
Update the per-rate breakdown for flat-path multi-VAT receipts.
Ignored when items is sent.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Contazen API Documentation","colors":{"primary":"#0f9d59","light":"#07C983","dark":"#0f9d59"},"logo":{"light":"https://docs.contazen.ro/logo/light.svg","dark":"https://docs.contazen.ro/logo/dark.svg"},"favicon":"https://mintcdn.com/contazen/oM2UxkCsSXTMlxce/favicon.svg?fit=max\u0026auto=format\u0026n=oM2UxkCsSXTMlxce\u0026q=85\u0026s=ef4ff6f724b30c3d5c82317ce0463ac2","api":{"openapi":"contazen-api.openapi.yaml","playground":{"display":"interactive"},"mdx":{"auth":{"method":"bearer"},"server":"https://api.contazen.ro/v1"}},"appearance":{"default":"light"},"navbar":{"links":[{"href":"mailto:contact@contazen.ro","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.contazen.ro"}},"footer":{"socials":{"x":"https://x.com/contazen","linkedin":"https://www.linkedin.com/company/contazen"}},"search":{"prompt":"Search documentation..."},"seo":{"metatags":{"og:title":"Contazen API Documentation","og:description":"Build powerful integrations with the Contazen invoicing platform","og:image":"https://contazen.ro/og-image.png"},"indexing":"navigable"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"contazen","hasAudioNarration":false,"actualSubdomain":"contazen","customDomains":["docs.contazen.ro"],"gitSource":{"type":"github","owner":"andreigusan","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true,"issues":true},"entitlements":{},"buildId":"6ae92beba4cf53b49f369f2f:success","clientVersion":"0.0.4143","searchFilterCounts":[{"language":"default","tag":"API Reference","count":192},{"language":"default","tag":"Documentation","count":17},{"language":"default","tag":"Invoices","count":16},{"language":"default","tag":"Expenses","count":12},{"language":"default","tag":"Invoice Series","count":9},{"language":"default","tag":"Getting Started","count":9},{"language":"default","tag":"Core Concepts","count":8},{"language":"default","tag":"Supplier Bills","count":7},{"language":"default","tag":"Conta","count":6},{"language":"default","tag":"Clients","count":5}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/endpoints/expenses/update","slug":"/api-reference/endpoints/expenses/update","pageMetadata":{"title":"Update Expense","openapi":"PUT /expenses/{id}","description":"Update an existing expense with new information while preserving data integrity","href":"/api-reference/endpoints/expenses/update"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Update an existing expense with new information while preserving data integrity\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Expandable,Heading,ParamField,ResponseField,Warning}=_components;if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`overview`,children:`Overview`}),`\n`,_jsx(_components.p,{children:`The Update Expense endpoint allows you to modify an existing expense record. You can update any field including supplier, category, amounts, payment status, and other details. The system will automatically recalculate VAT and currency conversions based on your changes.`}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Some expenses may not be modifiable if they are locked due to accounting periods or other business rules. The system will return an error if the expense cannot be modified.`})}),`\n`,_jsx(Heading,{level:`2`,id:`path-parameters`,children:`Path Parameters`}),`\n`,_jsx(ParamField,{path:`id`,type:`string`,required:true,id:`param-id`,children:_jsx(_components.p,{children:`The CzUid of the expense to update`})}),`\n`,_jsx(Heading,{level:`2`,id:`request-body`,children:`Request Body`}),`\n`,_jsx(_components.p,{children:`All fields are optional - only include the fields you want to update. Existing values will be preserved for any fields not included in the request.`}),`\n`,_jsx(ParamField,{body:`supplier_id`,type:`string`,id:`param-supplier-id`,children:_jsx(_components.p,{children:`Change the supplier for this expense (CzUid)`})}),`\n`,_jsx(ParamField,{body:`category_id`,type:`integer`,id:`param-category-id`,children:_jsx(_components.p,{children:`Change the expense category`})}),`\n`,_jsx(ParamField,{body:`reference`,type:`string`,id:`param-reference`,children:_jsx(_components.p,{children:`Update the reference or invoice number`})}),`\n`,_jsx(ParamField,{body:`description`,type:`string`,id:`param-description`,children:_jsx(_components.p,{children:`Update the expense description`})}),`\n`,_jsx(ParamField,{body:`amount`,type:`number`,id:`param-amount`,children:_jsx(_components.p,{children:`Update the expense amount (will trigger VAT recalculation)`})}),`\n`,_jsx(ParamField,{body:`with_vat`,type:`boolean`,id:`param-with-vat`,children:_jsx(_components.p,{children:`Change whether the amount includes VAT`})}),`\n`,_jsx(ParamField,{body:`vat`,type:`integer | string`,id:`param-vat`,children:_jsxs(_components.p,{children:[`Update the VAT percentage. Either a numeric value (`,_jsx(_components.code,{children:`0`}),`, `,_jsx(_components.code,{children:`5`}),`, `,_jsx(_components.code,{children:`9`}),`, `,_jsx(_components.code,{children:`11`}),`, `,_jsx(_components.code,{children:`19`}),`, `,_jsx(_components.code,{children:`21`}),`) or the string `,_jsx(_components.code,{children:`\"mix\"`}),` for multi-rate receipts where the caller supplies total VAT manually via `,_jsx(_components.code,{children:`amount_vat_manual`}),`. See `,_jsx(_components.a,{href:`/api-reference/endpoints/expenses/create#mix-vat-mode`,children:`Mix VAT mode on Create`}),` for the full shape.`]})}),`\n`,_jsx(ParamField,{body:`amount_vat_manual`,type:`number`,id:`param-amount-vat-manual`,children:_jsxs(_components.p,{children:[`Total VAT amount in receipt currency. Required (`,_jsx(_components.code,{children:`>= 0`}),`) when `,_jsx(_components.code,{children:`vat = \"mix\"`}),`, ignored otherwise. The server stores `,_jsx(_components.code,{children:`amount_wvat = amount`}),`, `,_jsx(_components.code,{children:`amount_vat = amount_vat_manual`}),`, `,_jsx(_components.code,{children:`amount_total = amount + amount_vat_manual`}),`.`]})}),`\n`,_jsx(ParamField,{body:`currency`,type:`string`,id:`param-currency`,children:_jsx(_components.p,{children:`Change the currency (will trigger currency conversion recalculation)`})}),`\n`,_jsx(ParamField,{body:`date`,type:`string`,format:`date`,id:`param-date`,children:_jsx(_components.p,{children:`Update the expense date (YYYY-MM-DD)`})}),`\n`,_jsx(ParamField,{body:`due_date`,type:`string`,format:`date`,id:`param-due-date`,children:_jsx(_components.p,{children:`Update the payment due date (YYYY-MM-DD)`})}),`\n`,_jsx(ParamField,{body:`is_paid`,type:`boolean`,id:`param-is-paid`,children:_jsx(_components.p,{children:`Change the payment status`})}),`\n`,_jsx(ParamField,{body:`paid_date`,type:`string`,format:`date`,id:`param-paid-date`,children:_jsx(_components.p,{children:`Update the payment date (only relevant if is_paid is true)`})}),`\n`,_jsxs(ParamField,{body:`payment_type`,type:`integer`,id:`param-payment-type`,children:[_jsx(_components.p,{children:`Update the payment type ID (1-7, only relevant if is_paid is true):`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`1`}),` - Cash`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`2`}),` - Bank transfer`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`3`}),` - Card`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`4`}),` - Check`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`5`}),` - Promissory note`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`6`}),` - Other`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`7`}),` - Compensation`]}),`\n`]})]}),`\n`,_jsx(ParamField,{body:`with_currency_exchange`,type:`boolean`,id:`param-with-currency-exchange`,children:_jsx(_components.p,{children:`Enable or disable currency exchange`})}),`\n`,_jsx(ParamField,{body:`currency_to`,type:`string`,id:`param-currency-to`,children:_jsx(_components.p,{children:`Update the target currency for exchange`})}),`\n`,_jsxs(ParamField,{body:`items`,type:`array`,id:`param-items`,children:[_jsxs(_components.p,{children:[`Replace the expense line rows. Sending `,_jsx(_components.code,{children:`items`}),` `,_jsx(_components.strong,{children:`overwrites`}),` all\nexisting lines for this expense — send the full desired set, not a diff.\nLines you omit are deleted. When `,_jsx(_components.code,{children:`items`}),` is present the server derives\n`,_jsx(_components.code,{children:`amount`}),`, `,_jsx(_components.code,{children:`vat`}),`, and `,_jsx(_components.code,{children:`vat_breakdown`}),` from the lines; the corresponding\nheader-level fields on the request body are ignored.`]}),_jsxs(_components.p,{children:[`Omit `,_jsx(_components.code,{children:`items`}),` entirely to leave the existing lines untouched and update\nonly the header fields you pass. To convert an itemized expense back to\nflat, send an empty `,_jsx(_components.code,{children:`items: []`}),` alongside new `,_jsx(_components.code,{children:`amount`}),` + `,_jsx(_components.code,{children:`vat`}),`.`]}),_jsxs(_components.p,{children:[`Per-item shape matches the `,_jsx(_components.a,{href:`/api-reference/endpoints/expenses/create`,children:`Create Expense`}),` endpoint.\nSee `,_jsx(_components.a,{href:`/concepts/expense-lines`,children:`Expense Lines \u0026 VAT Breakdown`}),` for rounding rules.`]})]}),`\n`,_jsx(ParamField,{body:`vat_breakdown`,type:`array`,id:`param-vat-breakdown`,children:_jsxs(_components.p,{children:[`Update the per-rate VAT breakdown for multi-VAT receipts on the flat or\nmix paths. Send an array of `,_jsx(_components.code,{children:`{ rate, net, vat_amount, gross }`}),` entries\n(two or more). On the mix path, the breakdown is also used to synthesize\none persisted line per rate group. Ignored when `,_jsx(_components.code,{children:`items`}),` is supplied.`]})}),`\n`,_jsx(ParamField,{body:`currency_rate`,type:`number`,id:`param-currency-rate`,children:_jsx(_components.p,{children:`Update the exchange rate`})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(_components.p,{children:`Returns the updated expense object with all recalculated fields.`}),`\n`,_jsxs(ResponseField,{name:`expense`,type:`object`,id:`param-expense`,children:[_jsx(_components.p,{children:`The updated expense object with all details`}),_jsxs(Expandable,{title:`Updated Expense Properties`,children:[_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id-1`,children:`Expense CzUid (unchanged)`}),_jsx(ResponseField,{name:`reference`,type:`string`,id:`param-reference-1`,children:`Updated reference`}),_jsx(ResponseField,{name:`description`,type:`string`,id:`param-description-1`,children:`Updated description`}),_jsx(ResponseField,{name:`amount`,type:`object`,id:`param-amount-1`,children:`Recalculated amounts in expense currency`}),_jsx(ResponseField,{name:`account_amount`,type:`object`,id:`param-account-amount`,children:`Recalculated amounts in base currency`}),_jsx(ResponseField,{name:`vat_percent`,type:`integer`,id:`param-vat-percent`,children:`Updated VAT percentage`}),_jsx(ResponseField,{name:`with_vat`,type:`boolean`,id:`param-with-vat-1`,children:`Updated VAT inclusion flag`}),_jsx(ResponseField,{name:`date`,type:`string`,id:`param-date-1`,children:`Updated expense date`}),_jsx(ResponseField,{name:`due_date`,type:`string`,id:`param-due-date-1`,children:`Updated due date`}),_jsx(ResponseField,{name:`is_paid`,type:`boolean`,id:`param-is-paid-1`,children:`Updated payment status`}),_jsx(ResponseField,{name:`paid_date`,type:`string`,id:`param-paid-date-1`,children:`Updated payment date`}),_jsx(ResponseField,{name:`payment_type`,type:`object`,id:`param-payment-type-1`,children:`Updated payment type info`}),_jsx(ResponseField,{name:`status`,type:`string`,id:`param-status`,children:`Recalculated expense status`}),_jsx(ResponseField,{name:`supplier_id`,type:`string`,id:`param-supplier-id-1`,children:`Updated supplier CzUid`}),_jsx(ResponseField,{name:`category_id`,type:`integer`,id:`param-category-id-1`,children:`Updated category ID`}),_jsx(ResponseField,{name:`user_id`,type:`integer`,id:`param-user-id`,children:`Original user ID (unchanged)`}),_jsx(ResponseField,{name:`currency_exchange`,type:`object`,id:`param-currency-exchange`,children:`Updated currency exchange info`}),_jsx(ResponseField,{name:`created_at`,type:`string`,id:`param-created-at`,children:`Original creation time (unchanged)`}),_jsx(ResponseField,{name:`updated_at`,type:`string`,id:`param-updated-at`,children:`New modification timestamp`})]})]}),`\n`,_jsx(ResponseField,{name:`message`,type:`string`,id:`param-message`,children:_jsx(_components.p,{children:`Success message confirming the update`})}),`\n`,_jsx(Heading,{level:`2`,id:`automatic-recalculations`,children:`Automatic Recalculations`}),`\n`,_jsx(_components.p,{children:`When you update certain fields, the system automatically recalculates related values:`}),`\n`,_jsx(Heading,{level:`3`,id:`vat-recalculation`,children:`VAT Recalculation`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Amount changes`}),`: VAT amounts are recalculated based on the new amount and VAT percentage`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`VAT percentage changes`}),`: All VAT-related amounts are recalculated`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`with_vat changes`}),`: The relationship between total and VAT-exclusive amounts is recalculated`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`currency-conversion`,children:`Currency Conversion`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Currency changes`}),`: Account amounts are recalculated using current exchange rates`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Exchange rate changes`}),`: Account amounts are recalculated with the new rate`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`status-updates`,children:`Status Updates`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Payment status`}),`: The overall expense status is updated based on payment and due date information`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`validation-rules`,children:`Validation Rules`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Modifiability`}),`: The expense must not be locked by accounting rules`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Supplier`}),`: If changed, must exist and be owned by your firm`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Category`}),`: If changed, must be a valid expense category`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Amount`}),`: If changed, must be a positive number`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Dates`}),`: Must be in YYYY-MM-DD format`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Payment consistency`}),`: If marking as paid, payment_type is required`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Update Expense","openapi":"PUT /expenses/{id}","description":"Update an existing expense with new information while preserving data integrity","href":"/api-reference/endpoints/expenses/update"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,ParamField,RequestExample,ResponseExample,ResponseField,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`overview`,children:`Overview`}),`\n`,_jsx(_components.p,{children:`The Update Expense endpoint allows you to modify an existing expense record. You can update any field including supplier, category, amounts, payment status, and other details. The system will automatically recalculate VAT and currency conversions based on your changes.`}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Some expenses may not be modifiable if they are locked due to accounting periods or other business rules. The system will return an error if the expense cannot be modified.`})}),`\n`,_jsx(Heading,{level:`2`,id:`path-parameters`,children:`Path Parameters`}),`\n`,_jsx(ParamField,{path:`id`,type:`string`,required:true,id:`param-id`,children:_jsx(_components.p,{children:`The CzUid of the expense to update`})}),`\n`,_jsx(Heading,{level:`2`,id:`request-body`,children:`Request Body`}),`\n`,_jsx(_components.p,{children:`All fields are optional - only include the fields you want to update. Existing values will be preserved for any fields not included in the request.`}),`\n`,_jsx(ParamField,{body:`supplier_id`,type:`string`,id:`param-supplier-id`,children:_jsx(_components.p,{children:`Change the supplier for this expense (CzUid)`})}),`\n`,_jsx(ParamField,{body:`category_id`,type:`integer`,id:`param-category-id`,children:_jsx(_components.p,{children:`Change the expense category`})}),`\n`,_jsx(ParamField,{body:`reference`,type:`string`,id:`param-reference`,children:_jsx(_components.p,{children:`Update the reference or invoice number`})}),`\n`,_jsx(ParamField,{body:`description`,type:`string`,id:`param-description`,children:_jsx(_components.p,{children:`Update the expense description`})}),`\n`,_jsx(ParamField,{body:`amount`,type:`number`,id:`param-amount`,children:_jsx(_components.p,{children:`Update the expense amount (will trigger VAT recalculation)`})}),`\n`,_jsx(ParamField,{body:`with_vat`,type:`boolean`,id:`param-with-vat`,children:_jsx(_components.p,{children:`Change whether the amount includes VAT`})}),`\n`,_jsx(ParamField,{body:`vat`,type:`integer | string`,id:`param-vat`,children:_jsxs(_components.p,{children:[`Update the VAT percentage. Either a numeric value (`,_jsx(_components.code,{children:`0`}),`, `,_jsx(_components.code,{children:`5`}),`, `,_jsx(_components.code,{children:`9`}),`, `,_jsx(_components.code,{children:`11`}),`, `,_jsx(_components.code,{children:`19`}),`, `,_jsx(_components.code,{children:`21`}),`) or the string `,_jsx(_components.code,{children:`\"mix\"`}),` for multi-rate receipts where the caller supplies total VAT manually via `,_jsx(_components.code,{children:`amount_vat_manual`}),`. See `,_jsx(_components.a,{href:`/api-reference/endpoints/expenses/create#mix-vat-mode`,children:`Mix VAT mode on Create`}),` for the full shape.`]})}),`\n`,_jsx(ParamField,{body:`amount_vat_manual`,type:`number`,id:`param-amount-vat-manual`,children:_jsxs(_components.p,{children:[`Total VAT amount in receipt currency. Required (`,_jsx(_components.code,{children:`>= 0`}),`) when `,_jsx(_components.code,{children:`vat = \"mix\"`}),`, ignored otherwise. The server stores `,_jsx(_components.code,{children:`amount_wvat = amount`}),`, `,_jsx(_components.code,{children:`amount_vat = amount_vat_manual`}),`, `,_jsx(_components.code,{children:`amount_total = amount + amount_vat_manual`}),`.`]})}),`\n`,_jsx(ParamField,{body:`currency`,type:`string`,id:`param-currency`,children:_jsx(_components.p,{children:`Change the currency (will trigger currency conversion recalculation)`})}),`\n`,_jsx(ParamField,{body:`date`,type:`string`,format:`date`,id:`param-date`,children:_jsx(_components.p,{children:`Update the expense date (YYYY-MM-DD)`})}),`\n`,_jsx(ParamField,{body:`due_date`,type:`string`,format:`date`,id:`param-due-date`,children:_jsx(_components.p,{children:`Update the payment due date (YYYY-MM-DD)`})}),`\n`,_jsx(ParamField,{body:`is_paid`,type:`boolean`,id:`param-is-paid`,children:_jsx(_components.p,{children:`Change the payment status`})}),`\n`,_jsx(ParamField,{body:`paid_date`,type:`string`,format:`date`,id:`param-paid-date`,children:_jsx(_components.p,{children:`Update the payment date (only relevant if is_paid is true)`})}),`\n`,_jsxs(ParamField,{body:`payment_type`,type:`integer`,id:`param-payment-type`,children:[_jsx(_components.p,{children:`Update the payment type ID (1-7, only relevant if is_paid is true):`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`1`}),` - Cash`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`2`}),` - Bank transfer`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`3`}),` - Card`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`4`}),` - Check`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`5`}),` - Promissory note`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`6`}),` - Other`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`7`}),` - Compensation`]}),`\n`]})]}),`\n`,_jsx(ParamField,{body:`with_currency_exchange`,type:`boolean`,id:`param-with-currency-exchange`,children:_jsx(_components.p,{children:`Enable or disable currency exchange`})}),`\n`,_jsx(ParamField,{body:`currency_to`,type:`string`,id:`param-currency-to`,children:_jsx(_components.p,{children:`Update the target currency for exchange`})}),`\n`,_jsxs(ParamField,{body:`items`,type:`array`,id:`param-items`,children:[_jsxs(_components.p,{children:[`Replace the expense line rows. Sending `,_jsx(_components.code,{children:`items`}),` `,_jsx(_components.strong,{children:`overwrites`}),` all\nexisting lines for this expense — send the full desired set, not a diff.\nLines you omit are deleted. When `,_jsx(_components.code,{children:`items`}),` is present the server derives\n`,_jsx(_components.code,{children:`amount`}),`, `,_jsx(_components.code,{children:`vat`}),`, and `,_jsx(_components.code,{children:`vat_breakdown`}),` from the lines; the corresponding\nheader-level fields on the request body are ignored.`]}),_jsxs(_components.p,{children:[`Omit `,_jsx(_components.code,{children:`items`}),` entirely to leave the existing lines untouched and update\nonly the header fields you pass. To convert an itemized expense back to\nflat, send an empty `,_jsx(_components.code,{children:`items: []`}),` alongside new `,_jsx(_components.code,{children:`amount`}),` + `,_jsx(_components.code,{children:`vat`}),`.`]}),_jsxs(_components.p,{children:[`Per-item shape matches the `,_jsx(_components.a,{href:`/api-reference/endpoints/expenses/create`,children:`Create Expense`}),` endpoint.\nSee `,_jsx(_components.a,{href:`/concepts/expense-lines`,children:`Expense Lines \u0026 VAT Breakdown`}),` for rounding rules.`]})]}),`\n`,_jsx(ParamField,{body:`vat_breakdown`,type:`array`,id:`param-vat-breakdown`,children:_jsxs(_components.p,{children:[`Update the per-rate VAT breakdown for multi-VAT receipts on the flat or\nmix paths. Send an array of `,_jsx(_components.code,{children:`{ rate, net, vat_amount, gross }`}),` entries\n(two or more). On the mix path, the breakdown is also used to synthesize\none persisted line per rate group. Ignored when `,_jsx(_components.code,{children:`items`}),` is supplied.`]})}),`\n`,_jsx(ParamField,{body:`currency_rate`,type:`number`,id:`param-currency-rate`,children:_jsx(_components.p,{children:`Update the exchange rate`})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(_components.p,{children:`Returns the updated expense object with all recalculated fields.`}),`\n`,_jsxs(ResponseField,{name:`expense`,type:`object`,id:`param-expense`,children:[_jsx(_components.p,{children:`The updated expense object with all details`}),_jsxs(Expandable,{title:`Updated Expense Properties`,children:[_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id-1`,children:`Expense CzUid (unchanged)`}),_jsx(ResponseField,{name:`reference`,type:`string`,id:`param-reference-1`,children:`Updated reference`}),_jsx(ResponseField,{name:`description`,type:`string`,id:`param-description-1`,children:`Updated description`}),_jsx(ResponseField,{name:`amount`,type:`object`,id:`param-amount-1`,children:`Recalculated amounts in expense currency`}),_jsx(ResponseField,{name:`account_amount`,type:`object`,id:`param-account-amount`,children:`Recalculated amounts in base currency`}),_jsx(ResponseField,{name:`vat_percent`,type:`integer`,id:`param-vat-percent`,children:`Updated VAT percentage`}),_jsx(ResponseField,{name:`with_vat`,type:`boolean`,id:`param-with-vat-1`,children:`Updated VAT inclusion flag`}),_jsx(ResponseField,{name:`date`,type:`string`,id:`param-date-1`,children:`Updated expense date`}),_jsx(ResponseField,{name:`due_date`,type:`string`,id:`param-due-date-1`,children:`Updated due date`}),_jsx(ResponseField,{name:`is_paid`,type:`boolean`,id:`param-is-paid-1`,children:`Updated payment status`}),_jsx(ResponseField,{name:`paid_date`,type:`string`,id:`param-paid-date-1`,children:`Updated payment date`}),_jsx(ResponseField,{name:`payment_type`,type:`object`,id:`param-payment-type-1`,children:`Updated payment type info`}),_jsx(ResponseField,{name:`status`,type:`string`,id:`param-status`,children:`Recalculated expense status`}),_jsx(ResponseField,{name:`supplier_id`,type:`string`,id:`param-supplier-id-1`,children:`Updated supplier CzUid`}),_jsx(ResponseField,{name:`category_id`,type:`integer`,id:`param-category-id-1`,children:`Updated category ID`}),_jsx(ResponseField,{name:`user_id`,type:`integer`,id:`param-user-id`,children:`Original user ID (unchanged)`}),_jsx(ResponseField,{name:`currency_exchange`,type:`object`,id:`param-currency-exchange`,children:`Updated currency exchange info`}),_jsx(ResponseField,{name:`created_at`,type:`string`,id:`param-created-at`,children:`Original creation time (unchanged)`}),_jsx(ResponseField,{name:`updated_at`,type:`string`,id:`param-updated-at`,children:`New modification timestamp`})]})]}),`\n`,_jsx(ResponseField,{name:`message`,type:`string`,id:`param-message`,children:_jsx(_components.p,{children:`Success message confirming the update`})}),`\n`,_jsx(Heading,{level:`2`,id:`automatic-recalculations`,children:`Automatic Recalculations`}),`\n`,_jsx(_components.p,{children:`When you update certain fields, the system automatically recalculates related values:`}),`\n`,_jsx(Heading,{level:`3`,id:`vat-recalculation`,children:`VAT Recalculation`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Amount changes`}),`: VAT amounts are recalculated based on the new amount and VAT percentage`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`VAT percentage changes`}),`: All VAT-related amounts are recalculated`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`with_vat changes`}),`: The relationship between total and VAT-exclusive amounts is recalculated`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`currency-conversion`,children:`Currency Conversion`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Currency changes`}),`: Account amounts are recalculated using current exchange rates`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Exchange rate changes`}),`: Account amounts are recalculated with the new rate`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`status-updates`,children:`Status Updates`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Payment status`}),`: The overall expense status is updated based on payment and due date information`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`validation-rules`,children:`Validation Rules`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Modifiability`}),`: The expense must not be locked by accounting rules`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Supplier`}),`: If changed, must exist and be owned by your firm`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Category`}),`: If changed, must be a valid expense category`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Amount`}),`: If changed, must be a positive number`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Dates`}),`: Must be in YYYY-MM-DD format`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Payment consistency`}),`: If marking as paid, payment_type is required`]}),`\n`]}),`\n`,_jsxs(RequestExample,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`10`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`10`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` PUT`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.contazen.ro/v1/expenses/exp_abc123\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"description\": \"Updated: Office supplies and equipment\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"amount\": 285.00,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"is_paid\": true,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"paid_date\": \"2024-01-20\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"payment_type\": 2`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`JavaScript`,numberOfLines:`20`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`20`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` expenseId`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'exp_abc123'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` updateData`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` description:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Updated: Office supplies and equipment\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` amount:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 285.00`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` is_paid:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` paid_date:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"2024-01-20\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` payment_type:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 2`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`};`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`https://api.contazen.ro/v1/expenses/\"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`expenseId`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'PUT'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Bearer YOUR_API_KEY'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'application/json'`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`updateData`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` data`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Updated expense:'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`expense`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`PHP`,numberOfLines:`27`,language:`php`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`php`,children:_jsxs(_components.code,{language:`php`,numberOfLines:`27`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$expenseId`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'exp_abc123'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$updateData`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'description'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Updated: Office supplies and equipment'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'amount'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 285.00`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'is_paid'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'paid_date'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '2024-01-20'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'payment_type'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 2`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`];`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$curl`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` curl_init`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`curl_setopt_array`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$curl`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` CURLOPT_URL`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.contazen.ro/v1/expenses/{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$expenseId`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` CURLOPT_RETURNTRANSFER`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` CURLOPT_CUSTOMREQUEST`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'PUT'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` CURLOPT_POSTFIELDS`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` json_encode`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$updateData`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`),`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` CURLOPT_HTTPHEADER`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization: Bearer YOUR_API_KEY'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type: application/json'`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]);`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` curl_exec`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$curl`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$data`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` json_decode`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`curl_close`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$curl`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`echo`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Updated expense status: '`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` $data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'expense'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`][`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'status'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`];`})]}),`\n`]})})})]}),`\n`,_jsxs(ResponseExample,{children:[_jsx(CodeBlock,{filename:`200 - Success`,numberOfLines:`37`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`37`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"expense\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"exp_abc123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"reference\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"INV-2024-001\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"description\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Updated: Office supplies and equipment\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"total\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"285.00\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"without_vat\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"239.50\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"vat\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"45.50\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"currency\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"RON\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"account_amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"total\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"285.00\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"without_vat\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"239.50\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"vat\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"45.50\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"currency\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"RON\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"vat_percent\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`19`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"with_vat\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"date\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-01-15\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"due_date\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-02-15\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"paid_date\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-01-20\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"is_paid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"payment_type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Bank transfer\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"paid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"supplier_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sup_xyz789\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"category_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"user_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"created_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-01-15 10:30:00\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"updated_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-01-20 14:45:00\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Expense updated successfully\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`403 - Cannot Modify`,numberOfLines:`8`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Expense cannot be modified due to accounting restrictions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"invalid_request_error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"expense_locked\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`400 - Validation Error`,numberOfLines:`12`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`12`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Validation failed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"invalid_request_error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"validation_error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"fields\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Amount must be greater than 0\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"payment_type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Payment type is required when expense is marked as paid\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`404 - Not Found`,numberOfLines:`9`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`9`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Expense not found\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"invalid_request_error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"resource_missing\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"param\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"id\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Update Expense","openapi":"PUT /expenses/{id}","description":"Update an existing expense with new information while preserving data integrity","href":"/api-reference/endpoints/expenses/update"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Overview","slug":"overview","depth":2,"children":[]},{"title":"Path Parameters","slug":"path-parameters","depth":2,"children":[]},{"title":"Request Body","slug":"request-body","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[]},{"title":"Automatic Recalculations","slug":"automatic-recalculations","depth":2,"children":[{"title":"VAT Recalculation","slug":"vat-recalculation","depth":3,"children":[]},{"title":"Currency Conversion","slug":"currency-conversion","depth":3,"children":[]},{"title":"Status Updates","slug":"status-updates","depth":3,"children":[]}]},{"title":"Validation Rules","slug":"validation-rules","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"cURL","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"10\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -X\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> PUT\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://api.contazen.ro/v1/expenses/exp_abc123\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization: Bearer YOUR_API_KEY\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type: application/json\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -d\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"description\": \"Updated: Office supplies and equipment\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"amount\": 285.00,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"is_paid\": true,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"paid_date\": \"2024-01-20\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"payment_type\": 2\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"JavaScript","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"javascript\">\u003ccode language=\"javascript\" numberOfLines=\"20\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> expenseId\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'exp_abc123'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> updateData\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> description:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Updated: Office supplies and equipment\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> amount:\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\"> 285.00\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> is_paid:\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> true\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> paid_date:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"2024-01-20\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> payment_type:\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\"> 2\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">};\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> response\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> await\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> fetch\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">`https://api.contazen.ro/v1/expenses/\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#569CD6\">${\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">expenseId\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#569CD6\">}\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">`\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> method:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'PUT'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> headers:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Authorization'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Bearer YOUR_API_KEY'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Content-Type'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'application/json'\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> body:\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> JSON\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">stringify\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">updateData\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">});\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> data\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> await\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> response\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">json\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">();\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">console\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">log\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'Updated expense:'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">data\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">expense\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"PHP","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"php\">\u003ccode language=\"php\" numberOfLines=\"27\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$expenseId\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'exp_abc123'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$updateData\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'description'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =>\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Updated: Office supplies and equipment'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'amount'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =>\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\"> 285.00\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'is_paid'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =>\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> true\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'paid_date'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =>\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '2024-01-20'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'payment_type'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =>\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\"> 2\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">];\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$curl\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\"> curl_init\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">();\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\">curl_setopt_array\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$curl\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#D4D4D4\"> CURLOPT_URL\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =>\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://api.contazen.ro/v1/expenses/{\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$expenseId\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">}\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#D4D4D4\"> CURLOPT_RETURNTRANSFER\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =>\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> true\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#D4D4D4\"> CURLOPT_CUSTOMREQUEST\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =>\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'PUT'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#D4D4D4\"> CURLOPT_POSTFIELDS\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =>\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\"> json_encode\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$updateData\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">),\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#D4D4D4\"> CURLOPT_HTTPHEADER\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =>\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Authorization: Bearer YOUR_API_KEY'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Content-Type: application/json'\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">]);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$response\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\"> curl_exec\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$curl\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$data\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\"> json_decode\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$response\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">true\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\">curl_close\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$curl\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\">echo\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Updated expense status: '\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> .\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> $data\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">[\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'expense'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">][\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'status'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">];\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"200 - Success","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"37\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"success\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">true\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"expense\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"exp_abc123\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"reference\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"INV-2024-001\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"description\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Updated: Office supplies and equipment\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"amount\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"total\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"285.00\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"without_vat\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"239.50\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"vat\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"45.50\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"currency\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"RON\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"account_amount\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"total\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"285.00\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"without_vat\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"239.50\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"vat\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"45.50\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"currency\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"RON\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"vat_percent\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">19\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"with_vat\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">true\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"date\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2024-01-15\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"due_date\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2024-02-15\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"paid_date\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2024-01-20\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"is_paid\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">true\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"payment_type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">2\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Bank transfer\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"paid\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"supplier_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"sup_xyz789\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"category_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">1\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"user_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">1\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"created_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2024-01-15 10:30:00\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"updated_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2024-01-20 14:45:00\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Expense updated successfully\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"403 - Cannot Modify","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"8\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"success\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">false\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"error\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Expense cannot be modified due to accounting restrictions\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"invalid_request_error\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"expense_locked\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"400 - Validation Error","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"12\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"success\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">false\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"error\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Validation failed\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"invalid_request_error\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"validation_error\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"fields\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"amount\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Amount must be greater than 0\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"payment_type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Payment type is required when expense is marked as paid\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"404 - Not Found","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"9\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"success\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">false\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"error\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Expense not found\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"invalid_request_error\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"resource_missing\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"param\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"id\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"updateExpense","tags":["Expenses"],"summary":"Update an expense","description":"Update an existing expense with new information while preserving data integrity","parameters":["ca2fb638-556e-4cb1-bfb0-7d26b556e996"],"requestBody":"73d9af76-d262-43eb-be83-1b550d6fe64b","responses":{"200":"9d9799a3-6f08-41d9-9741-1e6a95148cc2","401":"d5894330-a671-4c5a-beff-beaff05cc9aa","404":"1d9e8f72-ea92-478d-9523-9cc60979f4fb"},"method":"put","type":"path","servers":["6ba42389-4596-4b9c-a6a5-63d6b53ec4cd"],"security":["9f07d007-3807-488f-876b-90e1d0feba5a"],"path":"/expenses/{id}","baseUrlOptions":["https://api.contazen.ro/v1"],"title":"Update an expense","codeSamples":[],"requiredOnlyExamples":false,"requestExamples":[{"dropdown":false,"language":"shellscript","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"shellscript","children":{"type":"code","key":null,"ref":null,"props":{"language":"shellscript","numberOfLines":"10","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#DCDCAA"},"children":"curl"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":" -X"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" PUT"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"https://api.contazen.ro/v1/expenses/exp_abc123\""}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D7BA7D"},"children":" \\"}}]}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":" -H"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"Authorization: Bearer YOUR_API_KEY\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D7BA7D"},"children":" \\"}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":" -H"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"Content-Type: application/json\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D7BA7D"},"children":" \\"}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":" -d"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" '{"}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"description\": \"Updated: Office supplies and equipment\","}}}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"amount\": 285.00,"}}}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"is_paid\": true,"}}}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"paid_date\": \"2024-01-20\","}}}},"\n",{"type":"span","key":"16","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"payment_type\": 2"}}}},"\n",{"type":"span","key":"18","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" }'"}}}},"\n"]}}}},"filename":"cURL"},{"dropdown":false,"language":"javascript","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"javascript","children":{"type":"code","key":null,"ref":null,"props":{"language":"javascript","numberOfLines":"20","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":"const"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#4FC1FF"},"children":" expenseId"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'exp_abc123'"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":";"}}]}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":"const"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#4FC1FF"},"children":" updateData"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" {"}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" description:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"Updated: Office supplies and equipment\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" amount:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#B5CEA8"},"children":" 285.00"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" is_paid:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":" true"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" paid_date:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"2024-01-20\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" payment_type:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#B5CEA8"},"children":" 2"}}]}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"};"}}}},"\n",{"type":"span","key":"16","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"18","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":"const"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#4FC1FF"},"children":" response"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":" await"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":" fetch"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"`https://api.contazen.ro/v1/expenses/"}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#569CD6"},"children":"${"}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"expenseId"}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#569CD6"},"children":"}"}},{"type":"span","key":"10","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"`"}},{"type":"span","key":"11","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", {"}}]}},"\n",{"type":"span","key":"20","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" method:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'PUT'"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"22","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" headers:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" {"}}]}},"\n",{"type":"span","key":"24","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'Authorization'"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":":"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'Bearer YOUR_API_KEY'"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"26","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'Content-Type'"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":":"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'application/json'"}}]}},"\n",{"type":"span","key":"28","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" },"}}}},"\n",{"type":"span","key":"30","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" body:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#4FC1FF"},"children":" JSON"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"stringify"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"updateData"}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":")"}}]}},"\n",{"type":"span","key":"32","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"});"}}}},"\n",{"type":"span","key":"34","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"36","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":"const"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#4FC1FF"},"children":" data"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":" await"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" response"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"json"}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"();"}}]}},"\n",{"type":"span","key":"38","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"console"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"log"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"'Updated expense:'"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"data"}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"expense"}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":");"}}]}},"\n"]}}}},"filename":"JavaScript"},{"dropdown":false,"language":"php","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"php","children":{"type":"code","key":null,"ref":null,"props":{"language":"php","numberOfLines":"27","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"$expenseId"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'exp_abc123'"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":";"}}]}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"$updateData"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" ["}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'description'"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" =>"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'Updated: Office supplies and equipment'"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'amount'"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" =>"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#B5CEA8"},"children":" 285.00"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'is_paid'"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" =>"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":" true"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'paid_date'"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" =>"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" '2024-01-20'"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'payment_type'"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" =>"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#B5CEA8"},"children":" 2"}}]}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"];"}}}},"\n",{"type":"span","key":"16","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"18","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"$curl"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#DCDCAA"},"children":" curl_init"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"();"}}]}},"\n",{"type":"span","key":"20","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"22","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#DCDCAA"},"children":"curl_setopt_array"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"$curl"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", ["}}]}},"\n",{"type":"span","key":"24","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#D4D4D4"},"children":" CURLOPT_URL"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" =>"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"https://api.contazen.ro/v1/expenses/{"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"$expenseId"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"}\""}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"26","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#D4D4D4"},"children":" CURLOPT_RETURNTRANSFER"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" =>"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":" true"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"28","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#D4D4D4"},"children":" CURLOPT_CUSTOMREQUEST"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" =>"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'PUT'"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"30","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#D4D4D4"},"children":" CURLOPT_POSTFIELDS"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" =>"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#DCDCAA"},"children":" json_encode"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"$updateData"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"),"}}]}},"\n",{"type":"span","key":"32","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#D4D4D4"},"children":" CURLOPT_HTTPHEADER"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" =>"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" ["}}]}},"\n",{"type":"span","key":"34","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'Authorization: Bearer YOUR_API_KEY'"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"36","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'Content-Type: application/json'"}}}},"\n",{"type":"span","key":"38","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" ]"}}}},"\n",{"type":"span","key":"40","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"]);"}}}},"\n",{"type":"span","key":"42","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"44","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"$response"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#DCDCAA"},"children":" curl_exec"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"$curl"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":");"}}]}},"\n",{"type":"span","key":"46","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"$data"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#DCDCAA"},"children":" json_decode"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"$response"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":"true"}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":");"}}]}},"\n",{"type":"span","key":"48","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#DCDCAA"},"children":"curl_close"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"$curl"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":");"}}]}},"\n",{"type":"span","key":"50","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"52","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#DCDCAA"},"children":"echo"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'Updated expense status: '"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ."}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" $data"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"["}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"'expense'"}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"]["}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"'status'"}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"];"}}]}},"\n"]}}}},"filename":"PHP"}],"requestExampleType":"mdx","responseExamples":[{"dropdown":false,"language":"json","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"json","children":{"type":"code","key":null,"ref":null,"props":{"language":"json","numberOfLines":"37","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"{"}}}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"success\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":"true"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"expense\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": {"}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"id\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"exp_abc123\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"reference\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"INV-2024-001\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"description\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"Updated: Office supplies and equipment\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"amount\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": {"}}]}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"total\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"285.00\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"16","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"without_vat\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"239.50\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"18","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"vat\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"45.50\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"20","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"currency\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"RON\""}}]}},"\n",{"type":"span","key":"22","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" },"}}}},"\n",{"type":"span","key":"24","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"account_amount\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": {"}}]}},"\n",{"type":"span","key":"26","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"total\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"285.00\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"28","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"without_vat\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"239.50\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"30","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"vat\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"45.50\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"32","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"currency\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"RON\""}}]}},"\n",{"type":"span","key":"34","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" },"}}}},"\n",{"type":"span","key":"36","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"vat_percent\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#B5CEA8"},"children":"19"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"38","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"with_vat\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":"true"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"40","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"date\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"2024-01-15\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"42","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"due_date\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"2024-02-15\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"44","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"paid_date\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"2024-01-20\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"46","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"is_paid\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":"true"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"48","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"payment_type\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": {"}}]}},"\n",{"type":"span","key":"50","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"id\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#B5CEA8"},"children":"2"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"52","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"name\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"Bank transfer\""}}]}},"\n",{"type":"span","key":"54","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" },"}}}},"\n",{"type":"span","key":"56","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"status\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"paid\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"58","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"supplier_id\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"sup_xyz789\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"60","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"category_id\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#B5CEA8"},"children":"1"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"62","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"user_id\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#B5CEA8"},"children":"1"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"64","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"created_at\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"2024-01-15 10:30:00\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"66","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"updated_at\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"2024-01-20 14:45:00\""}}]}},"\n",{"type":"span","key":"68","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" },"}}}},"\n",{"type":"span","key":"70","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"message\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"Expense updated successfully\""}}]}},"\n",{"type":"span","key":"72","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"}"}}}},"\n"]}}}},"filename":"200 - Success"},{"dropdown":false,"language":"json","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"json","children":{"type":"code","key":null,"ref":null,"props":{"language":"json","numberOfLines":"8","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"{"}}}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"success\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":"false"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"error\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": {"}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"message\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"Expense cannot be modified due to accounting restrictions\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"type\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"invalid_request_error\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"code\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"expense_locked\""}}]}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" }"}}}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"}"}}}},"\n"]}}}},"filename":"403 - Cannot Modify"},{"dropdown":false,"language":"json","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"json","children":{"type":"code","key":null,"ref":null,"props":{"language":"json","numberOfLines":"12","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"{"}}}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"success\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":"false"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"error\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": {"}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"message\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"Validation failed\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"type\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"invalid_request_error\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"code\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"validation_error\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"fields\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": {"}}]}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"amount\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"Amount must be greater than 0\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"16","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"payment_type\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"Payment type is required when expense is marked as paid\""}}]}},"\n",{"type":"span","key":"18","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" }"}}}},"\n",{"type":"span","key":"20","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" }"}}}},"\n",{"type":"span","key":"22","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"}"}}}},"\n"]}}}},"filename":"400 - Validation Error"},{"dropdown":false,"language":"json","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"json","children":{"type":"code","key":null,"ref":null,"props":{"language":"json","numberOfLines":"9","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"{"}}}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"success\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":"false"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"error\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": {"}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"message\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"Expense not found\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"type\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"invalid_request_error\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"code\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"resource_missing\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"param\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"id\""}}]}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" }"}}}},"\n",{"type":"span","key":"16","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"}"}}}},"\n"]}}}},"filename":"404 - Not Found"}],"responseExampleType":"mdx"},"dependencies":{"parameters":{"ca2fb638-556e-4cb1-bfb0-7d26b556e996":{"name":"id","in":"path","required":true,"schema":{"type":"string","isRequired":true,"description":"Expense CzUid","uniqueKey":"","typeLabel":"string"},"description":"Expense CzUid"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","description":"All fields optional. Sending `items` REPLACES all existing lines —\nsend the full desired set, not a diff. Omit `items` to leave lines\nuntouched. To convert an itemized expense back to flat, send\n`items: []` alongside new `amount` + `vat`.\n","properties":{"supplier_id":{"type":"string","uniqueKey":"supplier_id","typeLabel":"string"},"category_id":{"oneOf":[{"type":"integer","uniqueKey":"category_id.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"category_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"category_id","typeLabel":"integer | null"},"reference":{"type":"string","uniqueKey":"reference","typeLabel":"string"},"description":{"type":"string","uniqueKey":"description","typeLabel":"string"},"amount":{"type":"number","uniqueKey":"amount","typeLabel":"number"},"with_vat":{"type":"integer","enum":[0,1],"uniqueKey":"with_vat","typeLabel":"enum\u003cinteger>"},"vat":{"oneOf":[{"type":"integer","description":"VAT percentage. Either a numeric value or the string \"mix\" for\nmulti-rate receipts. When set to \"mix\" the request must include\n`amount_vat_manual`.\n","enum":[0,5,9,11,19,21],"uniqueKey":"vat.oneOf.0","typeLabel":"enum\u003cinteger>"},{"type":"string","description":"VAT percentage. Either a numeric value or the string \"mix\" for\nmulti-rate receipts. When set to \"mix\" the request must include\n`amount_vat_manual`.\n","enum":["mix"],"uniqueKey":"vat.oneOf.1","typeLabel":"enum\u003cstring>"}],"uniqueKey":"vat","typeLabel":"enum\u003cinteger> | enum\u003cstring>"},"amount_vat_manual":{"type":"number","minimum":0,"description":"Total VAT amount when `vat = \"mix\"`. Server stores\n`amount_wvat = amount`, `amount_vat = amount_vat_manual`,\n`amount_total = amount + amount_vat_manual`.\n","uniqueKey":"amount_vat_manual","typeLabel":"number"},"currency":{"type":"string","uniqueKey":"currency","typeLabel":"string"},"date":{"type":"string","format":"date","uniqueKey":"date","typeLabel":"string\u003cdate>"},"due_date":{"type":"string","format":"date","uniqueKey":"due_date","typeLabel":"string\u003cdate>"},"is_paid":{"type":"integer","enum":[0,1],"uniqueKey":"is_paid","typeLabel":"enum\u003cinteger>"},"paid_date":{"type":"string","format":"date","uniqueKey":"paid_date","typeLabel":"string\u003cdate>"},"payment_type":{"type":"integer","minimum":1,"maximum":7,"uniqueKey":"payment_type","typeLabel":"integer"},"with_currency_exchange":{"type":"integer","enum":[0,1],"uniqueKey":"with_currency_exchange","typeLabel":"enum\u003cinteger>"},"currency_to":{"type":"string","uniqueKey":"currency_to","typeLabel":"string"},"currency_rate":{"type":"number","uniqueKey":"currency_rate","typeLabel":"number"},"items":{"type":"array","description":"Replace all line rows. When present, the server re-derives\n`amount` / `vat` / `vat_breakdown` from the lines and ignores\nthe corresponding header fields on the body. Empty array\n(`[]`) clears the lines.\n","items":{"type":"object","required":["name","quantity","unit_price","vat_rate"],"properties":{"name":{"type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].name","typeLabel":"string"},"quantity":{"type":"number","minimum":0.0001,"isRequired":true,"uniqueKey":"\\items.items.[INDEX].quantity","typeLabel":"number"},"unit_price":{"type":"number","description":"Net unit price (excluding VAT). Negative values are accepted for discount rows (e.g. bon fiscal `DISCOUNT 4,40-A`).","isRequired":true,"uniqueKey":"\\items.items.[INDEX].unit_price","typeLabel":"number"},"vat_rate":{"type":"integer","enum":[0,5,9,11,19,21],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].vat_rate","typeLabel":"enum\u003cinteger>"},"description":{"oneOf":[{"type":"string","uniqueKey":"\\items.items.[INDEX].description.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"\\items.items.[INDEX].description.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].description","typeLabel":"string | null"},"unit_code":{"oneOf":[{"type":"string","uniqueKey":"\\items.items.[INDEX].unit_code.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"\\items.items.[INDEX].unit_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].unit_code","typeLabel":"string | null"},"category_id":{"oneOf":[{"type":"string","uniqueKey":"\\items.items.[INDEX].category_id.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"\\items.items.[INDEX].category_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].category_id","typeLabel":"string | null"},"product_id":{"oneOf":[{"type":"string","uniqueKey":"\\items.items.[INDEX].product_id.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"\\items.items.[INDEX].product_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].product_id","typeLabel":"string | null"}},"uniqueKey":"\\items.items.[INDEX]","typeLabel":"object"},"uniqueKey":"\\items","typeLabel":"object[]"},"vat_breakdown":{"type":"array","description":"Update the per-rate breakdown for flat-path multi-VAT receipts.\nIgnored when `items` is sent.\n","items":{"type":"object","required":["rate","vat_amount"],"properties":{"rate":{"type":"integer","enum":[0,5,9,11,19,21],"isRequired":true,"uniqueKey":"vat_breakdown.items.[INDEX].rate","typeLabel":"enum\u003cinteger>"},"vat_amount":{"type":"number","description":"Sum of line VATs at this rate (2dp).","isRequired":true,"uniqueKey":"vat_breakdown.items.[INDEX].vat_amount","typeLabel":"number"},"net":{"oneOf":[{"type":"number","description":"Sum of line nets at this rate (2dp).","uniqueKey":"vat_breakdown.items.[INDEX].net.oneOf.0","typeLabel":"number"},{"type":"null","description":"Sum of line nets at this rate (2dp).","uniqueKey":"vat_breakdown.items.[INDEX].net.oneOf.1","typeLabel":"null"}],"uniqueKey":"vat_breakdown.items.[INDEX].net","typeLabel":"number | null"},"gross":{"oneOf":[{"type":"number","description":"Sum of line gross values at this rate (2dp).","uniqueKey":"vat_breakdown.items.[INDEX].gross.oneOf.0","typeLabel":"number"},{"type":"null","description":"Sum of line gross values at this rate (2dp).","uniqueKey":"vat_breakdown.items.[INDEX].gross.oneOf.1","typeLabel":"null"}],"uniqueKey":"vat_breakdown.items.[INDEX].gross","typeLabel":"number | null"}},"uniqueKey":"vat_breakdown.items.[INDEX]","typeLabel":"object"},"uniqueKey":"vat_breakdown","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"supplier_id":"\u003cstring>","category_id":123,"reference":"\u003cstring>","description":"\u003cstring>","amount":123,"amount_vat_manual":1,"currency":"\u003cstring>","date":"2023-12-25","due_date":"2023-12-25","paid_date":"2023-12-25","payment_type":4,"currency_to":"\u003cstring>","currency_rate":123,"items":[{"name":"\u003cstring>","quantity":1.0001,"unit_price":123,"description":"\u003cstring>","unit_code":"\u003cstring>","category_id":"\u003cstring>","product_id":"\u003cstring>"}],"vat_breakdown":[{"vat_amount":123,"net":123,"gross":123}]}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"9d9799a3-6f08-41d9-9741-1e6a95148cc2":{"description":"Expense updated","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","uniqueKey":"success","typeLabel":"boolean"},"data":{"type":"object","required":["id","reference","amount","date","due_date","status"],"properties":{"id":{"type":"string","description":"Unique identifier (CzUid)","example":"exp_1a2b3c4d5e","isRequired":true,"uniqueKey":"data.id","typeLabel":"string"},"reference":{"type":"string","description":"Invoice/document reference number","isRequired":true,"uniqueKey":"data.reference","typeLabel":"string"},"amount":{"type":"object","properties":{"total":{"type":"number","example":500,"uniqueKey":"data.amount.total","typeLabel":"number"},"without_vat":{"type":"number","uniqueKey":"data.amount.without_vat","typeLabel":"number"},"vat":{"type":"number","uniqueKey":"data.amount.vat","typeLabel":"number"},"currency":{"type":"string","uniqueKey":"data.amount.currency","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.amount","typeLabel":"object"},"date":{"type":"string","format":"date","isRequired":true,"uniqueKey":"data.date","typeLabel":"string\u003cdate>"},"due_date":{"type":"string","format":"date","isRequired":true,"uniqueKey":"data.due_date","typeLabel":"string\u003cdate>"},"status":{"type":"string","enum":["paid","unpaid","overdue","registered"],"isRequired":true,"uniqueKey":"data.status","typeLabel":"enum\u003cstring>"},"description":{"type":"string","uniqueKey":"data.description","typeLabel":"string"},"account_amount":{"type":"object","description":"Amounts in account currency (RON)","properties":{"total":{"type":"number","uniqueKey":"data.account_amount.total","typeLabel":"number"},"without_vat":{"type":"number","uniqueKey":"data.account_amount.without_vat","typeLabel":"number"},"vat":{"type":"number","uniqueKey":"data.account_amount.vat","typeLabel":"number"},"currency":{"type":"string","default":"RON","uniqueKey":"data.account_amount.currency","typeLabel":"string"}},"uniqueKey":"data.account_amount","typeLabel":"object"},"vat_percent":{"type":"integer","enum":[0,5,9,11,19,21],"uniqueKey":"data.vat_percent","typeLabel":"enum\u003cinteger>"},"with_vat":{"type":"boolean","description":"Whether amount includes VAT","uniqueKey":"data.with_vat","typeLabel":"boolean"},"paid_date":{"oneOf":[{"type":"string","format":"date","uniqueKey":"data.paid_date.oneOf.0","typeLabel":"string\u003cdate>"},{"type":"null","format":"date","uniqueKey":"data.paid_date.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.paid_date","typeLabel":"string\u003cdate> | null"},"is_paid":{"type":"boolean","uniqueKey":"data.is_paid","typeLabel":"boolean"},"payment_type":{"oneOf":[{"type":"object","properties":{"id":{"type":"integer","uniqueKey":"data.payment_type.oneOf.0.id","typeLabel":"integer"},"name":{"type":"string","uniqueKey":"data.payment_type.oneOf.0.name","typeLabel":"string"}},"uniqueKey":"data.payment_type.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"id":{"type":"integer"},"name":{"type":"string"}},"uniqueKey":"data.payment_type.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payment_type","typeLabel":"object | null"},"supplier_id":{"type":"string","uniqueKey":"data.supplier_id","typeLabel":"string"},"supplier":{"type":"object","required":["id","name"],"properties":{"id":{"type":"string","description":"Unique identifier (CzUid)","example":"sup_1a2b3c4d5e","isRequired":true,"uniqueKey":"data.supplier.id","typeLabel":"string"},"name":{"type":"string","isRequired":true,"uniqueKey":"data.supplier.name","typeLabel":"string"},"cui":{"type":"string","description":"Tax identification number","uniqueKey":"data.supplier.cui","typeLabel":"string"},"rc":{"type":"string","description":"Company registration number","uniqueKey":"data.supplier.rc","typeLabel":"string"},"cnp":{"type":"string","description":"Personal identification number","uniqueKey":"data.supplier.cnp","typeLabel":"string"},"address":{"type":"string","uniqueKey":"data.supplier.address","typeLabel":"string"},"city":{"type":"string","uniqueKey":"data.supplier.city","typeLabel":"string"},"county":{"type":"string","uniqueKey":"data.supplier.county","typeLabel":"string"},"country":{"type":"string","uniqueKey":"data.supplier.country","typeLabel":"string"},"postal_code":{"type":"string","uniqueKey":"data.supplier.postal_code","typeLabel":"string"},"phone":{"type":"string","uniqueKey":"data.supplier.phone","typeLabel":"string"},"email":{"type":"string","uniqueKey":"data.supplier.email","typeLabel":"string"},"iban":{"type":"string","uniqueKey":"data.supplier.iban","typeLabel":"string"},"bank":{"type":"string","uniqueKey":"data.supplier.bank","typeLabel":"string"},"contact_person":{"type":"string","uniqueKey":"data.supplier.contact_person","typeLabel":"string"},"contact_phone":{"type":"string","uniqueKey":"data.supplier.contact_phone","typeLabel":"string"},"contact_email":{"type":"string","uniqueKey":"data.supplier.contact_email","typeLabel":"string"},"is_vat_payer":{"type":"boolean","uniqueKey":"data.supplier.is_vat_payer","typeLabel":"boolean"},"statistics":{"type":"object","properties":{"expense_count":{"type":"integer","uniqueKey":"data.supplier.statistics.expense_count","typeLabel":"integer"},"total_amount":{"type":"number","uniqueKey":"data.supplier.statistics.total_amount","typeLabel":"number"},"paid_amount":{"type":"number","uniqueKey":"data.supplier.statistics.paid_amount","typeLabel":"number"},"unpaid_amount":{"type":"number","uniqueKey":"data.supplier.statistics.unpaid_amount","typeLabel":"number"}},"uniqueKey":"data.supplier.statistics","typeLabel":"object"},"recent_expenses":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","uniqueKey":"data.supplier.recent_expenses.items.[INDEX].id","typeLabel":"string"},"reference":{"type":"string","uniqueKey":"data.supplier.recent_expenses.items.[INDEX].reference","typeLabel":"string"},"amount":{"type":"number","uniqueKey":"data.supplier.recent_expenses.items.[INDEX].amount","typeLabel":"number"},"currency":{"type":"string","uniqueKey":"data.supplier.recent_expenses.items.[INDEX].currency","typeLabel":"string"},"date":{"type":"string","format":"date","uniqueKey":"data.supplier.recent_expenses.items.[INDEX].date","typeLabel":"string\u003cdate>"},"is_paid":{"type":"boolean","uniqueKey":"data.supplier.recent_expenses.items.[INDEX].is_paid","typeLabel":"boolean"}},"uniqueKey":"data.supplier.recent_expenses.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.supplier.recent_expenses","typeLabel":"object[]"},"metadata":{"type":"object","description":"Lightweight expense aggregates. Returned by `GET /suppliers` only\nwhen `with_totals=1` is supplied. Cheaper than `expand=statistics`\nsince the totals come from a single inline subquery rather than\na per-row N+1 follow-up. Amounts are expressed in the firm's\naccounting currency.\n","properties":{"expense_count":{"type":"integer","description":"Number of non-deleted expenses for this supplier","uniqueKey":"data.supplier.metadata.expense_count","typeLabel":"integer"},"total_expenses":{"type":"number","description":"Sum of `account_amount_total` across all matching expenses","uniqueKey":"data.supplier.metadata.total_expenses","typeLabel":"number"},"unpaid_total":{"type":"number","description":"Sum of `account_amount_total` across unpaid matching expenses","uniqueKey":"data.supplier.metadata.unpaid_total","typeLabel":"number"}},"uniqueKey":"data.supplier.metadata","typeLabel":"object"},"created_at":{"type":"string","format":"date-time","uniqueKey":"data.supplier.created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","uniqueKey":"data.supplier.updated_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"data.supplier","typeLabel":"object"},"category_id":{"type":"integer","uniqueKey":"data.category_id","typeLabel":"integer"},"category":{"type":"object","required":["id","name","type"],"properties":{"id":{"type":"integer","isRequired":true,"uniqueKey":"data.category.id","typeLabel":"integer"},"name":{"type":"string","isRequired":true,"uniqueKey":"data.category.name","typeLabel":"string"},"type":{"type":"string","enum":["system","custom"],"isRequired":true,"uniqueKey":"data.category.type","typeLabel":"enum\u003cstring>"},"parent_id":{"oneOf":[{"type":"integer","uniqueKey":"data.category.parent_id.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"data.category.parent_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.category.parent_id","typeLabel":"integer | null"},"is_default":{"type":"boolean","description":"Whether this is a system default category","uniqueKey":"data.category.is_default","typeLabel":"boolean"},"is_visible":{"type":"boolean","uniqueKey":"data.category.is_visible","typeLabel":"boolean"},"expense_count":{"type":"integer","description":"Number of expenses in this category","uniqueKey":"data.category.expense_count","typeLabel":"integer"},"children":{"type":"array","items":{"$circularRef":"876a123c-bf5c-4063-a7cb-907fb9da8e3f"},"uniqueKey":"data.category.children","typeLabel":"array"}},"uniqueKey":"data.category","typeLabel":"object"},"user_id":{"type":"integer","uniqueKey":"data.user_id","typeLabel":"integer"},"user":{"type":"object","properties":{"id":{"type":"integer","uniqueKey":"data.user.id","typeLabel":"integer"},"name":{"type":"string","uniqueKey":"data.user.name","typeLabel":"string"}},"uniqueKey":"data.user","typeLabel":"object"},"currency_exchange":{"oneOf":[{"type":"object","properties":{"from":{"type":"string","uniqueKey":"data.currency_exchange.oneOf.0.from","typeLabel":"string"},"to":{"type":"string","uniqueKey":"data.currency_exchange.oneOf.0.to","typeLabel":"string"},"rate":{"type":"number","uniqueKey":"data.currency_exchange.oneOf.0.rate","typeLabel":"number"}},"uniqueKey":"data.currency_exchange.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"from":{"type":"string"},"to":{"type":"string"},"rate":{"type":"number"}},"uniqueKey":"data.currency_exchange.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.currency_exchange","typeLabel":"object | null"},"attachment":{"oneOf":[{"type":"object","description":"Single attachment (stored in the 'image' field)","properties":{"url":{"type":"string","uniqueKey":"data.attachment.oneOf.0.url","typeLabel":"string"},"filename":{"type":"string","uniqueKey":"data.attachment.oneOf.0.filename","typeLabel":"string"},"type":{"type":"string","enum":["pdf","image"],"uniqueKey":"data.attachment.oneOf.0.type","typeLabel":"enum\u003cstring>"},"size":{"type":"integer","uniqueKey":"data.attachment.oneOf.0.size","typeLabel":"integer"}},"uniqueKey":"data.attachment.oneOf.0","typeLabel":"object"},{"type":"null","description":"Single attachment (stored in the 'image' field)","properties":{"url":{"type":"string"},"filename":{"type":"string"},"type":{"type":"string","enum":["pdf","image"]},"size":{"type":"integer"}},"uniqueKey":"data.attachment.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.attachment","typeLabel":"object | null"},"efactura":{"oneOf":[{"type":"object","description":"Populated when the expense was imported from the ANAF e-Factura SPV\ninbox. `null` for manually created expenses.\n","properties":{"supplier_invoice_id":{"type":"string","uniqueKey":"data.efactura.oneOf.0.supplier_invoice_id","typeLabel":"string"},"invoice_number":{"oneOf":[{"type":"string","uniqueKey":"data.efactura.oneOf.0.invoice_number.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.efactura.oneOf.0.invoice_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.efactura.oneOf.0.invoice_number","typeLabel":"string | null"},"anaf_message_id":{"oneOf":[{"type":"string","uniqueKey":"data.efactura.oneOf.0.anaf_message_id.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.efactura.oneOf.0.anaf_message_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.efactura.oneOf.0.anaf_message_id","typeLabel":"string | null"},"xml_available":{"type":"boolean","uniqueKey":"data.efactura.oneOf.0.xml_available","typeLabel":"boolean"},"pdf_available":{"type":"boolean","uniqueKey":"data.efactura.oneOf.0.pdf_available","typeLabel":"boolean"},"pdf_url":{"oneOf":[{"type":"string","description":"Bearer-authenticated URL that streams the e-Factura PDF; regenerated on demand when missing","uniqueKey":"data.efactura.oneOf.0.pdf_url.oneOf.0","typeLabel":"string"},{"type":"null","description":"Bearer-authenticated URL that streams the e-Factura PDF; regenerated on demand when missing","uniqueKey":"data.efactura.oneOf.0.pdf_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.efactura.oneOf.0.pdf_url","typeLabel":"string | null"}},"uniqueKey":"data.efactura.oneOf.0","typeLabel":"object"},{"type":"null","description":"Populated when the expense was imported from the ANAF e-Factura SPV\ninbox. `null` for manually created expenses.\n","properties":{"supplier_invoice_id":{"type":"string"},"invoice_number":{"oneOf":[{"type":"string"},{"type":"null"}]},"anaf_message_id":{"oneOf":[{"type":"string"},{"type":"null"}]},"xml_available":{"type":"boolean"},"pdf_available":{"type":"boolean"},"pdf_url":{"oneOf":[{"type":"string","description":"Bearer-authenticated URL that streams the e-Factura PDF; regenerated on demand when missing"},{"type":"null","description":"Bearer-authenticated URL that streams the e-Factura PDF; regenerated on demand when missing"}]}},"uniqueKey":"data.efactura.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.efactura","typeLabel":"object | null"},"items":{"type":"array","description":"Line rows for the expense. Always at least one entry — legacy flat\nexpenses get a single synthesized line built from the header totals\nso API consumers can render a uniform table. Send `items` on\ncreate/update to persist real multi-line rows.\n","items":{"type":"object","required":["id","line_index","name","quantity","unit_price","vat_rate","amount_wvat","amount_vat","amount"],"properties":{"id":{"type":"integer","description":"Line row ID. `0` for synthesized legacy lines.","isRequired":true,"uniqueKey":"data.\\items.items.[INDEX].id","typeLabel":"integer"},"line_index":{"type":"integer","description":"Zero-based position within the expense.","isRequired":true,"uniqueKey":"data.\\items.items.[INDEX].line_index","typeLabel":"integer"},"name":{"type":"string","isRequired":true,"uniqueKey":"data.\\items.items.[INDEX].name","typeLabel":"string"},"quantity":{"type":"number","description":"Supports fractional quantities (e.g. 0.5 kg).","isRequired":true,"uniqueKey":"data.\\items.items.[INDEX].quantity","typeLabel":"number"},"unit_price":{"type":"number","description":"Net unit price (excluding VAT). Negative values represent discount rows (e.g. bon fiscal `DISCOUNT 4,40-A`); the sign is preserved through net/VAT/gross.","isRequired":true,"uniqueKey":"data.\\items.items.[INDEX].unit_price","typeLabel":"number"},"vat_rate":{"type":"integer","enum":[0,5,9,11,19,21],"isRequired":true,"uniqueKey":"data.\\items.items.[INDEX].vat_rate","typeLabel":"enum\u003cinteger>"},"amount_wvat":{"type":"number","description":"Line net, 2dp, `round(quantity * unit_price, 2)`.","isRequired":true,"uniqueKey":"data.\\items.items.[INDEX].amount_wvat","typeLabel":"number"},"amount_vat":{"type":"number","description":"Line VAT, 2dp, `round(amount_wvat * vat_rate / 100, 2)`.","isRequired":true,"uniqueKey":"data.\\items.items.[INDEX].amount_vat","typeLabel":"number"},"amount":{"type":"number","description":"Line gross, 2dp, `amount_wvat + amount_vat`.","isRequired":true,"uniqueKey":"data.\\items.items.[INDEX].amount","typeLabel":"number"},"description":{"oneOf":[{"type":"string","uniqueKey":"data.\\items.items.[INDEX].description.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.\\items.items.[INDEX].description.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.\\items.items.[INDEX].description","typeLabel":"string | null"},"unit_code":{"oneOf":[{"type":"string","description":"Optional UN/ECE unit code (e.g. H87, KGM).","uniqueKey":"data.\\items.items.[INDEX].unit_code.oneOf.0","typeLabel":"string"},{"type":"null","description":"Optional UN/ECE unit code (e.g. H87, KGM).","uniqueKey":"data.\\items.items.[INDEX].unit_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.\\items.items.[INDEX].unit_code","typeLabel":"string | null"},"category_id":{"oneOf":[{"type":"string","description":"Optional per-line category override (falls back to expense-level category).","uniqueKey":"data.\\items.items.[INDEX].category_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Optional per-line category override (falls back to expense-level category).","uniqueKey":"data.\\items.items.[INDEX].category_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.\\items.items.[INDEX].category_id","typeLabel":"string | null"},"product_id":{"oneOf":[{"type":"string","description":"Optional link to a product in the firm's catalog.","uniqueKey":"data.\\items.items.[INDEX].product_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Optional link to a product in the firm's catalog.","uniqueKey":"data.\\items.items.[INDEX].product_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.\\items.items.[INDEX].product_id","typeLabel":"string | null"}},"uniqueKey":"data.\\items.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.\\items","typeLabel":"object[]"},"vat_breakdown":{"oneOf":[{"type":"array","description":"Per-rate VAT tranches when the receipt mixes two or more rates.\n`null` for single-rate expenses.\n","items":{"type":"object","required":["rate","vat_amount"],"properties":{"rate":{"type":"integer","enum":[0,5,9,11,19,21],"isRequired":true,"uniqueKey":"data.vat_breakdown.oneOf.0.items.[INDEX].rate","typeLabel":"enum\u003cinteger>"},"vat_amount":{"type":"number","description":"Sum of line VATs at this rate (2dp).","isRequired":true,"uniqueKey":"data.vat_breakdown.oneOf.0.items.[INDEX].vat_amount","typeLabel":"number"},"net":{"oneOf":[{"type":"number","description":"Sum of line nets at this rate (2dp).","uniqueKey":"data.vat_breakdown.oneOf.0.items.[INDEX].net.oneOf.0","typeLabel":"number"},{"type":"null","description":"Sum of line nets at this rate (2dp).","uniqueKey":"data.vat_breakdown.oneOf.0.items.[INDEX].net.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.vat_breakdown.oneOf.0.items.[INDEX].net","typeLabel":"number | null"},"gross":{"oneOf":[{"type":"number","description":"Sum of line gross values at this rate (2dp).","uniqueKey":"data.vat_breakdown.oneOf.0.items.[INDEX].gross.oneOf.0","typeLabel":"number"},{"type":"null","description":"Sum of line gross values at this rate (2dp).","uniqueKey":"data.vat_breakdown.oneOf.0.items.[INDEX].gross.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.vat_breakdown.oneOf.0.items.[INDEX].gross","typeLabel":"number | null"}},"uniqueKey":"data.vat_breakdown.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.vat_breakdown.oneOf.0","typeLabel":"object[]"},{"type":"null","description":"Per-rate VAT tranches when the receipt mixes two or more rates.\n`null` for single-rate expenses.\n","items":{"type":"object","required":["rate","vat_amount"],"properties":{"rate":{"type":"integer","enum":[0,5,9,11,19,21]},"net":{"oneOf":[{"type":"number","description":"Sum of line nets at this rate (2dp)."},{"type":"null","description":"Sum of line nets at this rate (2dp)."}]},"vat_amount":{"type":"number","description":"Sum of line VATs at this rate (2dp)."},"gross":{"oneOf":[{"type":"number","description":"Sum of line gross values at this rate (2dp)."},{"type":"null","description":"Sum of line gross values at this rate (2dp)."}]}}},"uniqueKey":"data.vat_breakdown.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.vat_breakdown","typeLabel":"object[] | null"},"category_source":{"oneOf":[{"type":"string","enum":["ai","supplier","manual"],"description":"How the category was assigned. `null` on uncategorized expenses\nor legacy rows where provenance wasn't recorded.\n","uniqueKey":"data.category_source.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["ai","supplier","manual"],"description":"How the category was assigned. `null` on uncategorized expenses\nor legacy rows where provenance wasn't recorded.\n","uniqueKey":"data.category_source.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.category_source","typeLabel":"enum\u003cstring> | null"},"category_confidence":{"oneOf":[{"type":"number","minimum":0,"maximum":1,"description":"Auto-classifier confidence when category_source is 'ai'.","uniqueKey":"data.category_confidence.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"maximum":1,"description":"Auto-classifier confidence when category_source is 'ai'.","uniqueKey":"data.category_confidence.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.category_confidence","typeLabel":"number | null"},"created_at":{"type":"string","format":"date-time","uniqueKey":"data.created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","uniqueKey":"data.updated_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"data","typeLabel":"object"},"meta":{"type":"object","properties":{"version":{"type":"string","default":"v1","uniqueKey":"meta.version","typeLabel":"string"},"request_id":{"type":"string","format":"uuid","description":"Unique request identifier for debugging","uniqueKey":"meta.request_id","typeLabel":"string\u003cuuid>"},"response_time":{"type":"string","example":"23.45ms","uniqueKey":"meta.response_time","typeLabel":"string"}},"uniqueKey":"meta","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":true,"data":{"id":"exp_1a2b3c4d5e","reference":"\u003cstring>","amount":{"total":500,"without_vat":123,"vat":123,"currency":"\u003cstring>"},"date":"2023-12-25","due_date":"2023-12-25","status":"paid","description":"\u003cstring>","account_amount":{"total":123,"without_vat":123,"vat":123,"currency":"RON"},"vat_percent":0,"with_vat":true,"paid_date":"2023-12-25","is_paid":true,"payment_type":{"id":123,"name":"\u003cstring>"},"supplier_id":"\u003cstring>","supplier":{"id":"sup_1a2b3c4d5e","name":"\u003cstring>","cui":"\u003cstring>","rc":"\u003cstring>","cnp":"\u003cstring>","address":"\u003cstring>","city":"\u003cstring>","county":"\u003cstring>","country":"\u003cstring>","postal_code":"\u003cstring>","phone":"\u003cstring>","email":"\u003cstring>","iban":"\u003cstring>","bank":"\u003cstring>","contact_person":"\u003cstring>","contact_phone":"\u003cstring>","contact_email":"\u003cstring>","is_vat_payer":true,"statistics":{"expense_count":123,"total_amount":123,"paid_amount":123,"unpaid_amount":123},"recent_expenses":[{"id":"\u003cstring>","reference":"\u003cstring>","amount":123,"currency":"\u003cstring>","date":"2023-12-25","is_paid":true}],"metadata":{"expense_count":123,"total_expenses":123,"unpaid_total":123},"created_at":"2023-11-07T05:31:56Z","updated_at":"2023-11-07T05:31:56Z"},"category_id":123,"category":{"id":123,"name":"\u003cstring>","type":"system","parent_id":123,"is_default":true,"is_visible":true,"expense_count":123,"children":"\u003carray>"},"user_id":123,"user":{"id":123,"name":"\u003cstring>"},"currency_exchange":{"from":"\u003cstring>","to":"\u003cstring>","rate":123},"attachment":{"url":"\u003cstring>","filename":"\u003cstring>","type":"pdf","size":123},"efactura":{"supplier_invoice_id":"\u003cstring>","invoice_number":"\u003cstring>","anaf_message_id":"\u003cstring>","xml_available":true,"pdf_available":true,"pdf_url":"\u003cstring>"},"items":[{"id":123,"line_index":123,"name":"\u003cstring>","quantity":123,"unit_price":123,"vat_rate":0,"amount_wvat":123,"amount_vat":123,"amount":123,"description":"\u003cstring>","unit_code":"\u003cstring>","category_id":"\u003cstring>","product_id":"\u003cstring>"}],"vat_breakdown":[{"rate":0,"vat_amount":123,"net":123,"gross":123}],"category_source":"ai","category_confidence":0.5,"created_at":"2023-11-07T05:31:56Z","updated_at":"2023-11-07T05:31:56Z"},"meta":{"version":"v1","request_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","response_time":"23.45ms"}}}},"exampleType":"generated"}},"exampleType":"generated"},"d5894330-a671-4c5a-beff-beaff05cc9aa":{"description":"API key is missing or invalid","content":{"application/json":{"schema":{"type":"object","required":["success","error"],"properties":{"success":{"type":"boolean","default":false,"isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"error":{"type":"object","required":["message","type","code"],"properties":{"message":{"type":"string","description":"Human-readable error message","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","enum":["api_error","authentication_error","invalid_request_error","rate_limit_error","permission_error","validation_error"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"Machine-readable error code","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"param":{"type":"string","description":"The parameter that caused the error","uniqueKey":"error.param","typeLabel":"string"},"doc_url":{"type":"string","format":"uri","description":"URL to relevant documentation","uniqueKey":"error.doc_url","typeLabel":"string\u003curi>"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"meta":{"type":"object","properties":{"version":{"type":"string","default":"v1","uniqueKey":"meta.version","typeLabel":"string"},"request_id":{"type":"string","format":"uuid","description":"Unique request identifier for debugging","uniqueKey":"meta.request_id","typeLabel":"string\u003cuuid>"},"response_time":{"type":"string","example":"23.45ms","uniqueKey":"meta.response_time","typeLabel":"string"}},"uniqueKey":"meta","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"error":{"message":"\u003cstring>","type":"api_error","code":"\u003cstring>","param":"\u003cstring>","doc_url":"\u003cstring>"},"meta":{"version":"v1","request_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","response_time":"23.45ms"}}}},"exampleType":"generated"}},"exampleType":"generated"},"1d9e8f72-ea92-478d-9523-9cc60979f4fb":{"description":"The specified resource was not found","content":{"application/json":{"schema":{"type":"object","required":["success","error"],"properties":{"success":{"type":"boolean","default":false,"isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"error":{"type":"object","required":["message","type","code"],"properties":{"message":{"type":"string","description":"Human-readable error message","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","enum":["api_error","authentication_error","invalid_request_error","rate_limit_error","permission_error","validation_error"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"Machine-readable error code","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"param":{"type":"string","description":"The parameter that caused the error","uniqueKey":"error.param","typeLabel":"string"},"doc_url":{"type":"string","format":"uri","description":"URL to relevant documentation","uniqueKey":"error.doc_url","typeLabel":"string\u003curi>"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"meta":{"type":"object","properties":{"version":{"type":"string","default":"v1","uniqueKey":"meta.version","typeLabel":"string"},"request_id":{"type":"string","format":"uuid","description":"Unique request identifier for debugging","uniqueKey":"meta.request_id","typeLabel":"string\u003cuuid>"},"response_time":{"type":"string","example":"23.45ms","uniqueKey":"meta.response_time","typeLabel":"string"}},"uniqueKey":"meta","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"error":{"message":"\u003cstring>","type":"api_error","code":"\u003cstring>","param":"\u003cstring>","doc_url":"\u003cstring>"},"meta":{"version":"v1","request_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","response_time":"23.45ms"}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"9f07d007-3807-488f-876b-90e1d0feba5a":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Use your API key (sk_live_xxx or sk_test_xxx)","scopes":[]}}},"servers":{"6ba42389-4596-4b9c-a6a5-63d6b53ec4cd":{"url":"https://api.contazen.ro/v1","description":"Production API server"}},"schemas":{"876a123c-bf5c-4063-a7cb-907fb9da8e3f":{"type":"object","required":["id","name","type"],"properties":{"id":{"type":"integer","isRequired":true},"name":{"type":"string","isRequired":true},"type":{"type":"string","enum":["system","custom"],"isRequired":true},"parent_id":{"oneOf":[{"type":"integer"},{"type":"null"}]},"is_default":{"type":"boolean","description":"Whether this is a system default category"},"is_visible":{"type":"boolean"},"expense_count":{"type":"integer","description":"Number of expenses in this category"},"children":{"type":"array","items":{"$circularRef":"876a123c-bf5c-4063-a7cb-907fb9da8e3f"}}}}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Use your API key (sk_live_xxx or sk_test_xxx)","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Use your API key (sk_live_xxx or sk_test_xxx)","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"contazen-api.openapi.yaml"},"subdomain":"contazen","siteName":"Contazen API Documentation","title":"Contazen API Documentation","navMaps":{"firstHrefInVersion":{"v1":{"href":"/api-reference/endpoints/expenses/update","matchLevel":0}},"firstHrefInLanguage":{}},"lastModified":"2026-04-26T16:36:34.859Z","originalFileLocation":"api-reference/endpoints/expenses/update.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Update an existing expense with new information while preserving data integrity\">\u003cmeta data-mint-head name=\"application-name\" content=\"Contazen API Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/contazen/D430dvg1ZCSsYClS/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/contazen/D430dvg1ZCSsYClS/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/contazen/D430dvg1ZCSsYClS/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/contazen/D430dvg1ZCSsYClS/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/contazen/D430dvg1ZCSsYClS/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/contazen/D430dvg1ZCSsYClS/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/contazen/D430dvg1ZCSsYClS/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/contazen/D430dvg1ZCSsYClS/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/contazen/D430dvg1ZCSsYClS/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Contazen API Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Build powerful integrations with the Contazen invoicing platform\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Contazen API Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.contazen.ro/api-reference/endpoints/expenses/update\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://contazen.ro/og-image.png\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Contazen API Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Build powerful integrations with the Contazen invoicing platform\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://contazen.ro/og-image.png\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/contazen/D430dvg1ZCSsYClS/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Contazen API Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0f9d59\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.contazen.ro/api-reference/endpoints/expenses/update\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoints/expenses/update.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.contazen.ro/#organization\",\"name\":\"Contazen API Documentation\",\"url\":\"https://docs.contazen.ro\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://docs.contazen.ro/logo/light.svg\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.contazen.ro#website\",\"name\":\"Contazen API Documentation\",\"url\":\"https://docs.contazen.ro\",\"publisher\":{\"@id\":\"https://docs.contazen.ro/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.contazen.ro/api-reference/endpoints/expenses/update#webpage\",\"url\":\"https://docs.contazen.ro/api-reference/endpoints/expenses/update\",\"name\":\"Update Expense\",\"description\":\"Update an existing expense with new information while preserving data integrity\",\"dateModified\":\"2026-04-26T16:36:34.859Z\",\"isPartOf\":{\"@id\":\"https://docs.contazen.ro#website\"},\"breadcrumb\":{\"@id\":\"https://docs.contazen.ro/api-reference/endpoints/expenses/update#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.contazen.ro/api-reference/endpoints/expenses/update#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API Reference\",\"item\":\"https://docs.contazen.ro/api-reference/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Expenses\",\"item\":\"https://docs.contazen.ro/api-reference/endpoints/expenses/list\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Update Expense\",\"item\":\"https://docs.contazen.ro/api-reference/endpoints/expenses/update\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.contazen.ro/api-reference/endpoints/expenses/update#apireference\",\"headline\":\"Update Expense\",\"name\":\"Update Expense\",\"description\":\"Update an existing expense with new information while preserving data integrity\",\"url\":\"https://docs.contazen.ro/api-reference/endpoints/expenses/update\",\"mainEntityOfPage\":{\"@id\":\"https://docs.contazen.ro/api-reference/endpoints/expenses/update#webpage\"},\"image\":\"https://contazen.ro/og-image.png\",\"dateModified\":\"2026-04-26T16:36:34.859Z\",\"publisher\":{\"@id\":\"https://docs.contazen.ro/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.contazen.ro#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Contazen API Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Contazen API Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/endpoints/expenses/update.md","siteName":"Contazen API Documentation","nav":{"global":null,"versions":[{"version":"v1","tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/introduction"},{"title":"Testing Your Integration","href":"/api-reference/testing"},{"group":"Clients","pages":[{"title":"List Clients","openapi":"GET /clients","href":"/api-reference/endpoints/clients/list"},{"title":"Create Client","openapi":"POST /clients","href":"/api-reference/endpoints/clients/create"},{"title":"Retrieve Client","openapi":"GET /clients/{id}","href":"/api-reference/endpoints/clients/retrieve"},{"title":"Update Client","openapi":"PUT /clients/{id}","href":"/api-reference/endpoints/clients/update"},{"title":"Delete Client","openapi":"DELETE /clients/{id}","href":"/api-reference/endpoints/clients/delete"}]},{"group":"Invoices","pages":[{"title":"List Invoices","openapi":"GET /invoices","href":"/api-reference/endpoints/invoices/list"},{"title":"Create Invoice","openapi":"POST /invoices","href":"/api-reference/endpoints/invoices/create"},{"title":"Retrieve Invoice","openapi":"GET /invoices/{id}","href":"/api-reference/endpoints/invoices/retrieve"},{"title":"Update Invoice","openapi":"PUT /invoices/{id}","href":"/api-reference/endpoints/invoices/update"},{"title":"Send Invoice","openapi":"POST /invoices/{id}/send","href":"/api-reference/endpoints/invoices/send"},{"title":"Send to SPV","openapi":"POST /invoices/{id}/send-to-spv","href":"/api-reference/endpoints/invoices/send-to-spv"},{"title":"Mark Invoice Paid","openapi":"POST /invoices/{id}/pay","href":"/api-reference/endpoints/invoices/pay"},{"title":"Download Invoice PDF","openapi":"GET /invoices/{id}/pdf","href":"/api-reference/endpoints/invoices/download-pdf"},{"title":"Void Invoice","openapi":"POST /invoices/{id}/void","href":"/api-reference/endpoints/invoices/void"},{"title":"Unvoid Invoice","openapi":"POST /invoices/{id}/unvoid","href":"/api-reference/endpoints/invoices/unvoid"},{"title":"Storno Invoice","openapi":"POST /invoices/{id}/storno","href":"/api-reference/endpoints/invoices/storno"},{"title":"Delete Invoice","openapi":"DELETE /invoices/{id}","href":"/api-reference/endpoints/invoices/delete"},{"title":"Get Invoice Totals","api":"GET /invoices/totals","href":"/api-reference/endpoints/invoices/totals"},{"title":"Get Invoice Statistics","api":"GET /invoices/stats","href":"/api-reference/endpoints/invoices/stats"},{"title":"Get Invoice History","openapi":"GET /invoices/{id}/history","href":"/api-reference/endpoints/invoices/history"},{"title":"Estimate Payment Date","openapi":"GET /invoices/{id}/payment-estimate","href":"/api-reference/endpoints/invoices/payment-estimate"}]},{"group":"Invoice Series","pages":[{"title":"List Invoice Series","openapi":"GET /invoice-series","href":"/api-reference/endpoints/invoice-series/list"},{"title":"Create an Invoice Series","openapi":"POST /invoice-series","href":"/api-reference/endpoints/invoice-series/create"},{"title":"Update an Invoice Series","openapi":"PUT /invoice-series/{id}","href":"/api-reference/endpoints/invoice-series/update"},{"title":"Set Series as Primary","openapi":"POST /invoice-series/{id}/set-primary","href":"/api-reference/endpoints/invoice-series/set-primary"},{"title":"Lock Series to Mobile Device","openapi":"POST /invoice-series/{id}/lock","href":"/api-reference/endpoints/invoice-series/lock"},{"title":"Unlock Series","openapi":"POST /invoice-series/{id}/unlock","href":"/api-reference/endpoints/invoice-series/unlock"},{"title":"Reserve Numbers","openapi":"POST /invoice-series/{id}/reserve-numbers","href":"/api-reference/endpoints/invoice-series/reserve-numbers"},{"title":"List Reservations","openapi":"GET /invoice-series/{id}/reservations","href":"/api-reference/endpoints/invoice-series/list-reservations"},{"title":"Release Reservation","openapi":"POST /invoice-series/reservations/{token}/release","href":"/api-reference/endpoints/invoice-series/release-reservation"}]},{"group":"Payments","pages":[{"title":"List Payments","openapi":"GET /payments","href":"/api-reference/endpoints/payments/list"},{"title":"Retrieve a Payment","openapi":"GET /payments/{id}","href":"/api-reference/endpoints/payments/retrieve"}]},{"group":"Receipts","pages":[{"title":"List Receipts","openapi":"GET /receipts","href":"/api-reference/endpoints/receipts/list"},{"title":"Create a Receipt","openapi":"POST /receipts","href":"/api-reference/endpoints/receipts/create"},{"title":"Retrieve a Receipt","openapi":"GET /receipts/{id}","href":"/api-reference/endpoints/receipts/retrieve"},{"title":"Update a Receipt","openapi":"PUT /receipts/{id}","href":"/api-reference/endpoints/receipts/update"},{"title":"Delete a Receipt","openapi":"DELETE /receipts/{id}","href":"/api-reference/endpoints/receipts/delete"}]},{"group":"Bank Accounts","pages":[{"title":"List Bank Accounts","openapi":"GET /bank-accounts","href":"/api-reference/endpoints/bank-accounts/list"},{"title":"Create a Bank Account","openapi":"POST /bank-accounts","href":"/api-reference/endpoints/bank-accounts/create"},{"title":"Update a Bank Account","openapi":"PUT /bank-accounts/{id}","href":"/api-reference/endpoints/bank-accounts/update"},{"title":"Delete a Bank Account","openapi":"DELETE /bank-accounts/{id}","href":"/api-reference/endpoints/bank-accounts/delete"}]},{"group":"Products","pages":[{"title":"List Products","openapi":"GET /products","href":"/api-reference/endpoints/products/list"},{"title":"Create Product","openapi":"POST /products","href":"/api-reference/endpoints/products/create"},{"title":"Retrieve Product","openapi":"GET /products/{id}","href":"/api-reference/endpoints/products/retrieve"},{"title":"Update Product","openapi":"PUT /products/{id}","href":"/api-reference/endpoints/products/update"},{"title":"Delete Product","openapi":"DELETE /products/{id}","href":"/api-reference/endpoints/products/delete"}]},{"group":"Expenses","pages":[{"title":"List Expenses","openapi":"GET /expenses","href":"/api-reference/endpoints/expenses/list"},{"title":"Create Expense","openapi":"POST /expenses","href":"/api-reference/endpoints/expenses/create"},{"title":"Retrieve Expense","openapi":"GET /expenses/{id}","description":"Get detailed information about a specific expense by its CzUid","href":"/api-reference/endpoints/expenses/retrieve"},{"title":"Update Expense","openapi":"PUT /expenses/{id}","href":"/api-reference/endpoints/expenses/update"},{"title":"Delete Expense","openapi":"DELETE /expenses/{id}","description":"Delete an expense record with proper validation and soft delete functionality","href":"/api-reference/endpoints/expenses/delete"},{"title":"Mark Expense as Paid","openapi":"POST /expenses/{id}/pay","href":"/api-reference/endpoints/expenses/pay"},{"title":"Export Expenses","openapi":"GET /expenses/export","href":"/api-reference/endpoints/expenses/export"},{"title":"Upload Attachment","openapi":"POST /expenses/{id}/attachments","href":"/api-reference/endpoints/expenses/attachment"},{"title":"Download e-Factura PDF","openapi":"GET /expenses/{id}/efactura-pdf","href":"/api-reference/endpoints/expenses/efactura-pdf"},{"title":"Scan receipt (OCR)","openapi":"POST /expenses/ocr-extract","href":"/api-reference/endpoints/expenses/ocr-extract"},{"title":"Check for duplicate expense","openapi":"POST /expenses/check-duplicate","href":"/api-reference/endpoints/expenses/check-duplicate"},{"title":"AI-categorize expenses","openapi":"POST /expenses/ai-categorize-batch","href":"/api-reference/endpoints/expenses/ai-categorize-batch"}]},{"group":"Expense Categories","pages":[{"title":"List Expense Categories","openapi":"GET /expense-categories","href":"/api-reference/endpoints/expense-categories/list"},{"title":"Create Expense Category","openapi":"POST /expense-categories","href":"/api-reference/endpoints/expense-categories/create"},{"title":"Retrieve Expense Category","openapi":"GET /expense-categories/{id}","href":"/api-reference/endpoints/expense-categories/retrieve"},{"title":"Update Expense Category","openapi":"PUT /expense-categories/{id}","href":"/api-reference/endpoints/expense-categories/update"},{"title":"Delete Expense Category","openapi":"DELETE /expense-categories/{id}","href":"/api-reference/endpoints/expense-categories/delete"}]},{"group":"Suppliers","pages":[{"title":"List Suppliers","openapi":"GET /suppliers","href":"/api-reference/endpoints/suppliers/list"},{"title":"Create Supplier","openapi":"POST /suppliers","href":"/api-reference/endpoints/suppliers/create"},{"title":"Retrieve Supplier","openapi":"GET /suppliers/{id}","href":"/api-reference/endpoints/suppliers/retrieve"},{"title":"Update Supplier","openapi":"PUT /suppliers/{id}","href":"/api-reference/endpoints/suppliers/update"},{"title":"Delete Supplier","openapi":"DELETE /suppliers/{id}","href":"/api-reference/endpoints/suppliers/delete"}]},{"group":"Supplier Bills","pages":[{"title":"List Supplier Bills","openapi":"GET /supplier-bills","href":"/api-reference/endpoints/supplier-bills/list"},{"title":"Sync from SPV","openapi":"POST /supplier-bills/sync","href":"/api-reference/endpoints/supplier-bills/sync"},{"title":"Retrieve Supplier Bill","openapi":"GET /supplier-bills/{id}","href":"/api-reference/endpoints/supplier-bills/retrieve"},{"title":"Mark Bill as Paid","openapi":"POST /supplier-bills/{id}/mark-paid","href":"/api-reference/endpoints/supplier-bills/mark-paid"},{"title":"Mark Bill as Unpaid","openapi":"POST /supplier-bills/{id}/mark-unpaid","href":"/api-reference/endpoints/supplier-bills/mark-unpaid"},{"title":"Download e-Factura PDF","openapi":"GET /supplier-bills/{id}/efactura-pdf","href":"/api-reference/endpoints/supplier-bills/efactura-pdf"},{"title":"Delete Supplier Bill","openapi":"DELETE /supplier-bills/{id}","href":"/api-reference/endpoints/supplier-bills/delete"}]},{"group":"Company Lookup","pages":[{"title":"Company Lookup","openapi":"GET /company-lookup","href":"/api-reference/endpoints/company-lookup/lookup"}]},{"group":"E-Factura","pages":[{"title":"Get E-Factura Status","openapi":"GET /efactura/status","href":"/api-reference/endpoints/efactura/status"}]},{"group":"VAT Rates","pages":[{"title":"List VAT Rates","openapi":"GET /vat-rates","href":"/api-reference/endpoints/vat-rates/list"},{"title":"Create VAT Rate","openapi":"POST /vat-rates","href":"/api-reference/endpoints/vat-rates/create"},{"title":"Update VAT Rate","openapi":"PUT /vat-rates/{id}","href":"/api-reference/endpoints/vat-rates/update"},{"title":"Delete VAT Rate","openapi":"DELETE /vat-rates/{id}","href":"/api-reference/endpoints/vat-rates/delete"}]},{"group":"Currencies","pages":[{"title":"List Currencies","openapi":"GET /currencies","href":"/api-reference/endpoints/currencies/list"},{"title":"Enable Currency","openapi":"POST /currencies","href":"/api-reference/endpoints/currencies/create"},{"title":"Disable Currency","openapi":"DELETE /currencies/{id}","href":"/api-reference/endpoints/currencies/delete"}]},{"group":"Languages","pages":[{"title":"List Languages","openapi":"GET /languages","href":"/api-reference/endpoints/languages/list"},{"title":"Enable Language","openapi":"POST /languages","href":"/api-reference/endpoints/languages/create"},{"title":"Disable Language","openapi":"DELETE /languages/{id}","href":"/api-reference/endpoints/languages/delete"}]},{"group":"Settings","pages":[{"title":"Get Settings","openapi":"GET /settings","href":"/api-reference/endpoints/settings/get"}]},{"group":"Conta","pages":[{"title":"Conta overview","href":"/api-reference/endpoints/conta/overview"},{"title":"Retrieve fiscal profile","openapi":"GET /accounting/profile","href":"/api-reference/endpoints/conta/get-profile"},{"title":"Sync fiscal profile","openapi":"POST /accounting/profile/sync","href":"/api-reference/endpoints/conta/sync-profile"},{"title":"List balance sheets","openapi":"GET /accounting/balance-sheets","href":"/api-reference/endpoints/conta/list-balance-sheets"},{"title":"Retrieve balance sheet","openapi":"GET /accounting/balance-sheets/{year}","href":"/api-reference/endpoints/conta/get-balance-sheet"},{"title":"Sync balance sheets","openapi":"POST /accounting/balance-sheets/sync","href":"/api-reference/endpoints/conta/sync-balance-sheets"}]}]}]}]}]},"basePath":"","title":"Contazen API Documentation","buildId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","deploymentId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-DdEMm2kG.js","utils-BMo572L7.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-C-4m9KAx.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-DPLK2Oq9.js","snippetPresets-BKjfJMC9.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-DTsgtCEj.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-C8vmhyQM.js","shallow-r9w8LQGS.js","getApiPlaygroundDisplay-DjPI64HQ.js","CodeSnippet-C8Bvhl16.js","CodeSnippets-BtWUwcMy.js","Page-BIYvYBgk.js","getPastedJson-Dcm_3Pgl.js","icon-BXwrTpjc.js","MethodPill-CcjfVmmy.js","DuplicateIcon-BuKIbXAQ.js","createIcon-DaL9yXsO.js","DynamicMarkdown-Co5nikxh.js","SectionHeading-P4UNTsMZ.js","axios-vUo_bRtp.js","Markdown-CEfymfIH.js","clsx-Dq9TQuNi.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-D2J8knkn.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-BgZ2ThuU.js"]}