Create a purchaseAsk AIpost https://api.piriod.com/purchases/This endpoint creates a Purchase for a given supplier with status draft. After creating the Purchase, use the finalize resource to complete the issuance process.Body ParamsdatedaterequiredClosing date of this purchasediscountfloatDefaults to 0A positive number representing the amount or percentage of the discountdiscount_schemestringenumDefaults to %Can be $ or %. $ apply amount as discount. % apply percentage as discount.%$Allowed:%$documentstringrequiredThe ID of the document type this subscription should create.due_datedateThe deadline for the purchase.linesarray of objectsrequiredList of Purchase Line objects which represents the items for which this purchase is being charged.lines*ADD objectnotestringA simple text with a 100 characters as max length.metadatajsonA freely usable key/value object. Useful for storing custom information.numberint32Defaults to 0The specific number for this Purchase. If left at 0, the number will be automatically assigned according to the sequence.supplierstringrequiredID of related Supplier object.tax_settingsobjectFields used to define tax aspects specific to the different electronic invoicing regulations of each country.tax_settings objecttest_modebooleanDefaults to falseDetermines whether the Purchase is for test use or nottruefalseResponses 200200 400400Updated 8 months ago