Copy PageCreate invoicepost https://api.wafeq.com/v1/invoices/Endpoint for creating a new invoice.Query ParamsexpandstringComma-separated related objects to return in full instead of as IDs. Accepted values: attachments, branch, contact, contact.persons, journal, line_items, line_items.account, line_items.item, line_items.tax_rate, line_items.cost_center, project, warehouse, discount_cost_center. Nested relations are joined with a dot. Pass journal to replace the journal ID with its object (ID, date, currency, reference, notes and timestamps). Documents without a journal still return null. Journal line items are retrieved separately with GET /v1/journal-line-items/?journal={journal_id}.Body Paramsapplication/jsonapplication/x-www-form-urlencodedmultipart/form-dataAn invoice issued to a customer.attachmentsarray of stringsAny files or documents attached to this invoice.attachmentsADD stringbranchstring | nullThe branch associated with this invoice.contactstringrequiredThe contact (customer) associated with this invoice.credit_notesarray of objectsThe credit notes applied to this invoice. Sending this field replaces the whole set, and entries left out are unapplied. To apply, change or remove a single credit note, use /v1/invoice-credit-notes/.credit_notesADD objectcurrencystringenumrequiredThe currency code for the invoice. View the enum referenceAEDSARUSDEURCADAFNALLAMDARSAUDAZNBAMBDTBGNBHDBIFBNDBOBBRLBWPBYNBZDCDFCHFCLPCNYCOPCRCCVECZKDJFDKKDOPDZDEGPERNETBGBPGELGHSGNFGTQHKDHNLHRKHUFIDRILSINRIQDIRRISKJMDJODJPYKESKHRKMFKRWKWDKZTLBPLKRLYDMADMDLMGAMKDMMKMOPMURMXNMYRMZNNADNGNNIONOKNPRNZDOMRPABPENPHPPKRPLNPYGQARRONRSDRUBRWFSDGSEKSGDSOSSYPTHBTNDTOPTRYTTDTWDTZSUAHUGXUYUUZSVESVNDXAFXOFYERZARZMWShow 115 enum valuescustom_fieldsobjectA mapping of custom field IDs to their values.custom_fields objectdiscount_accountstringThe account to which the discount will be booked, if applicable.discount_amountdouble≥ 0The discount amount to apply to the invoice.discount_cost_centerstringThe cost center associated with the discount, if applicable.discount_tax_exemption_reasonstring | nullThe tax exemption reason of the discount, when its tax rate takes one: a code that rate offers, or, on the KSA out-of-scope rate, the reason written out. null or "" clears the reason. Left out, a new discount, or one moved to another tax rate, takes the default of its tax rate, and any other discount keeps its reason.discount_tax_ratestringThe tax rate applied to the discount, if applicable: the ID of the tax rate (tax_…). List the tax rates of the organization with GET /v1/tax-rates/.exchange_ratedouble | nullThe exchange rate to the organization base currency at the time of the document.external_idstringlength ≤ 255External identifier for the invoice.invoice_datedaterequiredThe date when the invoice was issued.invoice_due_datedaterequiredThe date by which the invoice should be paid.invoice_numberstringrequiredThe unique number assigned to this invoice.is_summarybooleanWhether this invoice summarizes transactions over a period.truefalselanguagestringenumDefaults to enThe language in which the invoice is written. View the enum referenceenarAllowed:enarline_itemsarray of objectsrequiredThe individual line items included in this invoice.line_items*ADD objectnotesstringAdditional notes or comments about the invoice.place_of_supplystringThe place of supply for UAE organizations. Must be one of: ABU_DHABI, AJMAN, DUBAI, FUJAIRAH, RAS_AL_KHAIMAH, SHARJAH, UMM_AL_QUWAIN or OUTSIDE_UAE.projectstring | nullThe project associated with this invoice, if applicable.purchase_orderstringAn optional purchase order number or code for this invoice.referencestringAn optional reference number or code for this invoice.statusstringenumDefaults to DRAFTThe current status of the invoice (draft, sent, or finalized). View the enum referenceDRAFTSENTFINALIZEDAllowed:DRAFTSENTFINALIZEDsummary_period_enddate | nullThe end date of the period covered by this summary invoice. Required when is_summary is true.summary_period_startdate | nullThe start date of the period covered by this summary invoice. Required when is_summary is true.tax_amount_typestringenumSpecifies whether the tax amount is inclusive or exclusive. View the enum referenceTAX_INCLUSIVETAX_EXCLUSIVEAllowed:TAX_INCLUSIVETAX_EXCLUSIVEwarehousestring | nullThe warehouse associated with this invoice, if applicable.HeadersX-Wafeq-Idempotency-KeystringClient-provided UUID to uniquely identify a requestcontent-typestringenumDefaults to application/jsonGenerated from available request content typesapplication/jsonapplication/x-www-form-urlencodedmultipart/form-dataAllowed:application/jsonapplication/x-www-form-urlencodedmultipart/form-dataResponse 201Updated 25 days ago List invoicesDelete invoiceDid this page help you?YesNo