Skip to main content

Create New AnyAmount Invoice

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

POST/api/invoices/v1/unlimitedAuth: Required

Request Body

itemsarrayRequired

Item or service provided by invoice. Can contain multiple items, but best practice for AnyAmount is one item/service/purpose.

More attributes

Response

idstring

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

statusstring

Current invoice state: created, pending, processing, done, failed, expired. Note: wrong and refunded are not applicable for AnyAmount invoices.

createdAtstring

Invoice creation date and time.

typestring

Invoice type: regular, unlimited, or business.

companyobject

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

invoiceContentobject

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

redirectURLstring | null

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