Create New Regular Invoice
This endpoint creates a new invoice under merchant's account.
POST
/api/invoices/v1/regularAuth: RequiredRequest Body
invoiceCurrencystringRequiredInvoice items price currency. Can be eur, usd, or one of crypto assets (usdt, usdc, btc, eth, ton, sol, bnb, bch, ltc, trx).
itemsarrayRequiredList of invoice items. Each item should contain name and price. Can contain as many items as needed.
More attributes
Price Precision by Currency
| Currency | Decimal places |
|---|---|
| usd, eur, usdt, usdc | 2 |
| sol, ton | 4 |
| btc, eth | 6 |
| bnb, bch, ltc, trx | 8 |
Response
idstringInvoice identifier. Open on frontend: https://pay.my.paidlys.com/%invoice_id%.
statusstringCurrent invoice state (see Invoice Statuses).
createdAtstringInvoice creation date and time.
companyobjectMerchant's company information: name, logoUrl, assets (list of accepted assets with isAllowed flag).
invoiceContentobjectPrimary invoice info: items list, prices, invoiceCurrency, paymentCurrency, isMerchantPaysFee.
redirectURLstringURL for redirect after "Done" status. null means no redirect.