Copy PageReplace document metadatapatchhttps://api.wafeq.com/ae/v1/invoices/{invoice_id}Update metadata for an invoice, credit note or self-billed document by its document ID. Does not resubmit or change fiscal/transport data.Path Paramsinvoice_idstringrequiredBody ParamsmetadataobjectrequiredReplace all metadata. Send to remove every key. Omitted keys are removed. Every value must be a string; empty strings are allowed.Metadata objectHeadersauthorizationstring | nullx-ae-taxpayer-idstringrequiredTaxpayer ID (txpay_…). Required with an organization API key (pk_…) for this taxpayer-specific operation, even for one taxpayer. Not a TIN. Optional with a taxpayer access token, which already names its taxpayer.x-ae-grant-idstring | nullGrant ID (tgr_…) to act through, with an organization API key. The request then has exactly that grant's scopes and fails once the grant is revoked. Without it, the key acts through all of the organization's active grants on the taxpayer.Response200Successful Response422Validation ErrorUpdated 12 days agoGet Invoice EndpointList a document's report filings