Estimate Price Query

Description

You can retrieve the estimated fiat amount you need to pay or the crypto amount you can receive through this API. However, please note that this API does not facilitate order creation.

Test environment

https://openapi-test.alchemypay.org/open/api/v4/merchant/order/quoted/result

Prod environment

https://openapi.alchemypay.org/open/api/v4/merchant/order/quoted/result

❗️This API can only be invoked on the server side.

Http method

  • POST

Http Header

ElementMandatoryData TypeRemarks
appidYstringPartner unique ID, Once a merchant has been on-boarded with Alchemy Pay, the merchant will be provided with the credentials with appId and appSecret
timestampYstringUTC time with 13 digits represents time in milliseconds, expiration period is 5 minutes.
signYstringSignature, you can refer to the signature here

Body Parameter

ElementMandatoryData TypeRemarks
sideYstringPass value: BUY, SELL
fiatAmountNstringThe amount of fiat currency
fiatCurrencyNstringFiat code, USD/EUR, etc.
cryptoQuantityNstringThe number of digits
cryptoCurrencyNstringCrypto name. example: USDT
networkNstringCrypto acquiring network: e.g.: ETH/BSC/BTC, etc.
payWayCodeNstringPayment method code: For the specific value.

Response sample

{
  "success": true,
  "returnCode": "0000",
  "returnMsg": "SUCCESS",
  "extend": "",
  "data": [
        {
            "cryptoPrice": "14893.45",
            “side”: “BUY”,
            "fiatAmount”: “100.22”,
            "cryptoQuantity": "31.87514642", 
            "rampFee": "20950.00",
            "networkFee": "4319.10",
            "fiat": "IDR",
            "crypto": "USDT",
            "payWayCode": "10004"
        }
    ]
}

Return Code List

Return CodeReturn Message
3102Quote amount is out of the range, The Min purchase amount is XX, The max purchase amount is XX
81010Merchant parameter error

Other return codes reference: https://dash.readme.com/project/alchemypay/v4.0.1/docs/response-code-list