Public API

Order fee POST

Return data about fee for order.

Endpoint

POST https://switchere.com/api/v1/public/order/fee

Parameters

NameTypeDescription
partner_order_id requiredstringunique partner order id
payin_currency requiredcurrencypayin currency
payin_amountfloatpayin amount. One of payin_amount, payout_amount is required.
payin_grouppaymentGroupif empty, will be choosen first available method for payin currency. See order in enum.
payout_currency requiredcurrencypayout currency
payout_amountfloatpayout amount. One of payin_amount, payout_amount is required.
payout_grouppaymentGroupif empty, will be choosen first available method for payout currency. See order in enum.
free_firstinteger[0..1]enable or disable free first order policy. By default free_first = 1

Response

{
    "payin_amount": "string",
    "payout_amount": "string",
    "rate": "string",
    "payin_fee": "string",
    "payout_fee": "string",
    "margin_fee": "string"
}
NameTypeDescription
payin_amountstringpayin currency
payout_amountstringpayout amount
ratestringrate payin_currency/payout_currency
payin_feestringnetwork fee in payin currency
payout_feestringnetwork fee in payout currency
margin_feestringservice fee in payin currency

Tip: Field parameters info

Currencies GET

Return data about partner payin->payout currencies.

Endpoint

GET https://switchere.com/api/v1/public/currency

Response

{
    "...": [
        "...",
        "...",
        "..."
    ]
}
NameTypeDescription
...arraypayout currencies

Payments GET

Return data about partner payments.

Endpoint

GET https://switchere.com/api/v1/public/payment/{directionName}

Parameters

NameTypeDescription
directionName requireddirectionName of direction.

Response

[
    {
        "group": "card",
        "info": "USD, EUR",
        "list": [
            {
            "currency": "USD",
            "is_crypto": true
            }
        ],
        "title": "Credit/Debit Card"
    }
]
NameTypeDescription
grouppaymentGrouppayment group
infostringinfo for group
listarrayarray objects contain: currency and is_crypto
titlestringtitle for group

Tip: Field parameters info

Country list GET

Return data about all available countries on Switchere.

Endpoint

GET https://switchere.com/api/v1/public/country/list

Response

[
    {
        "code": "AF",
        "forbidden": 0,
        "forbidden_card": 0,
        "name": "Afghanistan",
    },
    {
        "code": "AL",
        "forbidden": 0,
        "forbidden_card": 0,
        "name": "Albania",
    },
    ...
]
NameTypeDescription
codestringcountry code
forbiddeninteger[0..1]if the value is set to 1, Switchere doesn't support this country
forbidden_cardinteger[0..1]if the value is set to 1, Switchere doesn't support the use of the bank card for this country
namestringcountry name

Countries GET

Return data about allowed countries for payout method.

Endpoint

GET https://switchere.com/api/v1/public/country/{methodName}/{directionName}

Parameters

NameTypeDescription
methodName requiredstringExample: ecommpay
Name of payout method.
directionName requireddirectionName of direction.

Response

[
    "AD",
    "AE",
    "AF",
    "..."
]
NameTypeDescription
...arrayarray of countries

Tip: Field parameters info

Tickers GET

Return data about partner rates.

Endpoint

GET https://switchere.com/api/v1/public/ticker

Response

[
    {
        "name": "BTC-USD",
        "ask": 100.01,
        "bid": 99.9
    }
]
NameTypeDescription
namestringpair name
askstringask
bidstringbid

Ticker GET

Return data about partner rate.

Endpoint

GET https://switchere.com/api/v1/public/ticker/{tickerName}

Parameters

NameTypeDescription
tickerName requiredstringExample: BTC-USD
Name of rate.

Response

{
    "name": "BTC-USD",
    "ask": 100.01,
    "bid": 99.9
}
NameTypeDescription
namestringpair name
askstringask
bidstringbid



TIP

Also see field parameters.

Last Updated: