API

There are no complex libraries or excessive code to handle,
just a user-friendly and smart API.

Endpoint

https://www.auhash.com/api.php
Please post your requests as JSON. API returns all data as JSON.

New order request

resource
new
token
Your authentication token.
fiat
USD
EUR
GBP
sum
The amount you are expecting from your customer in fiat.
order
A unique order number in your system.
Numbers only. Not longer than 15 digits.
withdraw
A BTC address to which received funds will be directed.
report
A URL where we will post the statuses of your transaction.
The system will try to reach you twice for each new status. Make sure to bring back - 200!

New order response

resource
new
token
Your authentication token.
status
1 - Allocated
resolution
ok
failed
address
The address to receive funds in Bitcoin(BTC).
value
A sum in BTC.
order
The order number in your system.

Webhook reports for statuses 1, 3 and 7.

resource
update
token
Your authentication token.
order
A unique order number in your system.
status
1 - Allocated
3 - Confirmation
7 - Expired

Webhook reports for status 6.

resource
update
token
Your authentication token.
order
A unique order number in your system.
status
6 - Settled
sum
The sum you have received from the customer in fiat.
Since the transaction may involve underpayment or overpayment, it is highly recommended to compare the actual received amount.
received
The sum you have received from the customer in BTC.
fiat
A fiat you are requested from your customer.