For the complete documentation index, see llms.txt. This page is also available as Markdown.

Conversion API

API specs for conversion workflow, for web portal access, please see here.

Get conversions

GET https://api.aquanow.io/payment/v1/conversion

Get conversion history by ID or time range.

Query Parameters

Name
Type
Description

invoiceId*

String

startTime*

String

ISO 8601 format

endTime

String

ISO 8601 format. Default to request time.

[
    {
        "quantity": 54.692493,
        "baseSymbol": "USDC",
        "status": "CANCELLED",
        "created": "2022-06-24T23:50:23.486Z",
        "items": [
            {
                "txId": "f473123d-a0c1-4a25-a713-2c5ecab27bfa",
                "address": "0x0aE90a043419DAe46774Ba067263202c1a0F60FF",
                "quantity": 52.461662,
                "subaccount": "usdc-5"
            },
            {
                "txId": "948bf813-e055-4e24-be26-5ead961f1fd2",
                "address": "0x1e4622932738763107E949e011167176F14C5327",
                "quantity": 2.230831,
                "subaccount": "usdc-4"
            }
        ],
        "quoteSymbol": "CAD",
        "username": "jeffen",
        "side": "SELL",
        "invoiceId": "f81123c8-2edd-4f29-88e7-6da5f855e48c",
        "type": "CONVERSION"
    }
]

Create a conversion

POST https://api.aquanow.io/payment/v1/conversion

Create a conversion invoice by passing conversion info and conversion items(addresses of bills)

Request Body

Name
Type
Description

baseSymbol*

String

Crypto to convert

quoteSymbol*

String

Fiat to receive

quantity*

Number

Total crypto quantity to convert

items*

Array<{paymentId: string}>

An array of object that contains paymentId of each bills. They must have the same baseSymbol and quoteSymbol

Cancel a conversion

DELETE https://api.aquanow.io/payment/v1/conversion

Request Body

Name
Type
Description

invoiceId*

String

Quote a conversion

POST https://api.aquanow.io/payment/v1/conversion/quote

Request Body

Name
Type
Description

invoiceId*

String

Execute a conversion

POST https://api.aquanow.io/payment/v1/conversion/execute

Request Body

Name
Type
Description

invoiceId*

String

Last updated

Was this helpful?