Create a credit noteAsk AIpost https://api.piriod.com/purchases/credit-notes/Creates a credit note for a previously issued purchase.Body ParamsdatestringrequiredCredit note issuance date (YYYY-MM-DD format).discountstringDefaults 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).linesobjectrequiredList of line items being credited. Follows the same structure as purchase lines.lines objectmetadatajsonA freely usable key/value object. Useful for storing custom information.notestringrequiredPublic note to display reason on the credit note.numberstringCredit note number. If omitted, it will be auto-generated.purchasestringrequiredID 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 201201 400400Updated 8 months ago