IP Query
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
Element | Mandatory | Data Type | Remarks |
---|---|---|---|
appid | Y | string | Partner unique ID, once a merchant has been on-boarded with Alchemy Pay, the merchant will be provided with the credentials with appId and appSecret |
timestamp | Y | string | UTC time with 13 digit to represent time in milliseconds, expiration period is 5 minutes. |
sign | Y | string | Signature, you can refer to the signature here |
Url Parameter
Element | Mandatory | Data Type | Remarks |
---|---|---|---|
ipAddress | Y | string | The 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"
}
Updated 12 months ago