Copy PageUpdate purchase orderput https://api.wafeq.com/v1/purchase-orders/{id}/Endpoint for updating an existing purchase order.Path ParamsidstringrequiredBody Paramsapplication/jsonapplication/x-www-form-urlencodedmultipart/form-dataA purchase order placed with a supplier.attachmentsarray of stringsList of attachments linked to this purchase order.attachmentsADD stringbranchstring | nullThe branch associated with this purchase order, if applicable.contactstringThe contact (vendor) associated with this purchase order.currencystringenumrequiredThe currency in which the purchase order is issued. View the enum referenceAEDSARUSDEURCADAFNALLAMDARSAUDAZNBAMBDTBGNBHDBIFBNDBOBBRLBWPBYNBZDCDFCHFCLPCNYCOPCRCCVECZKDJFDKKDOPDZDEGPERNETBGBPGELGHSGNFGTQHKDHNLHRKHUFIDRILSINRIQDIRRISKJMDJODJPYKESKHRKMFKRWKWDKZTLBPLKRLYDMADMDLMGAMKDMMKMOPMURMXNMYRMZNNADNGNNIONOKNPRNZDOMRPABPENPHPPKRPLNPYGQARRONRSDRUBRWFSDGSEKSGDSOSSYPTHBTNDTOPTRYTTDTWDTZSUAHUGXUYUUZSVESVNDXAFXOFYERZARZMWShow 115 enum valuescustom_fieldsobjectA mapping of custom field IDs to their values.custom_fields objectexchange_ratedouble | nullThe exchange rate to the organization base currency at the time of the document.external_idstringlength ≤ 255External identifier for the purchase order.languagestringenumThe language of the document. View the enum referenceenarAllowed:enarline_itemsarray of objectsrequiredThe individual line items that make up the purchase order.line_items*ADD objectnotesstringAny additional notes or comments related to the purchase order.projectstring | nullThe project associated with this purchase order, if any.purchase_order_datedate | nullThe date when the purchase order was issued.purchase_order_numberstringThe unique identifier or number assigned to this purchase order.referencestringAny additional reference information for this purchase order.statusstringenumDefaults to DRAFTThe current status of the purchase order (Draft, Sent, Billed, or Voided). View the enum referenceDRAFTSENTBILLEDVOIDEDAllowed:DRAFTSENTBILLEDVOIDEDtax_amount_typestringenumSpecifies whether the tax amount is inclusive or exclusive of the line item amounts. View the enum referenceTAX_INCLUSIVETAX_EXCLUSIVEAllowed:TAX_INCLUSIVETAX_EXCLUSIVEtermsstringThe terms and conditions of the purchase order.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 200Updated 5 months ago Partial update purchase orderConvert purchase order to billDid this page help you?YesNo