GET https://api.anypayx.com/invoices/{uid}
This API call:
Checks the status of an invoice
Gets its payment details
Use this endpoint to manually check payment status if your system is unable to receive notification of payment via webhook or websocket.
Path
Code | Type | Description |
---|---|---|
uid |
string | UID of invoice |
Code | Meaning |
---|---|
200 | Invoice Not Yet Paid |
{
"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": [{
"uri": "bitcoin:?r=https://api.anypayinc.com/r/fBW1cQw8h",
"currency": "BTC",
"currency_name": "Bitcoin BTC",
"currency_logo_url": "https://anypayinc.s3.amazonaws.com/icons/btc.png"
"amount": "0.000218"
}, {
"uri": "pay:?r=https://api.anypayinc.com/r/fBW1cQw8h",
"currency": "BSV",
"currency_name": "Bitcoin SV",
"currency_logo_url": "https://anypayinc.s3.amazonaws.com/icons/bsv.png",
"amount": "0.06333426"
}]
}
Code | Meaning |
---|---|
404 | No invoice found with that UID |
{
"error": "Invoice LeO7itGT3 Not Found"
}