Create new documentCopy Pagepost https://restapi.payplus.co.il/api/v1.0/books/docs/new/{docType}Recent RequestsLog in to see full request historyTimeStatusUser Agent Retrieving recent requests…LoadingLoading…Path ParamsdocTypestringenumrequiredType of document to createinv_tax_receiptinv_taxinv_receiptinv_proformainv_refundcrt_deliverycrt_returnorder_purchasepurchasedc_quoteinv_don_receiptinv_pay_requestShow 12 enum valuesBody Paramsdoc_datestringstring Document issue date. Format: YYYY-MM-DD. Defaults to current dabrand_uuidstringIf multiple brands exist, specify brand uuid to create document associated with a specific brand. If none provided, the default brandpreviewbooleanGet a preview of the document. No document will be generated if set to truetruefalsehide_base_currencybooleanWhether or not to hide the base currency (usually ILS) in a foreign currency document.truefalsedraftbooleanCreate a draft document. No actual document will be generated if set to truetruefalsemore_infostringnullable Optional identifier. Will appear at the bottom of the documentclose_docstringUUID of a previously created document. If supplied, the new document will also close the document indicated by the UUIDcancel_docstringUUID of a previously created document. If supplied, the new document will also cancel the document indicated by the UUIDtransaction_uuidstringUUID of a PayPlus transactionsend_document_emailbooleanSend email upon document creation. Will override the whatever's defined in your accounttruefalsesend_document_smsbooleansend_document_smstruefalsecallback_urlstringIf valid url is specified, payplus will send a notification to the specified URL upon successful document creationvatTypestringenumIf omitted, configuration values will be used insteadvat-type-includedvat-type-not-includedvat-type-exemptAllowed:vat-type-includedvat-type-not-includedvat-type-exemptvat_percentageintegerVat percentage to use for calculations. If omitted, configuration values will be used insteadlanguagestringenumheenAllowed:heencurrency_codestringconversion_ratefloatIf document currency specified is not ILS, this value will be used as the conversion rate for all the prices into the base currency.autocalculate_ratebooleanIf the conversion rate parameter is omitted, determine conversion rate automaticallytruefalseprevent_emailbooleanIf true, will not sendtruefalseunique_identifierstringArbitrary, unique string. If supplied, the system will refuse further creation attempts if it finds a duplicate, ensuring that this value will always be unique per document.customerobjectcustomer objecttagsarray of stringsArray of arbitrary strings used to catalogue/ tag documentstagsADD stringpaymentsarray of objectspaymentsADD objecttotalAmountintegerTotal sum of the document.itemsarray of objectsitemsADD objectHeadersapi-keystringrequiredAPI Keysecret-keystringrequiredSecret KeyResponses 200200 400400Updated 11 months ago