To use the API, the API plugin must be enabled on the site. You must also have a valid API token, which allows the use of the necessary methods.
Parameters are passed using the usual POST method. Passing JSON parameters in the body of a POST request is prohibited.
Implementation examples: php, jquery.
URL address for use API
{SITEURL}/api/v1/{endpoint}/
Authorization by method GET
{SITEURL}/api/v1/{endpoint}/?api-token={YOURTOKEN}
Authorization by method Headers
{SITEURL}/api/v1/{endpoint}/
the token is passed in the header with the name "api-token"
Language is the language of the site. If you need to force the language, you must use the GET-parameter "lang"
{SITEURL}/api/v1/{endpoint}/?lang=en
language must be enabled for the site
Available methods
test
test method to check functionality API
/api/v1/test/
post-parametrs
result
error_text
error description
token_type
0 - GET token, 1 - token in headers
get_currencies
list of currencies available for exchange
/api/v1/get_currencies/
post-parametrs
currency_id_give
currency id Give
currency_id_get
currency id Get
result
error_text
error description
give
list currencies Give
get_directions
list of exchange directions available for exchange
/api/v1/get_directions/
post-parametrs
currency_id_give
currency id Give
currency_id_get
currency id Get
result
error_text
error description
direction_id
direction id
currency_give_id
currency id Give
currency_give_title
currency title Give
currency_give_logo
currency logo Give
currency_get_id
currency id Get
currency_get_title
currency title Get
currency_get_logo
currency logo Get
get_direction
get exchange direction
/api/v1/get_direction/
post-parametrs
direction_id
direction id (*)
currency_id_give
currency id Give
currency_id_get
currency id Get
result
error_text
error description
currency_code_give
currency code Give
currency_code_get
currency code Get
currency_give
currency Give
currency_get
currency Get
currency_give_id
currency id Give
currency_get_id
currency id Get
sum_give_com
amount (add.com + comission PS) Give
sum_get_com
amount (add.com + comission PS) Get
com_give
text comission Give
com_get
text comission Get
min_give
min. amount Give
max_give
max. amount Give
pre_fields
fields required to be entered before exchange
give_fields
i give away additional currency fields
get_fields
i get away additional currency fields
dir_fields
additional fields for exchange direction
txt_description
Exchange description
txt_window
Popup text before order creation
txt_special
Special status text
get_calc
exchange direction calculator
/api/v1/get_calc/
post-parametrs
direction_id
direction id (*)
calc_amount
exchange amount (*)
calc_action
exchange amount ownership [ 1 - give amount, 2 - get amount ] (*)
cd
additional data [ urlencode(http_build_query(cd_data)) ]
result
error_text
error description
currency_code_give
currency code Give
currency_code_get
currency code Get
currency_give
currency Give
currency_get
currency Get
currency_give_id
currency id Give
currency_get_id
currency id Get
sum_give_com
amount (add.com + comission PS) Give
sum_get_com
amount (add.com + comission PS) Get
com_give
text comission Give
com_get
text comission Get
min_give
min. amount Give
max_give
max. amount Give
changed
need to change the input amount
create_bid
create exchange order
/api/v1/create_bid/
post-parametrs
direction_id
direction id (*)
calc_amount
exchange amount (*)
calc_action
exchange amount ownership [ 1 - give amount, 2 - get amount ] (*)
api_id
id width api (unique value)
*
fields data with method "get_direction"
result
error_text
error description
bid_info
get information about the exchange application
/api/v1/bid_info/
post-parametrs
result
error_text
error description
status_title
order status title
status_descr
order status description
psys_give
payment system Give
psys_get
payment system Get
currency_code_give
currency code Give
currency_code_get
currency code Get
currency_give
currency Give
currency_get
currency Get
currency_give_id
currency id Give
currency_get_id
currency id Get
instruction
payment instruction
pay_amount
payment amount
info
payment account info
cancel
cancel method [default - default method, disabled - disabled canceled]
pay_type
payment method [default, disabled, form, myaction, mypaid, coupon, address, link]
pay_link
payment link data
cancel_bid
set the application status to "cancelled"
/api/v1/cancel_bid/
post-parametrs
result
error_text
error description
markpay_bid
set the application status to "marked paid"
/api/v1/markpay_bid/
post-parametrs
result
error_text
error description
success_bid
set the application status to "success"
/api/v1/success_bid/
post-parametrs
result
error_text
error description
get_exchanges
get exchanges
/api/v1/get_exchanges/
post-parametrs
start_time
unix start time
status_history
show status history
limit
number of output (max: 250)
result
error_text
error description
psys_give
payment system Give
psys_get
payment system Get
currency_code_give
currency code Give
currency_code_get
currency code Get
currency_give
currency Give
currency_get
currency Get
currency_give_id
currency id Give
currency_get_id
currency id Get
exchange_success
success status
get_all_exchanges
get all exchanges
/api/v1/get_all_exchanges/
post-parametrs
start_time
unix start time
limit
number of output (max: 250)
result
error_text
error description
get_partner_info
get information about the affiliate program
/api/v1/get_partner_info/
result
error_text
error description
perc
affiliate percentage
balance
affiliate balance
min_payout
minimum amount for payment
items
list of payment systems for payment
amount
amount in this payment system
get_partner_links
get affiliate referrals
/api/v1/get_partner_links/
post-parametrs
start_time
unix start time
limit
number of output (max: 250)
result
error_text
error description
query_string
query string
get_partner_exchanges
get affiliate exchanges
/api/v1/get_partner_exchanges/
post-parametrs
start_time
unix start time
status_history
show status history
limit
number of output (max: 250)
result
error_text
error description
psys_give
payment system Give
psys_get
payment system Get
currency_code_give
currency code Give
currency_code_get
currency code Get
currency_give
currency Give
currency_get
currency Get
currency_give_id
currency id Give
currency_get_id
currency id Get
exchange_success
success status
partner_reward
partner reward
get_partner_payouts
get affiliate payments
/api/v1/get_partner_payouts/
post-parametrs
start_time
unix start time
limit
number of output (max: 250)
result
error_text
error description
pay_amount
payment amount
pay_currency_code
payment currency code
original_amount
original amount
original_currency_code
original currency code
add_partner_payout
request for affiliate funds payment
/api/v1/add_partner_payout/
post-parametrs
result
error_text
error description