Create Invoice
Creating an invoice for payments
In this section, we will explore the various methods for generating invoices, namely the DPP and BIP270 processes, each with its own set of input fields. It's important to note that while DPP enables the creation of invoices using Tokens, BIP270 is specifically designed for generating BSV-type invoices.
Below, you will find examples of the invoice input bodies for both DPP and BIP270. For DPP, it is important to select and include either the "native" or "stas" section in the invoice input body, but does not support both at the same time.
DPP
The abbreviation "DPP" stands for Direct Payment Protocol, which is utilized for generating invoices that encompass BSV (Bitcoin SV) or STAS tokens. Note that the payment options cannot include both native and stas and only one is required for the invoice to be created. The following is the "/invoice" endpoint to be employed when utilizing DPP:
Create an Invoice
POST
https://api.relysia.com/v1/invoice
Create an invoice to receive payments for a merchant product.
Request Body
BIP270
BIP270 is a widely recognized invoice standard extensively adopted within the BSV (Bitcoin SV) ecosystem. When utilizing BIP270, the following are the inputs required for the "/invoice" endpoint:
Create an Invoice
POST
https://api.relysia.com/v1/invoice
Create an invoice to receive payments for a merchant product.
Request Body
Last updated