Description

If the ”isBuyAllowed“ and ”isSellAllowed“ flag are set to false, it means that users in the country where the IP address is located are not allowed to use the service.

Test environment

https://openapi-test.alchemypay.org/open/api/v4/merchant/ach/ip

Prod environment

https://openapi.alchemypay.org/open/api/v4/merchant/ach/ip

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

Http method

  • GET

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 digit to represent time in milliseconds, expiration period is 5 minutes.
signYstringSignature, you can refer to the signature here

Url Parameter

ElementMandatoryData TypeRemarks
ipAddressYstringThe IP address

Response sample

{
	"success":true,
  "returnCode":"0000",
  "returnMsg":"SUCCESS",
  "extend":"",
  "data":
  	{
    	"country":"SG",
      "ipAddress":"180.178.73.50",
      "buyAllowed":true,
      "sellAllowed":true
    },
   "traceId":"64f1ca393edbe6119e9611f9123fa0ac"
}