Create New Business Invoice
This endpoint creates a new business invoice under merchant's account.
/api/invoices/v1/businessAuth: RequiredRequest Body
invoiceCurrencystringRequiredInvoice items price currency. Can be eur, usd, or crypto assets (usdt, usdc, btc, eth, ton, sol, bnb, bch, ltc, trx).
itemsarrayRequiredList of invoice items. Each item should contain description and price.
invoiceNumberstringRequiredInvoice legal number. Can contain any symbols, should be unique per business invoice.
sellerobjectRequiredSeller's legal info block.
buyerobjectRequiredBuyer's legal info block.
Response
idstringInvoice identifier. Open on frontend: https://pay.my.paidlys.com/%invoice_id%.
statusstringCurrent invoice state (see Invoice Statuses).
createdAtstringInvoice creation date and time.
typestringregular, unlimited, or Business.
companyobjectMerchant's company info: name, logoUrl, assets.
invoiceContentobjectItems list, prices, invoiceCurrency, paymentCurrency, isMerchantPaysFee.
invoiceNumberstringInvoice legal number.
sellerobjectSeller info block.
buyerobjectBuyer info block.
taxesarrayInvoice taxes.
notesToBuyerstringNotes for the client during invoice processing.
internalNotesstringInternal notes for the merchant on Invoices detail page.
issueDatestringInvoice legal issue date.
dueDatestringInvoice legal expiration date.
redirectURLstringRedirect URL after "Done" status.