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/v3/merchant/order/quoted/result

Prod environment

https://openapi.alchemypay.org/open/api/v3/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.
signYstringSign the appId, timeStamp, and requested parameters alphabetically, the sign method can refer here

Body Parameter

ElementMandatoryData TypeRemarks
sideYstringPass value: BUY, SELL
fiatAmountCstringThe amount of fiat currency
fiatCurrencyCstringFiat code, USD/EUR, etc.
cryptoQuantityCstringThe number of digits
cryptoCurrencyCstringCrypto name. example: USDT
networkCstringCrypto acquiring network: e.g.: ETH/BSC/BTC, etc.
payWayCodeCstringPayment 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"
        }
    ]
}