Payment API
General Information
AquaPay will recycle the generated payment address. Please DO NOT keep it for a prolonged period of time for receiving additional deposits.
Create Payment Bill
POST
https://api.aquanow.io/payment/v1/requestPaymentAddress
This endpoint allows you request a payment address by using a fiat quantity (fiatReceivable) to generate the executable price.
Request Body
Name | Type | Description |
---|---|---|
cryptoType* | string | Symbol deposited ie. "BTC". Look at Crypto & Currency Support for a full list of supported cryptos. |
fiat* | string | Designated currency which the cryptocurrency will be converted into. Look at Crypto & Currency Support for a full list of supported fiat. |
fiatReceivable* | number | Amount (in fiat) you want to receive as a result of payment execution. |
subaccount* | string | Payment service provider's user who initiate the deposit request. |
networkType | enum | Network Type of |
bech32 | boolean | Defaults to false. If set to true, it will return bech32 segwit address for BTC address, or BCH cash address for BCH. |
strategy | enum |
|
feeModel | enum |
|
Get Payment
GET
https://api.aquanow.io/payment/v1/payment
Get all payment bills by time range, address or paymentId.
Query Parameters
Name | Type | Description |
---|---|---|
startTime | number | Time in epoch. Required when query for all bills by time range. |
endTime | number | Time in epoch. Must within 90 days of startTime. |
startsAfter | string | Pagination token |
address | string | Query for all bills under an address |
paymentId | string | Query for single bill |
Payment Strategy
Default
Request parameter: "RFQ"
. Applicable for all supported coins. Received crypto deposits are converted to fiat when the bill is within the expiry time.
Receive As Is
Request parameter: "RAI"
. Applicable for all supported coins. Received crypto deposits are not converted to fiat.
Always Convert All
Request parameter: "ACA"
. Applicable for all supported coins. All received crypto will be converted by RFQ or market order to fiat depending on the bill expiry time.
Limit Price
Request parameter: "LMT"
. Only applicable to stablecoins, i.e. USDC
and USDT
as a risk factor. Received crypto deposits will be converted to fiat only when the guaranteed trade price in bill is better than the user-configured limit price. Crypto deposits received after the bill expiry time are not converted to fiat.
Unconverted payments received through the RAI and LMT strategies are subject to a transaction fee.
Fee Model
Default
Request parameter: "SPREAD"
. Service fee is charged by spread.
Explicit Fee
Request parameter: "EXPLICIT"
. Service fee is charged by crypto amount from the conversion. Not affecting non-conversion transactions. Not supported by ACA
strategy market order yet.
Supported Network Types
For symbols that support multiple networks, please specify networkType
parameter in request body. If you provide a network type for a symbol that is NOT USDT, a 400 HTTP error will be thrown with the response.
CryptoType | NetworkType | Description |
---|---|---|
USDT |
| Ethereum network |
USDT |
| Tron network |
MATIC |
| Ethereum network |
Last updated