API Reference
The API interface is only available to Premium Partners. Please visit [Premium Partner] to check how to apply.
You will get your own partnerId
and APIPrivateKeys
to call APIs once you become Premium Partner.
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
Protocol | Method | Content-Type |
---|---|---|
HTTPS | GETPOST | application/jsonmultipart/form-data |
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.
Key | Format | Description |
---|---|---|
| String | Assigned by FaTPay during onboarding process to be Premium Partner, e.g. mqMBpCIP630LJxLY |
| Integer(6) | Random integer, e.g. 183216 |
| Integer(10) | Unix timestamp in second, e.g. 1656600459 |
| String | Version of FaTPay API, e.g. v1.0 |
| String | Signature generated by request parameters and |
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.
Check [Errors] for the definitions of error codes and messages.
Key | Type | Required | Description |
---|---|---|---|
code | String | Y | Error code |
msg | String | Y | Error message |
data | Object | N |
|
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.
Last updated