Create Invoice

Generating payment requests for all coins accepted

post
Create Invoice

https://api.anypayinc.com/invoices
The most important operative action to take in Anypay as a business, request payment from customers.
Request
Response
Request
Headers
Authentication
required
string
Basic auth with access token uid as username
Body Parameters
amount
required
number
amount in terms of denomination ie USD, AUS, TBH
redirect_url
optional
string
redirect web app users to this URL after payment
webhook_url
optional
string
URL to receive webhook POST notification on payment
external_id
optional
string
external identifier to coordinate with your system
Response
200: OK
Invoice Created
{
"invoice": {
"amount": 10.71,
"currency": "EUR",
"uid": "LeO7itGT4",
"status": "unpaid",
"uri": "pay:?r=https://api.anypayinc.com/r/LeO7itGT4",
"redirect_url": "https://anypay.city/#/payments/LeO7itGT4"
},
"payment_options": [{
"currency": DASH",
"uri": "dash:?r=https://api.anypayinc.com/r/LeO7itGT4"
}, {
"currency": "BSV",
"uri": "pay:?r=https://api.anypayinc.com/r/LeO7itGT4"
}, {
"currency": "BCH",
"uri": "bitcoincash:?r=https://api.anypayinc.com/r/LeO7itGT4"
}]
}
400: Bad Request
Invalid request parameters such as a negative amount or other client issue
{
"error": "amount must be greater than zero"
}

‚Äč