About Payments API
Payments API allows you to create invoices and get status of payments.
Create New Invoice
Endpoint:
https://www.bithash.net/en/payments
Request Method:
GET
Request Parameters:
Parameter | Mandatory | Description |
key | Yes | Your API Key |
amount | Yes | Invoice amount |
currency | Yes | Invoice currency |
payment_id | No | Your internal payment ID up to 32 symbols |
payment_data | No | Any custom data up to 255 symbols |
assets | No | Comma-separated list of allowed assets |
No | Payer email address | |
notify_url | No | URL for notifications about a payment |
success_url | No | URL to redirect payer after successful payment |
fallback_url | No | URL to redirect payer after failed payment |
format | No | Use "json" for json response or blank for redirect |
Sample Request:
https://www.bithash.net/en/payments?key=prtjrysPXNl9egbD7hXei8IwGGloD7sV&amount=100¤cy=usd&payment_id=12345&payment_data=secret_data&assets=btc,ltc,xmr¬ify_url=https://yourdomain.com/notify.html
This request will create a new invoice with selected options and redirect directly to the payment page.
If you wish to access link programatically, add format=json to your request