Create Invoice Link
Let us consider a subscription-based business model. Every month you need to send out an invoice to your users with the upcoming payment, and ultimately the ability to collect said payment in crypto. In order to automate this flow, you may want to use the CoinPayments API.
Here are the steps to achieve this functionality:
Create an Invoice
Create an invoice by making a request to POST /merchant/invoices
Send Invoice Link
Send invoice payment link to client based on the API response. (invoice.checkoutLink
)
Check Invoice Status
Check invoice status via configured webhooks, GET /merchant/invoices?q=invoice.id, or GET /invoice/:id/payment-currenciues/:currencyId/status
Generated Invoice
The generated CoinPayments invoice will display all relevant information to the customer:
- Merchant information
- Line item details and breakdown
- Invoice total and cryptocurrency
- Checkout link to complete the payment