Create a new pay link
POST/api/v1/stores/:storeId/payment-requests
Creates a unique pay link for a specific invoice, order, or payment request.
The Pay Link itself remains tied to the same underlying business transaction. Each time the customer starts the payment flow, Coinsnap generates a fresh Bitcoin payment invoice for that Pay Link.
Typical use cases
- Sending a Bitcoin payment option together with an invoice
- Adding a Bitcoin payment link to orders in custom eCommerce applications
- Integrating Bitcoin payment requests into accounting or CRM systems
- Replacing manual bank transfer instructions with a click-to-pay Bitcoin flow
If expiryDate is omitted the link is valid for 30 days from creation.
Request
Responses
- 201
- 400
- 401
- 403
- 404
- 500
Payment request successfully created.
Bad request. Invalid input or unable to create the pay link.
Unauthorized.
Merchant account cannot accept new payments at the moment.
Store not found.
Unexpected error.