Update a credit noteAsk AIpatch https://api.piriod.com/purchase/credit-notes/{id}/Updates a Credit Notes object. Only credit notes with status draft can be updated.Path ParamsidstringrequiredThe unique ID of the Credit Note you want to updateBody ParamsdatedateCredit note issuance date (YYYY-MM-DD format).discountfloatDefaults to 0Total discount applied to the credit note.discount_schemestringenumDefaults to %Indicates if the discount is applied as a percentage % or a fixed amount $.%$Allowed:%$internal_notestringOptional internal note for reference (not shown on document).linesobjectList of line items being credited. Follows the same structure as purchase lines.lines objectmetadatajsonA freely usable key/value object. Useful for storing custom information.notestringPublic note to display reason on the credit note.numberint32Credit note number. If omitted, it will be auto-generated.purchasestringID of the original purchase being credited.tax_settingsobjectFields used to define tax aspects specific to the different electronic invoicing regulations of each country.tax_settings objecttest_modestringDetermines whether the Credit Note is for test use or notResponses 200200 400400Updated 8 months ago