API Reference
Last updated
Last updated
The API interface is only available to Premium Partners. Please visit [] to check how to apply.
You will get your own partnerId
and APIPrivateKeys
to call APIs once you become Premium Partner.
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;
Please follow this guide to call FaTPay API interface.
https://api.ramp.fatpay.xyz/
FaTPay API is HTTPS-only.
UTF-8
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
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.
Check [Errors] for the definitions of error codes and messages.
code
String
Y
Error code
msg
String
Y
Error message
data
Object
N
Object
/Array
All fields of the objects contained in data
will be returned if code
is 100000. Even there is no value for some fields. They will be also responded as empty string.
Signature generated by request parameters and APIPrivateKey
. Check [] for signature algorithm.