Skip to main content

Settings for FIAT Gate

Getting list of merchant's settings

This request allows you to view the list of available payment gateway settings for fiat payments.

GET https://api.xamax.io/fiat/v1/merchant/preferences HTTP/1.1
Authorization: Bearer {ACCESS_TOKEN}

Response example

{
"merchantPreferences": [
{
"key": "country",
"value": "CHN",
"created_at": "2023-06-18T10:05:02.000000Z",
"updated_at": "2023-06-23T15:54:09.000000Z"
},
{
"key": "currency",
"value": "CNY",
"created_at": "2023-06-18T10:05:02.000000Z",
"updated_at": "2023-06-23T15:54:09.000000Z"
},
{
"key": "additional_currency",
"value": "EUR",
"created_at": "2023-05-29T11:29:31.000000Z",
"updated_at": "2023-07-04T18:06:08.000000Z"
},
{
"key": "callback_url",
"value": "https://localhost.ru",
"created_at": "2023-05-29T11:29:31.000000Z",
"updated_at": "2023-07-04T18:06:08.000000Z"
},
{
"key": "risk",
"value": "high",
"created_at": "2023-05-29T11:29:31.000000Z",
"updated_at": "2023-07-04T18:06:08.000000Z"
},
{
"key": "type_of_fee_calculations",
"value": "forward_without_fee",
"created_at": "2023-05-29T11:29:31.000000Z",
"updated_at": "2023-07-04T18:06:08.000000Z"
},
{
"key": "additional_fee",
"value": 5,
"created_at": "2023-05-29T11:29:31.000000Z",
"updated_at": "2023-07-04T18:06:08.000000Z"
},
{
"key": "merchant_fee_percent",
"value": 5,
"created_at": "2023-05-29T11:29:31.000000Z",
"updated_at": "2023-07-04T18:06:08.000000Z"
},
{
"key": "merchant_fee_fix",
"value": 0,
"created_at": "2023-05-29T11:29:31.000000Z",
"updated_at": "2023-07-04T18:06:08.000000Z"
}
]
}
ParameterData typeDescriptionExample
countrystringMerchant's country in ISO 3166-1 alpha-2 codeCHN
currencystringDefault merchant's fiat currency in ISO 4217 three-letter alpha-3 codeCNY
additional_currencystringAdditional merchant's fiat currency in ISO 4217 three-letter alpha-3 codeCHN
riskstringLevel of risk for merchant's transactions. Available values are low, highhigh
type_of_fee_calculationsstringType of fee calculation. Available values are forward_without_fee, forward_with_feeforward_without_fee
additional_feestringMerchant's additional fix fee in default currency
merchant_fee_percent *stringMerchant's percent fee
merchant_fee_fix *stringMerchant's fix fee
callback-urlstringURL where data is sent when a new transaction is received or its status changeshttps://example.com
* - Configurable by manager

Change settings

Set callback URL from personal area

You can set callback through the settings in your account. To set a callback URL for fiat payments, you need to go to the settings in the Payment Gate tab and add the URL in the Callback URL (for Payment Gate) field

img

Set callback URL through API

A request will be sent to this URL when the payment status changes.

PATCH https://api.xamax.io/fiat/v1/merchant/preferences HTTP/1.1
Authorization: Bearer {ACCESS_TOKEN}
Content-Type: application/json

{
"key": "callback-url",
"value": "https://example.com/callback"
}

Callback example

POST https://youraddress.com/callback HTTP/1.1
Authorization: Bearer {CALLBACK_SIGN}
Content-Type: application/json
X-Resource-Type: invoice

{
"merchant_transaction_id": 1719912817002,
"amount": 550.44,
"status": "transaction_status_pending",
"substatus": "payin_pending",
"substatus_description": "Waiting for payment",
"currency": "INR",
"country": "IND",
"payment_method": "online_banking",
"created_at": "2024-07-02 09:33:38",
"message": "Transaction created successful"
}

Get available payment methods for selected country

The request allows you to see the list of available payment methods for the selected country

POST https://api.xamax.io/fiat/v1/payment/methods HTTP/1.1
Authorization: Bearer {ACCESS_TOKEN}
Content-Type: application/json

{
"country": "NGA",
"currency": "NGN"
}

Response example

{
"payment_methods": [
{
"payment_method": "virtual_bank_account",
"currency": "NGN"
}
]
}

Available currencies

symbollink
eurEuro
usdUS Dollar
local currencies*Depends on supported countries