介绍

如果“isBuyAllowed”和“isSellAllowed”标志设置为 false,则意味着该 IP 地址所在国家/地区的用户不允许使用该服务。

测试环境

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

生产环境

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

❗️该接口只能在服务端被调用

Http请求方法

•Get

Header参数:

参数名必选类型说明
appidYstring合作伙伴唯一 ID,商户加入 Alchemy Pay,将会获得包含 appId 和 appSecret 的凭证
timestampYstring当前 UTC 13位时间戳, 5分钟内有效
signYstring将appId,timeStamp,和请求的参数按字母排序进行签名,签名方式可参考这里

URL参数:

参数名必选类型说明
ipAddressYstringIP地址

示例

返回参数:

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