API Reference
Summary
List all the cryptocurrencies supported by FaTPay;
List all fiat currencies and payment methods
List all the fiat currencies and its' payment methods supported by FaTPay;
Query cryptocurrency quotes based on fiat currency amount and present exchange rate;
Query orders list;
Webhook notification will be sent by FaTPay to the partner when the order status is changed;
Guide
Please follow this guide to call FaTPay API interface.
Domain
https://api.ramp.fatpay.xyz/
Request Protocol
FaTPay API is HTTPS-only.
Encoding
UTF-8
Common header parameters
The following common parameters should be included in headers of FaTPay API requests.
Keys and values are case-sensitive.
X-Fp-Partner-Id
String
Assigned by FaTPay during onboarding process to be Premium Partner, e.g. mqMBpCIP630LJxLY
X-Fp-Nonce
Integer(6)
Random integer, e.g. 183216
X-Fp-Timestamp
Integer(10)
Unix timestamp in second, e.g. 1656600459
X-Fp-Version
String
Version of FaTPay API, e.g. v1.0
X-Fp-Signature
String
Signature generated by request parameters and APIPrivateKey. Check [API Signature & Webhook Validation] for signature algorithm.
Responses
Normally, the API response consists of code, msg and data. data would be null if code is not 10000. The returned data might be an Object or Array. It depends on the specific API.
code
String
Y
Error code
msg
String
Y
Error message
data
Object
N
Object/Array
// data in response is an object
{
"code": "10000",
"msg": "success",
"data": {
"foo": "bar"
}
}
// data in response is an array
{
"code": "10000",
"msg": "success",
"data": [
{
"foo": "bar1"
},
{
"foo": "bar2"
}
]
}
// data in response is null
{
"code": "10003",
"msg": "Signature error",
"data": null
}Last updated