Skip to main content

Create New Regular Invoice

This endpoint creates a new invoice under merchant's account.

POST/api/invoices/v1/regularAuth: Required

Request Body

invoiceCurrencystringRequired

Invoice items price currency. Can be eur, usd, or one of crypto assets (usdt, usdc, btc, eth, ton, sol, bnb, bch, ltc, trx).

itemsarrayRequired

List of invoice items. Each item should contain name and price. Can contain as many items as needed.

More attributes

Price Precision by Currency

CurrencyDecimal places
usd, eur, usdt, usdc2
sol, ton4
btc, eth6
bnb, bch, ltc, trx8

Response

idstring

Invoice identifier. Open on frontend: https://pay.my.paidlys.com/%invoice_id%.

statusstring

Current invoice state (see Invoice Statuses).

createdAtstring

Invoice creation date and time.

companyobject

Merchant's company information: name, logoUrl, assets (list of accepted assets with isAllowed flag).

invoiceContentobject

Primary invoice info: items list, prices, invoiceCurrency, paymentCurrency, isMerchantPaysFee.

redirectURLstring

URL for redirect after "Done" status. null means no redirect.