NAV
bash javascript php python

Info

Welcome to the generated API reference.

Affiliate

show user Affiliate info

نمایش اطلاعات و لینک بازاریابی کاربر


Requires authentication

Example request:

curl -X GET \
    -G "http://localhost/api/v1/affiliate/list" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}"
const url = new URL(
    "http://localhost/api/v1/affiliate/list"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://localhost/api/v1/affiliate/list',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/affiliate/list'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "msg": "عملیات موفق",
    "data": {
        "marketing_link": "https:\/\/test.com\/user\/refCode\/812994",
        "marketing_code": "812994",
        "register_profits": 0
    }
}

HTTP Request

GET api/v1/affiliate/list

Analysis

store new user analysis

ذخیره تحلیل جدید کاربر


Requires authentication

Example request:

curl -X POST \
    "http://localhost/api/v1/analysis/save" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -d '{"currency_id":10}'
const url = new URL(
    "http://localhost/api/v1/analysis/save"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

let body = {
    "currency_id": 10
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'http://localhost/api/v1/analysis/save',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
        'json' => [
            'currency_id' => 10,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/analysis/save'
payload = {
    "currency_id": 10
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):

{
    "msg": "عملیات موفق"
}

Example response (422):

{
    "message": "The given data was invalid.",
    "errors": {
        "attachments": [
            "فایل ضمیمه الزامی است."
        ]
    }
}

HTTP Request

POST api/v1/analysis/save

Body Parameters

Parameter Type Status Description
currency_id integer required currency id
title string required title of analysis
description string required description of analysis
attachments string required files of analysis

show user analysis

نمایش تحلیل های کاربر


Requires authentication

Example request:

curl -X GET \
    -G "http://localhost/api/v1/analysis/my-analysis" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}"
const url = new URL(
    "http://localhost/api/v1/analysis/my-analysis"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://localhost/api/v1/analysis/my-analysis',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/analysis/my-analysis'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "msg": "عملیات موفق",
    "data": [
        {
            "id": 7,
            "user_id": 5000001,
            "currency_id": 1,
            "title": "تغییرات یک هفته اخیر بیت کوین",
            "description": "لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ و با استفاده از طراحان گرافیک است. چاپگرها و متون بلکه روزنامه و مجله در ستون و سطرآنچنان که لازم است و برای شرایط فعلی تکنولوژی مورد نیاز و کاربردهای متنوع با هدف بهبود ابزارهای کاربردی می باشد. کتابهای زیادی در شصت و سه درصد گذشته، حال و آینده شناخت فراوان جامعه و متخصصان را می طلبد تا با نرم افزارها شناخت بیشتری را برای طراحان رایانه ای علی الخصوص طراحان خلاقی و فرهنگ پیشرو در زبان فارسی ایجاد کرد. در این صورت می توان امید داشت که تمام و دشواری موجود در ارائه راهکارها و شرایط سخت تایپ به پایان رسد وزمان مورد نیاز شامل حروفچینی دستاوردهای اصلی و جوابگوی سوالات پیوسته اهل دنیای موجود طراحی اساسا مورد استفاده قرار گیرد.",
            "image": null,
            "status": "waiting",
            "created_at": "2021-09-04 11:28:36",
            "updated_at": "2021-09-04 11:28:36"
        }
    ]
}

HTTP Request

GET api/v1/analysis/my-analysis

show all analysis

نمایش تمامی تحلیل ها


Requires authentication

Example request:

curl -X GET \
    -G "http://localhost/api/v1/analysis/all-analysis" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}"
const url = new URL(
    "http://localhost/api/v1/analysis/all-analysis"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://localhost/api/v1/analysis/all-analysis',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/analysis/all-analysis'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "msg": "عملیات موفق",
    "data": [
        {
            "id": 20,
            "currency_id": 1,
            "currency_name": "بیت کوین",
            "title": "افزایش قیمت بیت کوین",
            "description": "توضیحات در مورد افزایش قیمت بیت کوین\nتوضیحات در مورد افزایش قیمت بیت کوین\nتوضیحات در مورد افزایش قیمت بیت کوین",
            "image": "https:\/\/encrypted-tbn0.gstatic.com\/images?q=tbn:ANd9GcRGOjjWUcjsAzUChQMGj_qbEARO2UMm9HfJXg&usqp=CAU",
            "status": "accepted",
            "created_at": "2021-09-07T09:19:30.000000Z"
        }
    ]
}

HTTP Request

GET api/v1/analysis/all-analysis

show single analysis

نمایش یک تحلیل


Requires authentication

Example request:

curl -X GET \
    -G "http://localhost/api/v1/analysis/single/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}"
const url = new URL(
    "http://localhost/api/v1/analysis/single/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://localhost/api/v1/analysis/single/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/analysis/single/1'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "msg": "عملیات موفق",
    "data": {
        "id": 1,
        "user_id": 5000005,
        "currency_id": 1,
        "title": "افزایش قیمت بیت کوین",
        "description": "توضیحات در مورد افزایش قیمت بیت کوین\nتوضیحات در مورد افزایش قیمت بیت کوین\nتوضیحات در مورد افزایش قیمت بیت کوین",
        "image": "https:\/\/encrypted-tbn0.gstatic.com\/images?q=tbn:ANd9GcRGOjjWUcjsAzUChQMGj_qbEARO2UMm9HfJXg&usqp=CAU",
        "status": "accepted",
        "created_at": "2021-09-07 13:49:30",
        "updated_at": "2021-09-07 13:49:43"
    }
}

Example response (404):

{
    "msg": "موردی یافت نشد"
}

HTTP Request

GET api/v1/analysis/single/{id}

URL Parameters

Parameter Status Description
id required id of analysis

Authentication

Login

ورود


Requires authentication

Example request:

curl -X POST \
    "http://localhost/api/v1/login" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -d '{"mobile":9150000000}'
const url = new URL(
    "http://localhost/api/v1/login"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

let body = {
    "mobile": 9150000000
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'http://localhost/api/v1/login',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
        'json' => [
            'mobile' => 9150000000,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/login'
payload = {
    "mobile": 9150000000
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):

{
    "msg": "عملیات موفق",
    "data": {
        "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWM2EwMy1lODAwLTRmYTMtYTEzMy0yNWQ0MmU3N2YzMGUiLCJqdGkiOiI0NTQ3NWFkNWVjZjgzOWI2MWE3ZjM4MGIyZTU2NzFlZjZmNzU4YjE2MTgzYzRmZWFmN2RmYTQ4ZDBjMmE5MjQzMDliMWVhZDA3YmZiMDJhNyIsImlhdCI6MTYyOTA5MDkwNy45Nzg5NzgsIm5iZiI6MTYyOTA5MDkwNy45Nzg5ODQsImV4cCI6MTY2MDYyNjkwNy45NDMyMjEsInN1YiI6IjUwMDAwMDAiLCJzY29wZXMiOltdfQ.bq_dPmNYVrMHhaKR2uy2f5unYOpe6y3tqXQwMiNYMlPbQJejWOVxM24B_0BSUitLLuLA6Ut8m8m6hAypZ7ymaqm3fbVW8WfPfCyxAOUL7wrDR_o7EfeJeDjQe4VSiqDf_kv1o3WcDRekLh4Ls59ODPMmWTpxyLcMJyV7FWs7lL_eLSOLVnIZmMC0ghDprXN4puFLz5c1JVe3VZUyC4hn1wfTx8OUFtcyMVl9bw2SQPmUAtvzXMfUwG0B-XGAJlO_wqr-1MtqLx2ttDQy_qVtjA0QNOHPlsFDzjBouH60zW5Wg9LRiNlRSUW4ahDRojFY0elhyaMmdiATlOS3YeaxmeiwdkUJQCbiUwvfCkcRi1cKTnDlcwMM6B7NXtuSH90BiYiu8PAc8Bas7GjnN55XvNrI1-pGxzZDgQQ-EX8Ns8hxWPmwTC3klLOnuO7_wF5J3xZo0ZK-qhY61CyXT2sLYaZfp_tyn13QAR_GqIPd4RM_3-yo5vRVB690bH-CZB-PUoWhl1FtkXqiqwAEEU53zi95uwkH3nCo048uJmy6pYoLlQD8Q_gxmLz0VJSLO2fu2OEMr0hvcuWXSIWPmaz7bz_Zjv2zlPBRNGvJahSA2S5owOhnNKPR2fcLKcU9xwSWw2K-wqgk_4GQlLRFQEgUhDagB963Wv4eourE1lk-Zdc"
    }
}

HTTP Request

POST api/v1/login

Body Parameters

Parameter Type Status Description
mobile integer required The mobile number of the user.

Login Verify Code

اعتبار سنجی کد ارسال شده به تلفن همراه کاربر بعد از لاگین


Requires authentication

Example request:

curl -X POST \
    "http://localhost/api/v1/login/verify" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -d '{"code":538430}'
const url = new URL(
    "http://localhost/api/v1/login/verify"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

let body = {
    "code": 538430
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'http://localhost/api/v1/login/verify',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
        'json' => [
            'code' => 538430,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/login/verify'
payload = {
    "code": 538430
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):

{
    "msg": "عملیات موفق"
}

HTTP Request

POST api/v1/login/verify

Body Parameters

Parameter Type Status Description
code integer required The code sent to user mobile .

Register

ثبت نام کاربران جدید


Requires authentication

Example request:

curl -X POST \
    "http://localhost/api/v1/register" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -d '{"mobile":9150000000,"email":"test@gmail.com","password":"123456789","name":"reza","family":"karimi"}'
const url = new URL(
    "http://localhost/api/v1/register"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

let body = {
    "mobile": 9150000000,
    "email": "test@gmail.com",
    "password": "123456789",
    "name": "reza",
    "family": "karimi"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'http://localhost/api/v1/register',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
        'json' => [
            'mobile' => 9150000000,
            'email' => 'test@gmail.com',
            'password' => '123456789',
            'name' => 'reza',
            'family' => 'karimi',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/register'
payload = {
    "mobile": 9150000000,
    "email": "test@gmail.com",
    "password": "123456789",
    "name": "reza",
    "family": "karimi"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):

{
    "msg": "عملیات موفق",
    "data": {
        "token_type": "Bearer",
        "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhTUtYmM1OS02ZGQwMDc3NDAwNzciLCJqdGkiOiIyNmUzODA2NGIzMzU4ZDgzNTBiOTI1MjM1YmVhMjRmYzVhYjliMjM4NDk3MTc1ZTJkYjc3OTljNTVjODdiOWYwZTVjZjdjYjQ1N2RlYTM4NiIsImlhdCI6MTYyODE0MTMxNy45MzEwNTIsIm5iZiI6MTYyODE0MTMxNy45MzEwNTQsImV4cCI6MTY1OTY3NzMxNy45Mjk5MjQsInN1YiI6IjUwMDAwMjYiLCJzY29wZXMiOltdfQ.M9RK68e0wt5XKTot-88KpqPT9qXGpuoTWg20gE412sGflKtdiBpco4C1O66obG7lXJdmVbkvVULcnm3hrWmtQHOz7qwxx326IRnIsV3zutnUZm87BSok9J0P3M1KUL4QFnaKOab4K8JqYsiN2Xmk489FXo6ArN_daXSsxfr1PLFWvXqASwZB8nzp0RmVw53reMZBKQoG3GAAqlJr9QQyEQu3wxScA98yO2KTD40HdIn_CvQhKb5q3S5l54ZPTHt70YO7tOSrIaJXwjjsAiEFmNyjQsYrJmc_eD7R9_hvKhpn2tSJ67KdmpfAVwm2oYDyrugG20GncjKeHlHVb4GwspkAX3uXxp2vW-7TaT7LBtS2uPc1Atdi90v5Fsol9FWi_rJwhmqdKSgkpSmeOHlcdW8fINaLLBax-VQJ42959rpeFUzEj7TlFad22kSJJ2weQScjbmHIsUk9fXcGgup1lzgMmx9KZ831noouyPEXS-J1ALcN7XRQGK3JSrtSvYh-SXjbzNMTvV7vpeY9aTw8QL29PHxzq9iq3TvcDzBMe7ojeOLOwrsemUMdHXmvxQ0v7KR4dWflwZ2f6wjc-gGcYjPApHZhFA2vg0RDf9_u8j8F9W3liCXGcDLl0Ga2TNTFL3CtYo4DBTPzcVkRHgIc-MnOZZ8r06ifyxergGYP1xk"
    }
}

Example response (422):

{
    "msg": "The given data was invalid.",
    "errors": {
        "mobile": [
            "شماره همراه قبلا انتخاب شده است."
        ],
        "family": [
            "فیلد فامیل الزامی است."
        ]
    }
}

HTTP Request

POST api/v1/register

Body Parameters

Parameter Type Status Description
mobile integer required user mobile
email string required user email
password string required user password
name string required user firstName
family string required user family

Bank

Show Banks

نمایش لیست بانک ها


Requires authentication

Example request:

curl -X GET \
    -G "http://localhost/api/v1/banks/list" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}"
const url = new URL(
    "http://localhost/api/v1/banks/list"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://localhost/api/v1/banks/list',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/banks/list'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "msg": "عملیات موفق",
    "data": [
        {
            "name": "ملی",
            "id": 1
        },
        {
            "name": "ملت",
            "id": 2
        },
        {
            "name": "آینده",
            "id": 3
        },
        {
            "name": "سپه",
            "id": 4
        },
        {
            "name": "صنعت و معدن",
            "id": 5
        },
        {
            "name": "کشاورزی",
            "id": 6
        },
        {
            "name": "مسکن",
            "id": 7
        }
    ]
}

HTTP Request

GET api/v1/banks/list

Cards

Show User Bank Cards List

نمایش لیست کارت های بانکی کاربر


Requires authentication

Example request:

curl -X GET \
    -G "http://localhost/api/v1/cards/list" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}"
const url = new URL(
    "http://localhost/api/v1/cards/list"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://localhost/api/v1/cards/list',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/cards/list'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "msg": "عملیات موفق",
    "data": [
        {
            "bankName": "اقتصاد نوین",
            "Id": 12,
            "accountNumber": "654799",
            "accountShaba": "940550180180004650483001",
            "cartNumber": "6274121168777050",
            "status": "accepted",
            "inactiveDescription": null
        }
    ]
}

HTTP Request

GET api/v1/cards/list

Store User Bank Card

ذخیره کارت های بانکی کاربر


Requires authentication

Example request:

curl -X POST \
    "http://localhost/api/v1/cards/store" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
const url = new URL(
    "http://localhost/api/v1/cards/store"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'http://localhost/api/v1/cards/store',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/cards/store'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('POST', url, headers=headers)
response.json()

Example response (200):

{
    "msg": "عملیات موفق"
}

Example response (422):

{
    "message": "The given data was invalid.",
    "errors": {
        "accountShaba": [
            "شماره شبا باید 24 رقم باشد."
        ],
        "cartNumber": [
            "فیلد شماره کارت الزامی است."
        ],
        "accountNumber": [
            "فیلد شماره حساب الزامی است."
        ]
    }
}

Example response (400):

{
    "message": "کارت بانکی وارد شده معتبر نمی باشد"
}

HTTP Request

POST api/v1/cards/store

Body Parameters

Parameter Type Status Description
bankId integer required Bank id
accountShaba string required shaba number
cartNumber string required card number
accountNumber string required account number

Change Currency

store change currency request

ذخیره درخواست تبدیل ارز به ارز


Requires authentication

Example request:

curl -X POST \
    "http://localhost/api/v1/ChangeCurrency/store" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -d '{"firstCu":"BTC","desCu":"ETH","firstAmountNum":0.5,"desAmountNum":1,"changeWage":0.01}'
const url = new URL(
    "http://localhost/api/v1/ChangeCurrency/store"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

let body = {
    "firstCu": "BTC",
    "desCu": "ETH",
    "firstAmountNum": 0.5,
    "desAmountNum": 1,
    "changeWage": 0.01
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'http://localhost/api/v1/ChangeCurrency/store',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
        'json' => [
            'firstCu' => 'BTC',
            'desCu' => 'ETH',
            'firstAmountNum' => 0.5,
            'desAmountNum' => 1.0,
            'changeWage' => 0.01,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/ChangeCurrency/store'
payload = {
    "firstCu": "BTC",
    "desCu": "ETH",
    "firstAmountNum": 0.5,
    "desAmountNum": 1,
    "changeWage": 0.01
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):

{
    "msg": "عملیات موفق"
}

Example response (422):

{
    "message": "The given data was invalid.",
    "errors": {
        "firstCu": [
            "نماد ارز مبدا الزامی است"
        ],
        "desCu": [
            "نماد ارز مقصد الزامی است"
        ]
    }
}

HTTP Request

POST api/v1/ChangeCurrency/store

Body Parameters

Parameter Type Status Description
firstCu string required first currency symbol
desCu string required destination currency symbol
firstAmountNum float required first currency amount
desAmountNum float required destination currency amount
changeWage float required change currency wage

show user change currency list

نمایش لیست تبدیلات ارز به ارز کاربر


Requires authentication

Example request:

curl -X GET \
    -G "http://localhost/api/v1/ChangeCurrency/list" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}"
const url = new URL(
    "http://localhost/api/v1/ChangeCurrency/list"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://localhost/api/v1/ChangeCurrency/list',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/ChangeCurrency/list'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "msg": "عملیات موفق",
    "data": [
        {
            "src_cu": "BTC",
            "src_amount": 1,
            "des_cu": "DOGE",
            "des_amount": 200682.87345385,
            "total_amount": 200682.87345385,
            "created_at": "2021-09-22T11:04:14.000000Z"
        },
        {
            "src_cu": "ETH",
            "src_amount": 1,
            "des_cu": "DOGE",
            "des_amount": 10,
            "total_amount": 10,
            "created_at": "2021-09-22T11:12:29.000000Z"
        }
    ]
}

HTTP Request

GET api/v1/ChangeCurrency/list

Credit Transfer

store credit transfer

ذخیره درخواست انتقال اعتبار


Requires authentication

Example request:

curl -X POST \
    "http://localhost/api/v1/creditTransfer/save" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
const url = new URL(
    "http://localhost/api/v1/creditTransfer/save"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'http://localhost/api/v1/creditTransfer/save',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/creditTransfer/save'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('POST', url, headers=headers)
response.json()

Example response (422):

{
    "message": "The given data was invalid.",
    "errors": {
        "nationalCode": [
            "فیلد کد ملی الزامی است."
        ]
    }
}

HTTP Request

POST api/v1/creditTransfer/save

Body Parameters

Parameter Type Status Description
amount integer required amount for transfer
total_amount integer required total amount with commission deduction
nationalCode integer required recipient user national code
currency string required symbol of currency

show Credit Transfer list

نمایش لیست انتقال اعتبار کاربر


Requires authentication

Example request:

curl -X GET \
    -G "http://localhost/api/v1/creditTransfer/list" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}"
const url = new URL(
    "http://localhost/api/v1/creditTransfer/list"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://localhost/api/v1/creditTransfer/list',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/creditTransfer/list'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "data": [
        {
            "des_user_name": "سیروس گرجستانی",
            "amount": 5000000,
            "total_amount": 4950000,
            "currency": "rial",
            "created_at": "2021-09-22T06:50:25.000000Z"
        },
        {
            "des_user_name": "رضا کریمی",
            "amount": 2000,
            "total_amount": 1980,
            "currency": "DOGE",
            "created_at": "2021-09-22T06:57:34.000000Z"
        }
    ]
}

HTTP Request

GET api/v1/creditTransfer/list

show currency wallet balance

نمایش مقدار موجودی کیف پول ارزی


Requires authentication

Example request:

curl -X GET \
    -G "http://localhost/api/v1/creditTransfer/GetWalletAmount/2" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}"
const url = new URL(
    "http://localhost/api/v1/creditTransfer/GetWalletAmount/2"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://localhost/api/v1/creditTransfer/GetWalletAmount/2',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/creditTransfer/GetWalletAmount/2'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "msg": "عملیات موفق",
    "data": 746
}

HTTP Request

GET api/v1/creditTransfer/GetWalletAmount/{currency}

URL Parameters

Parameter Status Description
currency required symbol of the currency

Currency

show all currency list

نمایش لیست تمام ارز ها


Requires authentication

Example request:

curl -X GET \
    -G "http://localhost/api/v1/currencies/list" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}"
const url = new URL(
    "http://localhost/api/v1/currencies/list"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://localhost/api/v1/currencies/list',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/currencies/list'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "msg": "عملیات موفق",
    "data": [
        {
            "name": "بیت کوین",
            "id": 1,
            "symbol": "BTC",
            "icon": "http:\/\/test.com\/user\/images\/cards\/bitcoin.png"
        },
        {
            "name": "اتریوم",
            "id": 2,
            "symbol": "ETH",
            "icon": "http:\/\/test.com\/user\/images\/cards\/ethereum.png"
        },
        {
            "name": "تتر trc20",
            "id": 4,
            "symbol": "USDT",
            "icon": "http:\/\/test.com\/user\/images\/cards\/tether.png"
        },
        {
            "name": "دوج کوین",
            "id": 5,
            "symbol": "DOGE",
            "icon": "http:\/\/test.com\/user\/images\/cards\/dogecoin.png"
        }
    ]
}

HTTP Request

GET api/v1/currencies/list

show currency list for rial trade marketing

نمایش لیست ارزها برای بازار ریالی


Requires authentication

Example request:

curl -X GET \
    -G "http://localhost/api/v1/currencies/list/rial" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}"
const url = new URL(
    "http://localhost/api/v1/currencies/list/rial"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://localhost/api/v1/currencies/list/rial',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/currencies/list/rial'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "msg": "عملیات موفق",
    "data": [
        {
            "from": {
                "name": "ریال",
                "icon": "http:\/\/test.com\/user\/images\/cards\/iran.png",
                "symbol": "IRR"
            },
            "to": {
                "name": "بیت کوین",
                "icon": "http:\/\/test.com\/user\/images\/cards\/bitcoin.png",
                "symbol": "BTC",
                "saleWage": 0.3,
                "buyWage": 0.5,
                "min_sale_rial": null,
                "max_buy_rial": null
            }
        },
        {
            "from": {
                "name": "ریال",
                "icon": "http:\/\/test.com\/user\/images\/cards\/iran.png",
                "symbol": "IRR"
            },
            "to": {
                "name": "اتریوم",
                "icon": "http:\/\/test.com\/user\/images\/cards\/ethereum.png",
                "symbol": "ETH",
                "saleWage": 0.04,
                "buyWage": 1,
                "min_sale_rial": null,
                "max_buy_rial": null
            }
        },
        {
            "from": {
                "name": "ریال",
                "icon": "http:\/\/test.com\/user\/images\/cards\/iran.png",
                "symbol": "IRR"
            },
            "to": {
                "name": "تتر trc20",
                "icon": "http:\/\/test.com\/user\/images\/cards\/tether.png",
                "symbol": "USDT",
                "saleWage": 0,
                "buyWage": 0,
                "min_sale_rial": null,
                "max_buy_rial": null
            }
        }
    ]
}

HTTP Request

GET api/v1/currencies/list/rial

show currency list for usdt trade marketing

نمایش لیست ارزها برای بازار تتر


Requires authentication

Example request:

curl -X GET \
    -G "http://localhost/api/v1/currencies/list/usdt" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}"
const url = new URL(
    "http://localhost/api/v1/currencies/list/usdt"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://localhost/api/v1/currencies/list/usdt',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/currencies/list/usdt'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "msg": "عملیات موفق",
    "data": [
        {
            "from": {
                "name": "تتر",
                "icon": "http:\/\/test.com\/user\/images\/cards\/tether.png",
                "symbol": "USDT"
            },
            "to": {
                "name": "بیت کوین",
                "icon": "http:\/\/test.com\/user\/images\/cards\/bitcoin.png",
                "symbol": "BTC",
                "saleWage": 0.3,
                "buyWage": 0.5
            }
        },
        {
            "from": {
                "name": "تتر",
                "icon": "http:\/\/test.com\/user\/images\/cards\/tether.png",
                "symbol": "USDT"
            },
            "to": {
                "name": "اتریوم",
                "icon": "http:\/\/test.com\/user\/images\/cards\/ethereum.png",
                "symbol": "ETH",
                "saleWage": 0.04,
                "buyWage": 1
            }
        }
    ]
}

HTTP Request

GET api/v1/currencies/list/usdt

show currency list for multi trade marketing

نمایش لیست ارزها برای بازار جفت ارز


Requires authentication

Example request:

curl -X GET \
    -G "http://localhost/api/v1/currencies/list/multi" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}"
const url = new URL(
    "http://localhost/api/v1/currencies/list/multi"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://localhost/api/v1/currencies/list/multi',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/currencies/list/multi'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "msg": "عملیات موفق",
    "data": [
        {
            "from": {
                "name": "بیت کوین",
                "icon": "http:\/\/test.com\/user\/images\/cards\/bitcoin.png",
                "symbol": "BTC"
            },
            "to": {
                "name": "دوج کوین",
                "icon": "http:\/\/test.com\/user\/images\/cards\/dogecoin.png",
                "symbol": "DOGE",
                "saleWage": 1.2,
                "buyWage": 3.5
            }
        },
        {
            "from": {
                "name": "اتریوم",
                "icon": "http:\/\/test.com\/user\/images\/cards\/ethereum.png",
                "symbol": "ETH"
            },
            "to": {
                "name": "اوریجین پروتکل",
                "icon": "http:\/\/test.com\/user\/images\/cards\/ogn.png",
                "symbol": "OGN",
                "saleWage": 0,
                "buyWage": 0
            }
        }
    ]
}

HTTP Request

GET api/v1/currencies/list/multi

show Favorite Currencies

نمایش لیست ارز های مورد علاقه


Requires authentication

Example request:

curl -X GET \
    -G "http://localhost/api/v1/currencies/favorite" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}"
const url = new URL(
    "http://localhost/api/v1/currencies/favorite"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://localhost/api/v1/currencies/favorite',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/currencies/favorite'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "msg": "عملیات موفق",
    "data": {
        "bitcoin": {
            "name": "بیت کوین",
            "symbol": "BTC",
            "icon": "https:\/\/exsun.org\/user\/images\/cards\/bitcoin.png",
            "amount": 0
        },
        "ethereum": {
            "name": "اتریوم",
            "symbol": "ETH",
            "icon": "https:\/\/exsun.org\/user\/images\/cards\/ethereum.png",
            "amount": 0
        },
        "dogecoin": {
            "name": "دوج کوین",
            "symbol": "DOGE",
            "icon": "https:\/\/exsun.org\/user\/images\/cards\/dogecoin.png",
            "amount": 0
        }
    }
}

HTTP Request

GET api/v1/currencies/favorite

Deposit Profit

show Deposit Profit info

نمایش اطلاعات تکمیلی سود سپرده مانند متن توافق نامه


Requires authentication

Example request:

curl -X GET \
    -G "http://localhost/api/v1/interest/show" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}"
const url = new URL(
    "http://localhost/api/v1/interest/show"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://localhost/api/v1/interest/show',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/interest/show'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "msg": "عملیات موفق",
    "data": {
        "agreement": "متن توافق نامه سود سپرده"
    }
}

HTTP Request

GET api/v1/interest/show

store deposit profit request

ذخیره درخواست سود سپرده


Requires authentication

Example request:

curl -X POST \
    "http://localhost/api/v1/interest/store" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}"
const url = new URL(
    "http://localhost/api/v1/interest/store"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'http://localhost/api/v1/interest/store',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/interest/store'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('POST', url, headers=headers)
response.json()

Example response (200):

{
    "msg": "عملیات موفق"
}

HTTP Request

POST api/v1/interest/store

show user deposit profit

نمایش لیست سود سپرده کاربر


Requires authentication

Example request:

curl -X GET \
    -G "http://localhost/api/v1/interest/list" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}"
const url = new URL(
    "http://localhost/api/v1/interest/list"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://localhost/api/v1/interest/list',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/interest/list'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "msg": "عملیات موفق",
    "data": [
        {
            "status": "waiting",
            "checkout_date": "2021-10-22",
            "deposit": 100000,
            "chargePanel": 100000,
            "created_at": "2021-09-22T12:17:51.000000Z"
        }
    ]
}

HTTP Request

GET api/v1/interest/list

Foreign Wallet

Foreign Wallets List

لیست کیف پول های خارجی کاربر


Requires authentication

Example request:

curl -X GET \
    -G "http://localhost/api/v1/ForeignWallets/list" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -d '{"currency":"BTC or btc"}'
const url = new URL(
    "http://localhost/api/v1/ForeignWallets/list"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

let body = {
    "currency": "BTC or btc"
}

fetch(url, {
    method: "GET",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://localhost/api/v1/ForeignWallets/list',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
        'json' => [
            'currency' => 'BTC or btc',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/ForeignWallets/list'
payload = {
    "currency": "BTC or btc"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers, json=payload)
response.json()

Example response (200):

{
    "msg": "عملیات موفق",
    "data": [
        {
            "name": "کیف پول بیت",
            "address": "bc13598983493k39k35k3485"
        }
    ]
}

Example response (422):

{
    "msg": "The given data was invalid.",
    "errors": {
        "currency": [
            "نماد ارز را وارد نمایید"
        ]
    }
}

HTTP Request

GET api/v1/ForeignWallets/list

Body Parameters

Parameter Type Status Description
currency string required currency symbol .

Store Foreign Wallets

ذخیره کیف پول های خارجی کاربر


Requires authentication

Example request:

curl -X POST \
    "http://localhost/api/v1/ForeignWallets/store" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -d '{"symbol":"BTC or btc"}'
const url = new URL(
    "http://localhost/api/v1/ForeignWallets/store"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

let body = {
    "symbol": "BTC or btc"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'http://localhost/api/v1/ForeignWallets/store',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
        'json' => [
            'symbol' => 'BTC or btc',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/ForeignWallets/store'
payload = {
    "symbol": "BTC or btc"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):

{
    "msg": "عملیات موفق"
}

Example response (422):

{
    "msg": "The given data was invalid.",
    "errors": {
        "symbol": [
            "فیلد نماد ارز الزامی است"
        ],
        "name": [
            "فیلد نام الزامی است."
        ]
    }
}

HTTP Request

POST api/v1/ForeignWallets/store

Body Parameters

Parameter Type Status Description
symbol string required currency symbol .
name string required wallet name .
address string required wallet address .

Lever

show lever info

نمایش اطلاعات تکمیلی بخش اهرم (کارمزد ، زمان بازپرداخت و ...)


Requires authentication

Example request:

curl -X GET \
    -G "http://localhost/api/v1/lever/show" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}"
const url = new URL(
    "http://localhost/api/v1/lever/show"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://localhost/api/v1/lever/show',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/lever/show'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "msg": "عملیات موفق",
    "data": {
        "agreement": {
            "lever_agreement": "متن توافق نامه بخش اهرم"
        },
        "lever": {
            "incrementCurrencyPersent": 10,
            "timeOfPay": 30,
            "incrementComision": 0.5,
            "profit": 10,
            "lateFees": 2.5,
            "currencies": [
                2,
                8,
                14
            ]
        }
    }
}

HTTP Request

GET api/v1/lever/show

store user lever request

ذخیره درخواست اهرم کاربر


Requires authentication

Example request:

curl -X POST \
    "http://localhost/api/v1/lever/save" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -d '{"rialAmount":7,"LoanAmount":2,"profitAmount":18}'
const url = new URL(
    "http://localhost/api/v1/lever/save"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

let body = {
    "rialAmount": 7,
    "LoanAmount": 2,
    "profitAmount": 18
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'http://localhost/api/v1/lever/save',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
        'json' => [
            'rialAmount' => 7,
            'LoanAmount' => 2,
            'profitAmount' => 18,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/lever/save'
payload = {
    "rialAmount": 7,
    "LoanAmount": 2,
    "profitAmount": 18
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):

{
    "msg": "عملیات موفق"
}

Example response (400):

{
    "msg": "کاربر گرامی به دلیل موجود بودن یک وام فعال برای شما در سیستم تا زمان تسویه حساب کامل آن امکان ثبت وام جدید وجود ندارد"
}

Example response (422):

{
    "message": "The given data was invalid.",
    "errors": {
        "rialAmount": [
            "فیلد موجودی ریالی الزامی است"
        ],
        "currencies": [
            "فیلد ارزها الزامی است."
        ],
        "LoanAmount": [
            "فیلد مبلغ وام الزامی است."
        ],
        "profitAmount": [
            "فیلد مبلغ سود وام الزامی است."
        ]
    }
}

HTTP Request

POST api/v1/lever/save

Body Parameters

Parameter Type Status Description
rialAmount integer required user rial balance wallet
LoanAmount integer required loan amount of lever
profitAmount integer required profit amount of lever

show user levers

نمایش لیست درخواست های اهرم کاربر


Requires authentication

Example request:

curl -X GET \
    -G "http://localhost/api/v1/lever/list" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}"
const url = new URL(
    "http://localhost/api/v1/lever/list"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://localhost/api/v1/lever/list',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/lever/list'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "msg": "عملیات موفق",
    "data": [
        {
            "id": 3,
            "lever_code": 62353869,
            "accept_date": null,
            "status": "waiting",
            "loan_amount": 1200000,
            "repayment_date": "2021-10-22",
            "repayment_amount": 1250000,
            "currencies": [
                2,
                8,
                14
            ],
            "created_at": "2021-09-22T08:53:55.000000Z",
            "rial_balance": 1000000
        },
        {
            "id": 12,
            "lever_code": 83395414,
            "accept_date": null,
            "status": "rejected",
            "loan_amount": 1200000,
            "repayment_date": "2021-05-22",
            "repayment_amount": 1250000,
            "currencies": [
                7,
                8,
                10,
                18
            ],
            "created_at": "2021-09-22T08:51:36.000000Z",
            "rial_balance": 25620000
        }
    ]
}

HTTP Request

GET api/v1/lever/list

checkout user lever

تسویه یک درخواست اهرم


Requires authentication

Example request:

curl -X GET \
    -G "http://localhost/api/v1/lever/checkout/12" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}"
const url = new URL(
    "http://localhost/api/v1/lever/checkout/12"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://localhost/api/v1/lever/checkout/12',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/lever/checkout/12'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "msg": "عملیات موفق"
}

HTTP Request

GET api/v1/lever/checkout/{id}

URL Parameters

Parameter Status Description
id required lever id

Marketing

show trade marketing list

نمایش لیست مبادلات بازار ها به تفکیک هر بازار


Requires authentication

Example request:

curl -X GET \
    -G "http://localhost/api/v1/marketing/list" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -d '{"type":"usdt","src":"btc","des":"trx"}'
const url = new URL(
    "http://localhost/api/v1/marketing/list"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

let body = {
    "type": "usdt",
    "src": "btc",
    "des": "trx"
}

fetch(url, {
    method: "GET",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://localhost/api/v1/marketing/list',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
        'json' => [
            'type' => 'usdt',
            'src' => 'btc',
            'des' => 'trx',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/marketing/list'
payload = {
    "type": "usdt",
    "src": "btc",
    "des": "trx"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers, json=payload)
response.json()

Example response (200):

{
    "msg": "عملیات موفق",
    "data": {
        "sale": [
            {
                "srcCurrency": 2,
                "desCurrency": 15,
                "pure": 14.991
            }
        ],
        "buy": [
            {
                "srcCurrency": 1,
                "desCurrency": 50,
                "pure": 0.955
            }
        ]
    }
}

HTTP Request

GET api/v1/marketing/list

Body Parameters

Parameter Type Status Description
type string required Specifies the type of market (rial or usdt or multi)
src string required Specifies the type of currency for the usdt markets or multi market
des string required Specifies the type of currency for the usdt markets or multi market

store rial trade market

ذخیره درخواست معاملات بازار ریالی


Requires authentication

Example request:

curl -X POST \
    "http://localhost/api/v1/marketing/rial/save" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -d '{"currency_symbol":"btc","type":"buy","proposed_price":2350000,"currency_amount":3.78,"total_amount":8883000,"total_pure_amount":8653000,"pure_amount":3.54}'
const url = new URL(
    "http://localhost/api/v1/marketing/rial/save"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

let body = {
    "currency_symbol": "btc",
    "type": "buy",
    "proposed_price": 2350000,
    "currency_amount": 3.78,
    "total_amount": 8883000,
    "total_pure_amount": 8653000,
    "pure_amount": 3.54
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'http://localhost/api/v1/marketing/rial/save',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
        'json' => [
            'currency_symbol' => 'btc',
            'type' => 'buy',
            'proposed_price' => 2350000.0,
            'currency_amount' => 3.78,
            'total_amount' => 8883000.0,
            'total_pure_amount' => 8653000.0,
            'pure_amount' => 3.54,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/marketing/rial/save'
payload = {
    "currency_symbol": "btc",
    "type": "buy",
    "proposed_price": 2350000,
    "currency_amount": 3.78,
    "total_amount": 8883000,
    "total_pure_amount": 8653000,
    "pure_amount": 3.54
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):

{
    "msg": "عملیات موفق"
}

Example response (422):

{
    "message": "The given data was invalid.",
    "errors": {
        "type": [
            "فیلد نوع الزامی است."
        ],
        "proposed_price": [
            "فیلد قیمت پیشنهادی الزامی است."
        ]
    }
}

HTTP Request

POST api/v1/marketing/rial/save

Body Parameters

Parameter Type Status Description
currency_symbol string required currency symbol (btc or BTC)
type string required type of trade market (buy or sale)
proposed_price float required proposed price
currency_amount float required currency amount
total_amount float required total amount of trade
total_pure_amount float required total amount with commission deduction for buy type
pure_amount float required pure amount of curreny with commission deduction for sale type

store pro trade market

ذخیره درخواست معاملاتی بازار مارکت ریالی


Requires authentication

Example request:

curl -X POST \
    "http://localhost/api/v1/marketing/rial/pro/save" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -d '{"type":"buy","from":"market","market":"rial","des_currency":"btc","user_currency":"1400","proposed_price":2358000,"currency_amount":1}'
const url = new URL(
    "http://localhost/api/v1/marketing/rial/pro/save"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

let body = {
    "type": "buy",
    "from": "market",
    "market": "rial",
    "des_currency": "btc",
    "user_currency": "1400",
    "proposed_price": 2358000,
    "currency_amount": 1
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'http://localhost/api/v1/marketing/rial/pro/save',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
        'json' => [
            'type' => 'buy',
            'from' => 'market',
            'market' => 'rial',
            'des_currency' => 'btc',
            'user_currency' => '1400',
            'proposed_price' => 2358000,
            'currency_amount' => 1,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/marketing/rial/pro/save'
payload = {
    "type": "buy",
    "from": "market",
    "market": "rial",
    "des_currency": "btc",
    "user_currency": "1400",
    "proposed_price": 2358000,
    "currency_amount": 1
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):

{
    "msg": "عملیات موفق"
}

Example response (422):

{
    "message": "The given data was invalid.",
    "errors": {
        "type": [
            "فیلد نوع الزامی است."
        ]
    }
}

HTTP Request

POST api/v1/marketing/rial/pro/save

Body Parameters

Parameter Type Status Description
type string required type of trade market (buy or sale)
from string required Market type of transaction (defualt is market)
market string required Market type (rial or tether )
des_currency string required currency symbol for sale or buy (1400 or btc )
user_currency string required currency symbol for sale or buy (1400 or btc )
proposed_price integer required proposed price
currency_amount integer required currency amount

store stop-limit trade market

ذخیره درخواست معاملاتی حد سود و ضرر بازار ریالی


Requires authentication

Example request:

curl -X POST \
    "http://localhost/api/v1/marketing/rial/stop-limit/save" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -d '{"type":"buy","from":"basket","market":"rial","des_currency":"btc","user_currency":"rial","proposed_price":2358000,"currency_amount":1}'
const url = new URL(
    "http://localhost/api/v1/marketing/rial/stop-limit/save"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

let body = {
    "type": "buy",
    "from": "basket",
    "market": "rial",
    "des_currency": "btc",
    "user_currency": "rial",
    "proposed_price": 2358000,
    "currency_amount": 1
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'http://localhost/api/v1/marketing/rial/stop-limit/save',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
        'json' => [
            'type' => 'buy',
            'from' => 'basket',
            'market' => 'rial',
            'des_currency' => 'btc',
            'user_currency' => 'rial',
            'proposed_price' => 2358000,
            'currency_amount' => 1,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/marketing/rial/stop-limit/save'
payload = {
    "type": "buy",
    "from": "basket",
    "market": "rial",
    "des_currency": "btc",
    "user_currency": "rial",
    "proposed_price": 2358000,
    "currency_amount": 1
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):

{
    "msg": "عملیات موفق"
}

Example response (422):

{
    "message": "The given data was invalid.",
    "errors": {
        "type": [
            "فیلد نوع الزامی است."
        ]
    }
}

HTTP Request

POST api/v1/marketing/rial/stop-limit/save

Body Parameters

Parameter Type Status Description
type string required type of trade market (buy or sale)
from string required Market type of transaction (defualt is basket)
market string required Market type (rial or tether )
des_currency string required currency symbol for sale or buy (rial or btc )
user_currency string required currency symbol for sale or buy (rial or btc )
proposed_price integer required proposed price
currency_amount integer required currency amount
stop_price integer required stop price

store usdt trade market

ذخیره درخواست معاملاتی بازار تتر


Requires authentication

Example request:

curl -X POST \
    "http://localhost/api/v1/marketing/usdt/save" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -d '{"currency_symbol":"btc","type":"buy","currency_amount":0}'
const url = new URL(
    "http://localhost/api/v1/marketing/usdt/save"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

let body = {
    "currency_symbol": "btc",
    "type": "buy",
    "currency_amount": 0
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'http://localhost/api/v1/marketing/usdt/save',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
        'json' => [
            'currency_symbol' => 'btc',
            'type' => 'buy',
            'currency_amount' => 0,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/marketing/usdt/save'
payload = {
    "currency_symbol": "btc",
    "type": "buy",
    "currency_amount": 0
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):

{
    "msg": "عملیات موفق"
}

Example response (422):

{
    "message": "The given data was invalid.",
    "errors": {
        "currency_symbol": [
            "فیلد نماد ارز الزامی است."
        ],
        "type": [
            "فیلد نوع الزامی است."
        ]
    }
}

HTTP Request

POST api/v1/marketing/usdt/save

Body Parameters

Parameter Type Status Description
currency_symbol string required currency symbol
type string required type of trade (buy or sale)
proposed_price integer required price or amount of usdt
currency_amount integer required amount of currency
total_amount float required total amount
pure_amount float required Amount with deduction of Wage

store multi trade market

ذخیره درخواست معاملات بازار جفت ارز


Requires authentication

Example request:

curl -X POST \
    "http://localhost/api/v1/marketing/multi/save" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -d '{"srcCurrency_symbol":"btc","desCurrency_symbol":"trx","srcCurrency":0,"desCurrency":0,"type":"buy"}'
const url = new URL(
    "http://localhost/api/v1/marketing/multi/save"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

let body = {
    "srcCurrency_symbol": "btc",
    "desCurrency_symbol": "trx",
    "srcCurrency": 0,
    "desCurrency": 0,
    "type": "buy"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'http://localhost/api/v1/marketing/multi/save',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
        'json' => [
            'srcCurrency_symbol' => 'btc',
            'desCurrency_symbol' => 'trx',
            'srcCurrency' => 0,
            'desCurrency' => 0,
            'type' => 'buy',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/marketing/multi/save'
payload = {
    "srcCurrency_symbol": "btc",
    "desCurrency_symbol": "trx",
    "srcCurrency": 0,
    "desCurrency": 0,
    "type": "buy"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):

{
    "msg": "عملیات موفق"
}

Example response (422):

{
    "message": "The given data was invalid.",
    "errors": {
        "type": [
            "فیلد نوع الزامی است."
        ],
        "pure": [
            "فیلد مقدار ارز با کسر کارمزد الزامی است."
        ]
    }
}

HTTP Request

POST api/v1/marketing/multi/save

Body Parameters

Parameter Type Status Description
srcCurrency_symbol string required symbol of source currency (btc or eth)
desCurrency_symbol string required symbol of destination currency
srcCurrency integer required amount of source currency
desCurrency integer required amount of source currency
pure float required amount of desCurrency or srcCurrency with wage deduction
type string required type of trade (buy or sale)

Notification

show user notifications

نمایش تمامی اعلان های کاربر


Requires authentication

Example request:

curl -X GET \
    -G "http://localhost/api/v1/notification/list" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}"
const url = new URL(
    "http://localhost/api/v1/notification/list"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://localhost/api/v1/notification/list',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/notification/list'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "msg": "عملیات موفق",
    "data": [
        {
            "id": 3,
            "title": "تست یک",
            "description": "تست یک است",
            "created_at": "2021-09-25T05:59:55.000000Z"
        },
        {
            "id": 5,
            "title": "اعلان 2",
            "description": "اعلان 2",
            "created_at": "2021-09-25T06:09:34.000000Z"
        }
    ]
}

HTTP Request

GET api/v1/notification/list

show single notification details

نمایش اطلاعات یک اعلان


Requires authentication

Example request:

curl -X GET \
    -G "http://localhost/api/v1/notification/show/qui" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}"
const url = new URL(
    "http://localhost/api/v1/notification/show/qui"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://localhost/api/v1/notification/show/qui',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/notification/show/qui'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "msg": "عملیات موفق",
    "data": {
        "id": 5,
        "title": "اعلان 2",
        "description": "اعلان 2",
        "created_at": "2021-09-25T06:09:34.000000Z"
    }
}

Example response (400):

{
    "msg": "اعلان مورد نظر بسته شده است و امکان نمایش وجود ندارد "
}

Example response (404):

{
    "msg": "موردی یافت نشد"
}

HTTP Request

GET api/v1/notification/show/{id}

URL Parameters

Parameter Status Description
id required The ID of the notification

Orders

Show OnGoing Orders List

نمایش لیست سفارشات در حال انجام کاربر


Requires authentication

Example request:

curl -X GET \
    -G "http://localhost/api/v1/orders/list/ongoingorders" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}"
const url = new URL(
    "http://localhost/api/v1/orders/list/ongoingorders"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://localhost/api/v1/orders/list/ongoingorders',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/orders/list/ongoingorders'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "msg": "عملیات موفق",
    "data": [
        {
            "id": 21,
            "type": "sale",
            "currency_amount": 0.001,
            "total_amount": 1200000,
            "currency_name": "بیت کوین",
            "currency_symbol": "BTC",
            "proposed_price": 1200000000,
            "pure_amount": null,
            "total_pure_amount": 1196400,
            "tracking_code": 48911569,
            "created_at": "2021-09-06T07:27:10.000000Z",
            "order_type": "rial"
        },
        {
            "id": 33,
            "type": "buy",
            "currency_amount": 500,
            "total_amount": 7500000,
            "currency_name": "بیت کوین کش",
            "currency_symbol": "BCH",
            "proposed_price": 15000,
            "pure_amount": 496,
            "total_pure_amount": null,
            "tracking_code": 74126827,
            "created_at": "2021-09-06T09:07:24.000000Z",
            "order_type": "rial"
        },
        {
            "id": 34,
            "type": "sale",
            "currency_amount": 500000,
            "total_amount": 7000000000,
            "currency_name": "بیت کوین کش",
            "currency_symbol": "BCH",
            "proposed_price": 14000,
            "pure_amount": null,
            "total_pure_amount": 6937000000,
            "tracking_code": 92569937,
            "created_at": "2021-09-06T09:07:43.000000Z",
            "order_type": "rial"
        }
    ]
}

HTTP Request

GET api/v1/orders/list/ongoingorders

Cancel OnGoing Orders

لغو سفارشات در حال انجام


Requires authentication

Example request:

curl -X POST \
    "http://localhost/api/v1/orders/cancel" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -d '{"type":"usdt","order_id":12}'
const url = new URL(
    "http://localhost/api/v1/orders/cancel"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

let body = {
    "type": "usdt",
    "order_id": 12
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'http://localhost/api/v1/orders/cancel',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
        'json' => [
            'type' => 'usdt',
            'order_id' => 12,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/orders/cancel'
payload = {
    "type": "usdt",
    "order_id": 12
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):

{
    "msg": "عملیات موفق"
}

Example response (404):

{
    "msg": "موردی یافت نشد"
}

HTTP Request

POST api/v1/orders/cancel

Body Parameters

Parameter Type Status Description
type string required type of Trading Market (rial or usdt or multi)
order_id integer required Trading Market order id

Store Immediate Orders

ذخیزه سفارش فوری


Requires authentication

Example request:

curl -X POST \
    "http://localhost/api/v1/orders/ImmediateOrder/save" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -d '{"type":"buy","currency_id":12,"currency_price":4000000,"currency_amount":1}'
const url = new URL(
    "http://localhost/api/v1/orders/ImmediateOrder/save"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

let body = {
    "type": "buy",
    "currency_id": 12,
    "currency_price": 4000000,
    "currency_amount": 1
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'http://localhost/api/v1/orders/ImmediateOrder/save',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
        'json' => [
            'type' => 'buy',
            'currency_id' => 12,
            'currency_price' => 4000000,
            'currency_amount' => 1,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/orders/ImmediateOrder/save'
payload = {
    "type": "buy",
    "currency_id": 12,
    "currency_price": 4000000,
    "currency_amount": 1
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):

{
    "msg": "عملیات موفق"
}

Example response (400):

{
    "msg": "کاربر گرامی به دلیل فعال بودن یک وام برای شما در سامانه امکان ثبت درخواست فوری وجود ندارد ."
}

Example response (422):

{
    "message": "The given data was invalid.",
    "errors": {
        "type": [
            "فیلد نوع الزامی است."
        ],
        "currency_id": [
            "فیلد شناسه ارز الزامی است."
        ]
    }
}

HTTP Request

POST api/v1/orders/ImmediateOrder/save

Body Parameters

Parameter Type Status Description
type string required type of Immediate Orders (buy or sale)
currency_id integer required currency id
currency_price integer required price of Immediate Orders
currency_amount integer required amount of currency

Profile

show user profile

نمایش اطلاعات پروفاایل کاربر


Requires authentication

Example request:

curl -X GET \
    -G "http://localhost/api/v1/profile/show" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}"
const url = new URL(
    "http://localhost/api/v1/profile/show"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://localhost/api/v1/profile/show',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/profile/show'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "msg": "عملیات موفق",
    "data": {
        "id": 50000030,
        "avatar": "https:\/\/test.com\/storage\/uploadFiles\/users\/avatar\/AVLPuaDbB.png",
        "status": "confirm",
        "name": "سیروس",
        "family": "گرجستانی",
        "mobile": "09900000000",
        "address": "ایران تهران",
        "tel": "02100000",
        "city": {
            "id": 153,
            "stateId": 11,
            "name": "تهران",
            "created_at": null,
            "updated_at": null
        },
        "state": {
            "id": 11,
            "name": "تهران",
            "countryId": 118,
            "created_at": null,
            "updated_at": null
        }
    }
}

HTTP Request

GET api/v1/profile/show

update user profile data

بروزرسانی پروفایل کاربر


Requires authentication

Example request:

curl -X POST \
    "http://localhost/api/v1/profile/update" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -d '{"tel":"02100000","city_id":15,"state_id":118}'
const url = new URL(
    "http://localhost/api/v1/profile/update"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

let body = {
    "tel": "02100000",
    "city_id": 15,
    "state_id": 118
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'http://localhost/api/v1/profile/update',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
        'json' => [
            'tel' => '02100000',
            'city_id' => 15,
            'state_id' => 118,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/profile/update'
payload = {
    "tel": "02100000",
    "city_id": 15,
    "state_id": 118
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):

{
    "msg": "عملیات موفق"
}

Example response (422):

{
    "message": "The given data was invalid.",
    "errors": {
        "state_id": [
            "فیلد شناسه استان الزامی است."
        ]
    }
}

HTTP Request

POST api/v1/profile/update

Body Parameters

Parameter Type Status Description
tel string optional user tel
address string required user address
city_id integer required city id
state_id integer required state id

Reports

show Rial Withdraw requests

نمایش درخواست تسویه ریالی


Requires authentication

Example request:

curl -X GET \
    -G "http://localhost/api/v1/report/RialWithdraw" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}"
const url = new URL(
    "http://localhost/api/v1/report/RialWithdraw"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://localhost/api/v1/report/RialWithdraw',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/report/RialWithdraw'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "msg": "عملیات موفق",
    "data": [
        {
            "from": {
                "symbol": "IRR",
                "name": "ریال",
                "icon": "https:\/\/test.com\/user\/images\/cards\/iran.png"
            },
            "to": {
                "amount": 18000,
                "status": "pending",
                "vandarTrackingId": null,
                "idPayTrackingId": null,
                "msg": null,
                "adminFiledId": null
            },
            "created_at": "2021-09-06T11:23:40.000000Z",
            "tracking_code": "47542400",
            "type": "withdraw"
        },
        {
            "from": {
                "symbol": "IRR",
                "name": "ریال",
                "icon": "https:\/\/test.com\/user\/images\/cards\/iran.png"
            },
            "to": {
                "amount": 2000000,
                "status": "pending",
                "vandarTrackingId": null,
                "idPayTrackingId": null,
                "msg": null,
                "adminFiledId": null
            },
            "created_at": "2021-09-14T15:39:28.000000Z",
            "tracking_code": "36641799",
            "type": "withdraw"
        }
    ]
}

HTTP Request

GET api/v1/report/RialWithdraw

show Immediate Orders list

نمایش گزارش سفارشات فوری


Requires authentication

Example request:

curl -X GET \
    -G "http://localhost/api/v1/report/ImmediateOrders" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}"
const url = new URL(
    "http://localhost/api/v1/report/ImmediateOrders"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://localhost/api/v1/report/ImmediateOrders',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/report/ImmediateOrders'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "msg": "عملیات موفق",
    "data": [
        {
            "from": {
                "symbol": "IRR",
                "name": "ریال",
                "icon": "https:\/\/test.com\/user\/images\/cards\/iran.png"
            },
            "to": {
                "symbol": "XLM",
                "name": "استلار",
                "icon": "https:\/\/test.com\/user\/images\/cards\/xlm.png",
                "currency_amount": 10
            },
            "created_at": "2021-09-06T05:11:35.000000Z",
            "currency_price": 113956,
            "tracking_code": "202983",
            "type": "buy"
        }
    ]
}

HTTP Request

GET api/v1/report/ImmediateOrders

show currency settlement requests

نمایش لیست درخواست های تسویه ارزی


Requires authentication

Example request:

curl -X GET \
    -G "http://localhost/api/v1/report/CurrencySettlement" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}"
const url = new URL(
    "http://localhost/api/v1/report/CurrencySettlement"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://localhost/api/v1/report/CurrencySettlement',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/report/CurrencySettlement'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "msg": "عملیات موفق",
    "data": [
        {
            "currency_name": "بیت کوین",
            "currency_icon": "https:\/\/test.com\/user\/images\/cards\/bitcoin.png",
            "currency_symbol": "BTC",
            "status": "Seen",
            "reject_message": null,
            "src_wallet": "4",
            "des_wallet": "0x65464555555",
            "amount": 0.5,
            "tag": null,
            "tracking_code": "344520645",
            "created_at": "2021-09-19T10:49:19.000000Z"
        },
        {
            "currency_name": "استلار",
            "currency_icon": "https:\/\/test.com\/user\/images\/cards\/xlm.png",
            "currency_symbol": "XLM",
            "status": "notSeen",
            "reject_message": null,
            "src_wallet": "4",
            "des_wallet": "0x65464555555",
            "amount": 1.8,
            "tag": null,
            "tracking_code": "89239987",
            "created_at": "2021-09-19T10:55:57.000000Z"
        }
    ]
}

HTTP Request

GET api/v1/report/CurrencySettlement

show user rial trade marketing

نمایش لیست معاملات ثبت شده بازار ریالی


Requires authentication

Example request:

curl -X GET \
    -G "http://localhost/api/v1/report/rialMarketingReport" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}"
const url = new URL(
    "http://localhost/api/v1/report/rialMarketingReport"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://localhost/api/v1/report/rialMarketingReport',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/report/rialMarketingReport'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "msg": "عملیات موفق",
    "data": [
        {
            "from": {
                "symbol": "IRR",
                "name": "ریال",
                "icon": "https:\/\/test.com\/user\/images\/cards\/iran.png"
            },
            "to": {
                "symbol": "BTC",
                "name": "بیت کوین",
                "icon": "https:\/\/test.com\/user\/images\/cards\/bitcoin.png",
                "pure_amount": null,
                "total_pure_amount": 697900,
                "total_amount": 700000,
                "currency_amount": 0.05
            },
            "created_at": "2021-09-06T07:25:09.000000Z",
            "tracking_code": 30090914,
            "type": "sale"
        },
        {
            "from": {
                "symbol": "IRR",
                "name": "ریال",
                "icon": "https:\/\/test.com\/user\/images\/cards\/iran.png"
            },
            "to": {
                "symbol": "BTC",
                "name": "دوج کوین",
                "icon": "https:\/\/test.com\/user\/images\/cards\/doge.png",
                "pure_amount": 20,
                "total_pure_amount": null,
                "total_amount": 9220,
                "currency_amount": 26
            },
            "created_at": "2021-09-06T05:15:02.000000Z",
            "tracking_code": 71530140,
            "type": "buy"
        }
    ]
}

HTTP Request

GET api/v1/report/rialMarketingReport

show user multi trade marketing

نمایش معاملات ثبت شده بازار جفت ارز


Requires authentication

Example request:

curl -X GET \
    -G "http://localhost/api/v1/report/MultiMarketingReport" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}"
const url = new URL(
    "http://localhost/api/v1/report/MultiMarketingReport"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://localhost/api/v1/report/MultiMarketingReport',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/report/MultiMarketingReport'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "msg": "عملیات موفق",
    "data": [
        {
            "from": {
                "symbol": "BTC",
                "name": "بیت کوین",
                "icon": "https:\/\/test.com\/user\/images\/cards\/bitcoin.png",
                "currency": 20,
                "pure_currency": null
            },
            "to": {
                "symbol": "DOGE",
                "name": "دوج کوین",
                "icon": "https:\/\/test.com\/user\/images\/cards\/doge.png",
                "currency": 15,
                "pure_currency": 15
            },
            "created_at": "2021-09-20T11:24:06.000000Z",
            "tracking_code": 89206859,
            "type": "sale"
        }
    ]
}

HTTP Request

GET api/v1/report/MultiMarketingReport

show user usdt trade marketing

نمایش معاملات ثبت شده بازار تتر


Requires authentication

Example request:

curl -X GET \
    -G "http://localhost/api/v1/report/usdtTronMarketingReport" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}"
const url = new URL(
    "http://localhost/api/v1/report/usdtTronMarketingReport"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://localhost/api/v1/report/usdtTronMarketingReport',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/report/usdtTronMarketingReport'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "msg": "عملیات موفق",
    "data": [
        {
            "from": {
                "symbol": "USDT",
                "name": "تتر",
                "icon": "https:\/\/test.com\/user\/images\/cards\/tether.png"
            },
            "to": {
                "symbol": "ADA",
                "name": "کاردانو",
                "icon": "https:\/\/test.com\/user\/images\/cards\/ada.png",
                "pure_amount": 0.995,
                "total_pure_amount": null,
                "total_amount": 10,
                "currency_amount": 10
            },
            "created_at": "2021-09-06T07:39:44.000000Z",
            "tracking_code": 14819263,
            "type": "buy"
        }
    ]
}

HTTP Request

GET api/v1/report/usdtTronMarketingReport

Settlement

Store Rial Settlement

ذخیره درخواست تسویه ریالی


Requires authentication

Example request:

curl -X POST \
    "http://localhost/api/v1/settlements/rial/store" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -d '{"amount":200000}'
const url = new URL(
    "http://localhost/api/v1/settlements/rial/store"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

let body = {
    "amount": 200000
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'http://localhost/api/v1/settlements/rial/store',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
        'json' => [
            'amount' => 200000.0,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/settlements/rial/store'
payload = {
    "amount": 200000
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):

{
    "msg": "عملیات موفق"
}

Example response (422):

{
    "msg": "The given data was invalid.",
    "errors": {
        "amount": [
            "فیلد مبلغ ریالی الزامی است"
        ],
        "shaba": [
            "فیلد شماره شبا الزامی است."
        ]
    }
}

Example response (400):

{
    "msg": "مبلغ درخواستی بیشتر از موجودی می باشد!"
}

HTTP Request

POST api/v1/settlements/rial/store

Body Parameters

Parameter Type Status Description
shaba string required user shaba number
amount float required amount of rial settlement

Show Rial Settlement List

نمایش لیست درخواست های تسویه ریالی


Requires authentication

Example request:

curl -X GET \
    -G "http://localhost/api/v1/settlements/rial/list" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}"
const url = new URL(
    "http://localhost/api/v1/settlements/rial/list"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://localhost/api/v1/settlements/rial/list',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/settlements/rial/list'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "msg": "عملیات موفق",
    "data": [
        {
            "amount": 18000,
            "accountShaba": "IR6233122287776050",
            "status": "pending",
            "trackingId": "47542400",
            "vandarTrackingId": null,
            "idPayTrackingId": null,
            "msg": null,
            "created_at": "2021-09-06T11:23:40.000000Z"
        },
        {
            "amount": 2000000,
            "accountShaba": "IR6233122287776050",
            "status": "pending",
            "trackingId": "36641799",
            "vandarTrackingId": null,
            "idPayTrackingId": null,
            "msg": null,
            "created_at": "2021-09-14T15:39:28.000000Z"
        }
    ]
}

HTTP Request

GET api/v1/settlements/rial/list

Store currency Settlement

ذخیره درخواست تسویه های ارزی


Requires authentication

Example request:

curl -X POST \
    "http://localhost/api/v1/settlements/currency/store" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -d '{"des_wallet":"bc19s0fs98fs98fs98fs9f8sdf","amount":1.5,"currency":"xlm","tag":"ducimus"}'
const url = new URL(
    "http://localhost/api/v1/settlements/currency/store"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

let body = {
    "des_wallet": "bc19s0fs98fs98fs98fs9f8sdf",
    "amount": 1.5,
    "currency": "xlm",
    "tag": "ducimus"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'http://localhost/api/v1/settlements/currency/store',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
        'json' => [
            'des_wallet' => 'bc19s0fs98fs98fs98fs9f8sdf',
            'amount' => 1.5,
            'currency' => 'xlm',
            'tag' => 'ducimus',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/settlements/currency/store'
payload = {
    "des_wallet": "bc19s0fs98fs98fs98fs9f8sdf",
    "amount": 1.5,
    "currency": "xlm",
    "tag": "ducimus"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):

{
    "msg": "عملیات موفق"
}

Example response (422):

{
    "msg": "The given data was invalid.",
    "errors": {
        "currency": [
            "فیلد نماد ارز الزامی است"
        ],
        "des_wallet": [
            "فیلد آدرس کیف پول مقصد الزامی است."
        ]
    }
}

HTTP Request

POST api/v1/settlements/currency/store

Body Parameters

Parameter Type Status Description
des_wallet string required Foreign wallet address
amount float required settlement amount
currency string required currency symbol
tag string optional foreign wallet tag

Show currency Settlement List

نمایش لیست درخواست های تسویه ارزی


Requires authentication

Example request:

curl -X GET \
    -G "http://localhost/api/v1/settlements/currency/list/BTC" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}"
const url = new URL(
    "http://localhost/api/v1/settlements/currency/list/BTC"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://localhost/api/v1/settlements/currency/list/BTC',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/settlements/currency/list/BTC'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "msg": "عملیات موفق",
    "data": [
        {
            "status": "notSeen",
            "reject_message": null,
            "des_wallet": "bc19s0fs98fs98fs98fs9f8sdf",
            "amount": 0.5,
            "tag": null,
            "tracking_code": "344520645",
            "created_at": "2021-09-19T10:49:19.000000Z"
        }
    ]
}

HTTP Request

GET api/v1/settlements/currency/list/{symbol}

URL Parameters

Parameter Status Description
symbol required symbol of the currency

Ticket

show user ticket list

نمایش لیست تیکت های کاربر


Requires authentication

Example request:

curl -X GET \
    -G "http://localhost/api/v1/tickets/list" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}"
const url = new URL(
    "http://localhost/api/v1/tickets/list"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://localhost/api/v1/tickets/list',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/tickets/list'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "msg": "عملیات موفق",
    "data": [
        {
            "id": 78563,
            "title": "پیگیری پرداخت من",
            "status": "open",
            "created_at": "2021-09-08T07:51:21.000000Z"
        },
        {
            "id": 78562,
            "title": "فعال سازی کاربری من",
            "status": "close",
            "created_at": "2021-09-06T05:35:56.000000Z"
        }
    ]
}

HTTP Request

GET api/v1/tickets/list

show ticket departments

نمایش لیست دپارتمان های تیکت


Requires authentication

Example request:

curl -X GET \
    -G "http://localhost/api/v1/tickets/departments" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}"
const url = new URL(
    "http://localhost/api/v1/tickets/departments"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://localhost/api/v1/tickets/departments',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/tickets/departments'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "msg": "عملیات موفق",
    "data": [
        {
            "id": 1,
            "name": "پشتیبانی"
        },
        {
            "id": 2,
            "name": "فروش"
        }
    ]
}

HTTP Request

GET api/v1/tickets/departments

show ticket chats

نمایش چت یک تیکت


Requires authentication

Example request:

curl -X GET \
    -G "http://localhost/api/v1/tickets/chats" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -d '{"ticket_id":78563}'
const url = new URL(
    "http://localhost/api/v1/tickets/chats"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

let body = {
    "ticket_id": 78563
}

fetch(url, {
    method: "GET",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://localhost/api/v1/tickets/chats',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
        'json' => [
            'ticket_id' => 78563,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/tickets/chats'
payload = {
    "ticket_id": 78563
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers, json=payload)
response.json()

Example response (200):

{
    "msg": "عملیات موفق",
    "data": [
        {
            "avatar": "https:\/\/test.com\/storage\/uploadFiles\/users\/avatar\/AVLPuaDbB.png",
            "userId": 5000004,
            "parent_id": null,
            "type": "user",
            "msg": "لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ و با استفاده از طراحان گرافیک است.",
            "created_at": "2021-09-08T07:51:21.000000Z",
            "view": "seen",
            "attachments": [
                {
                    "value": "https:\/\/test.com\/storage\/uploadFiles\/ticket\/attachments\/AVLPqkLD8.jpg"
                }
            ]
        },
        {
            "avatar": "https:\/\/test.com\/storage\/uploadFiles\/users\/avatar\/AVLPuaDbB.png",
            "userId": 5000004,
            "parent_id": null,
            "type": "user",
            "msg": "لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ و با استفاده از طراحان گرافیک است.",
            "created_at": "2021-09-08T07:52:30.000000Z",
            "view": "seen",
            "attachments": [
                {
                    "value": "https:\/\/fasttrading.xyz\/storage\/uploadFiles\/ticket\/attachments\/AVLP2IEm6.jpg"
                }
            ]
        },
        {
            "avatar": "https:\/\/fasttrading.xyz\/storage\/uploadFiles\/users\/avatar\/AVLPuaDbB.png",
            "userId": 5000004,
            "parent_id": null,
            "type": "user",
            "msg": "لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ و با استفاده از طراحان گرافیک است.",
            "created_at": "2021-09-20T11:41:19.000000Z",
            "view": "seen",
            "attachments": []
        }
    ]
}

HTTP Request

GET api/v1/tickets/chats

Body Parameters

Parameter Type Status Description
ticket_id integer required ticket id

store ticket

ذخیره تیکت


Requires authentication

Example request:

curl -X POST \
    "http://localhost/api/v1/tickets/save" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -d '{"department":1,"priority":"low"}'
const url = new URL(
    "http://localhost/api/v1/tickets/save"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

let body = {
    "department": 1,
    "priority": "low"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'http://localhost/api/v1/tickets/save',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
        'json' => [
            'department' => 1,
            'priority' => 'low',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/tickets/save'
payload = {
    "department": 1,
    "priority": "low"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):

{
    "msg": "عملیات موفق"
}

Example response (422):

{
    "message": "The given data was invalid.",
    "errors": {
        "msg": [
            "فیلد متن پیام الزامی است."
        ],
        "department": [
            "فیلد دپارتمان الزامی است."
        ]
    }
}

HTTP Request

POST api/v1/tickets/save

Body Parameters

Parameter Type Status Description
title string required ticket title
msg string required ticket message
department integer required ticket department id
priority string required ticket priority (high - medium - low )
attachments string required ticket files

store ticket chats

ذخیره چت های یک تیکت


Requires authentication

Example request:

curl -X POST \
    "http://localhost/api/v1/tickets/replySave" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -d '{"ticket_id":78563}'
const url = new URL(
    "http://localhost/api/v1/tickets/replySave"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

let body = {
    "ticket_id": 78563
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'http://localhost/api/v1/tickets/replySave',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
        'json' => [
            'ticket_id' => 78563,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/tickets/replySave'
payload = {
    "ticket_id": 78563
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):

{
    "msg": "عملیات موفق"
}

Example response (422):

{
    "message": "The given data was invalid.",
    "errors": {
        "msg": [
            "فیلد متن پیام الزامی است."
        ],
        "ticket_id": [
            "فیلد شناسه تیکت الزامی است."
        ]
    }
}

HTTP Request

POST api/v1/tickets/replySave

Body Parameters

Parameter Type Status Description
msg string required chat message
attachments string required chat files
ticket_id integer required ticket id

User Authentication

store step one

ذخیره اطلاعات مرحله اول احراز هویت کاربر


Requires authentication

Example request:

curl -X POST \
    "http://localhost/api/v1/UserAuth/StoreUserData" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
const url = new URL(
    "http://localhost/api/v1/UserAuth/StoreUserData"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'http://localhost/api/v1/UserAuth/StoreUserData',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/UserAuth/StoreUserData'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('POST', url, headers=headers)
response.json()

Example response (200):

{
    "msg": "The given data was invalid."
}

Example response (422):

{
    "message": "The given data was invalid.",
    "errors": {
        "fatherName": [
            "فیلد نام پدر الزامی است."
        ],
        "tell": [
            "فیلد tell الزامی است."
        ]
    }
}

HTTP Request

POST api/v1/UserAuth/StoreUserData

Body Parameters

Parameter Type Status Description
fatherName string required user father name
tell string required user tel

verify token

بررسی درستی کد های ارسالی تلفن همراه و ثابت مرحله دوم احراز هویت


Requires authentication

Example request:

curl -X POST \
    "http://localhost/api/v1/UserAuth/verifyCodes" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
const url = new URL(
    "http://localhost/api/v1/UserAuth/verifyCodes"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'http://localhost/api/v1/UserAuth/verifyCodes',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/UserAuth/verifyCodes'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('POST', url, headers=headers)
response.json()

Example response (200):

{
    "msg": "عملیات موفق"
}

Example response (422):

{
    "message": "The given data was invalid.",
    "errors": {
        "sms": [
            "کد تایید تلفن همراه الزامی است"
        ],
        "call": [
            "کد تایید تلفن ثابت الزامی است"
        ]
    }
}

HTTP Request

POST api/v1/UserAuth/verifyCodes

Body Parameters

Parameter Type Status Description
sms string required sms token
call string required call token

send sms token

ارسال کد تایید به تلفن همراه کاربر در مرحله دوم احراز هویت


Requires authentication

Example request:

curl -X GET \
    -G "http://localhost/api/v1/UserAuth/sendToken" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}"
const url = new URL(
    "http://localhost/api/v1/UserAuth/sendToken"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://localhost/api/v1/UserAuth/sendToken',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/UserAuth/sendToken'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "msg": "عملیات موفق"
}

Example response (400):

{
    "msg": "دوباره تلاش کنید"
}

HTTP Request

GET api/v1/UserAuth/sendToken

send call token

تماس با تلفن ثابت کاربر در مرحله دوم احراز هویت


Requires authentication

Example request:

curl -X GET \
    -G "http://localhost/api/v1/UserAuth/callToken" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}"
const url = new URL(
    "http://localhost/api/v1/UserAuth/callToken"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://localhost/api/v1/UserAuth/callToken',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/UserAuth/callToken'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "msg": "عملیات موفق"
}

HTTP Request

GET api/v1/UserAuth/callToken

CheckStep

بررسی مرحله جاری احراز هویت کاربر فعلی


Requires authentication

Example request:

curl -X GET \
    -G "http://localhost/api/v1/UserAuth/CheckStep" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}"
const url = new URL(
    "http://localhost/api/v1/UserAuth/CheckStep"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://localhost/api/v1/UserAuth/CheckStep',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/UserAuth/CheckStep'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "msg": "عملیات موفق",
    "data": "0"
}

HTTP Request

GET api/v1/UserAuth/CheckStep

show Locations list

نمایش لیست کشور ها ، استان ها و شهرها


Requires authentication

Example request:

curl -X GET \
    -G "http://localhost/api/v1/UserAuth/ReturnLocations" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}"
const url = new URL(
    "http://localhost/api/v1/UserAuth/ReturnLocations"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://localhost/api/v1/UserAuth/ReturnLocations',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/UserAuth/ReturnLocations'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "msg": "عملیات موفق",
    "data": {
        "countries": [
            {
                "id": 1,
                "en_name": "Aruba",
                "fa_name": "آروبا"
            }
        ],
        "states": [
            {
                "id": 1,
                "name": "آذربايجان شرقي",
                "countryId": 118
            }
        ],
        "cities": [
            {
                "id": 1,
                "name": "تبريز",
                "stateId": 1
            }
        ]
    }
}

HTTP Request

GET api/v1/UserAuth/ReturnLocations

store user location

ذخیره اطلاعات پستی کاربر مانند آدرس ، استان و شهر در مرحله سوم احراز هویت


Requires authentication

Example request:

curl -X POST \
    "http://localhost/api/v1/UserAuth/StoreUserLocation" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -d '{"countryId":11,"stateId":20,"cityId":100}'
const url = new URL(
    "http://localhost/api/v1/UserAuth/StoreUserLocation"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

let body = {
    "countryId": 11,
    "stateId": 20,
    "cityId": 100
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'http://localhost/api/v1/UserAuth/StoreUserLocation',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
        'json' => [
            'countryId' => 11,
            'stateId' => 20,
            'cityId' => 100,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/UserAuth/StoreUserLocation'
payload = {
    "countryId": 11,
    "stateId": 20,
    "cityId": 100
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):

{
    "msg": "عملیات موفق"
}

Example response (422):

{
    "message": "The given data was invalid.",
    "errors": {
        "cityId": [
            "فیلد شناسه شهر الزامی است"
        ],
        "stateId": [
            "فیلد شناسه استان الزامی است"
        ]
    }
}

HTTP Request

POST api/v1/UserAuth/StoreUserLocation

Body Parameters

Parameter Type Status Description
countryId integer required country Id
stateId integer required state Id
cityId integer required city Id
postalCode integer required user postal code
address integer required user address

store user bank

ذخیره اطلاعات بانکی کاربر در مرحله چهارم احراز هویت


Requires authentication

Example request:

curl -X POST \
    "http://localhost/api/v1/UserAuth/StoreUserBank" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
const url = new URL(
    "http://localhost/api/v1/UserAuth/StoreUserBank"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'http://localhost/api/v1/UserAuth/StoreUserBank',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/UserAuth/StoreUserBank'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('POST', url, headers=headers)
response.json()

Example response (200):

{
    "msg": "عملیات موفق"
}

Example response (422):

{
    "message": "The given data was invalid.",
    "errors": {
        "bankId": [
            "شناسه بانک الزامی است"
        ],
        "cartNumber": [
            "شماره کارت الزامی است"
        ]
    }
}

HTTP Request

POST api/v1/UserAuth/StoreUserBank

Body Parameters

Parameter Type Status Description
bankId integer required bank id
accountNumber string required user account number
accountShaba string required user bank shaba number
cartNumber string required user card number

store auth cards images

ذخیره تصاویر کارت شناسایی کاربر (کارت ملی ، شناسنامه و تعهد نامه) درمرحله پنجم احراز هویت


Requires authentication

Example request:

curl -X POST \
    "http://localhost/api/v1/UserAuth/StoreAuthCard" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
const url = new URL(
    "http://localhost/api/v1/UserAuth/StoreAuthCard"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'http://localhost/api/v1/UserAuth/StoreAuthCard',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/UserAuth/StoreAuthCard'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('POST', url, headers=headers)
response.json()

Example response (200):

{
    "msg": "عملیات موفق"
}

Example response (422):

{
    "message": "The given data was invalid.",
    "errors": {
        "national_card": [
            "تصویر کارت ملی االزامی است"
        ],
        "letter_commitment_img": [
            "تصویر تعهد نامه الزامی است"
        ]
    }
}

HTTP Request

POST api/v1/UserAuth/StoreAuthCard

Body Parameters

Parameter Type Status Description
national_card string required user national card image
national_card_manuscripts string required user national card manuscripts image
letter_commitment_img string required user letter commitment image

Wage

show markets wages

نمایش لیست کارمزد بازار ها


Requires authentication

Example request:

curl -X GET \
    -G "http://localhost/api/v1/wages/list/markets" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}"
const url = new URL(
    "http://localhost/api/v1/wages/list/markets"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://localhost/api/v1/wages/list/markets',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/wages/list/markets'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "msg": "عملیات موفق",
    "data": [
        {
            "symbol": "BTC",
            "buy": 5,
            "sell": 0.07
        },
        {
            "symbol": "ETH",
            "buy": 0.15,
            "sell": 2
        },
        {
            "symbol": "USDT",
            "buy": 2.5,
            "sell": 1.5
        },
        {
            "symbol": "DOGE",
            "buy": 0.08,
            "sell": 0.7
        },
        {
            "symbol": "BCH",
            "buy": 0.2,
            "sell": 1
        },
        {
            "symbol": "LTC",
            "buy": 0.5,
            "sell": 1
        }
    ]
}

HTTP Request

GET api/v1/wages/list/markets

show transfer wages

نمایش لیست کارمزد شبکه انتقال ارز ها


Requires authentication

Example request:

curl -X GET \
    -G "http://localhost/api/v1/wages/list/transfer" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}"
const url = new URL(
    "http://localhost/api/v1/wages/list/transfer"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://localhost/api/v1/wages/list/transfer',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/wages/list/transfer'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "msg": "عملیات موفق",
    "data": {
        "btc_wage": 1,
        "eth_wage": 2,
        "usdt_wage": 0.05,
        "doge_wage": 5,
        "bch_wage": 6,
        "ltc_wage": 7,
        "xlm_wage": 8,
        "bnb_wage": 9,
        "shib_wage": 10,
        "aave_wage": 11,
        "trx_wage": 12
    }
}

HTTP Request

GET api/v1/wages/list/transfer

show Immediate Orders wage

نمایش کارمزد سفارشات فوری


Requires authentication

Example request:

curl -X GET \
    -G "http://localhost/api/v1/wages/list/fastOrder" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}"
const url = new URL(
    "http://localhost/api/v1/wages/list/fastOrder"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://localhost/api/v1/wages/list/fastOrder',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/wages/list/fastOrder'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "msg": "عملیات موفق",
    "data": {
        "immediate_order_purchase_wage": 0.5,
        "immediate_order_sales_wage": 1.5
    }
}

HTTP Request

GET api/v1/wages/list/fastOrder

show Inventory converted wages

نمایش لیست کارمزد تبدیل خورده موجودی ریال و تتر


Requires authentication

Example request:

curl -X GET \
    -G "http://localhost/api/v1/wages/list/inventory" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}"
const url = new URL(
    "http://localhost/api/v1/wages/list/inventory"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://localhost/api/v1/wages/list/inventory',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/wages/list/inventory'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "msg": "عملیات موفق",
    "data": {
        "RialInventoryWage": 0,
        "UsdtInventoryWage": 0
    }
}

HTTP Request

GET api/v1/wages/list/inventory

show credit Transfer wage

نمایش کارمزد انتقال اعتبار


Requires authentication

Example request:

curl -X GET \
    -G "http://localhost/api/v1/wages/list/creditTransfer" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}"
const url = new URL(
    "http://localhost/api/v1/wages/list/creditTransfer"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://localhost/api/v1/wages/list/creditTransfer',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/wages/list/creditTransfer'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "msg": "عملیات موفق",
    "data": {
        "CreditTransferWage": 8
    }
}

HTTP Request

GET api/v1/wages/list/creditTransfer

Wallet

Wallets List

لیست کیف پول های کاربر جاری


Requires authentication

Example request:

curl -X GET \
    -G "http://localhost/api/v1/wallets/list" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}"
const url = new URL(
    "http://localhost/api/v1/wallets/list"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://localhost/api/v1/wallets/list',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/wallets/list'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "msg": "عملیات موفق",
    "data": {
        "rial": {
            "amount": 0,
            "symbol": "IRR",
            "name": "ریال",
            "img": "http:\/\/127.0.0.1:8000\/user\/images\/cards\/iran.png",
            "address": null
        },
        "Btc": {
            "amount": 0,
            "symbol": "BTC",
            "name": "بیت کوین",
            "img": "http:\/\/127.0.0.1:8000\/user\/images\/cards\/bitcoin.png",
            "address": "bc1q9r98fzddzvk7ses9prygu5u3egrjgrdlteedjp",
            "tag": null,
            "network": "segwit"
        },
        "Eth": {
            "amount": 0,
            "symbol": "ETH",
            "name": "اتریوم",
            "img": "http:\/\/127.0.0.1:8000\/user\/images\/cards\/ethereum.png",
            "address": "0xcA513C1545a3F6E1135CD5C3E9FE2d89c34538c1",
            "tag": null,
            "network": "erc20"
        }
    }
}

HTTP Request

GET api/v1/wallets/list

Refresh Wallet Balance

بروزرسانی موجودی کیف پول کاربر


Requires authentication

Example request:

curl -X GET \
    -G "http://localhost/api/v1/wallets/refresh" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -d '{"cuWallet":"BTC"}'
const url = new URL(
    "http://localhost/api/v1/wallets/refresh"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

let body = {
    "cuWallet": "BTC"
}

fetch(url, {
    method: "GET",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://localhost/api/v1/wallets/refresh',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
        'json' => [
            'cuWallet' => 'BTC',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://localhost/api/v1/wallets/refresh'
payload = {
    "cuWallet": "BTC"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers, json=payload)
response.json()

Example response (200):

{
    "msg": "عملیات موفق"
}

Example response (400):

{
    "msg": "پارامتر ورودی اشتباه است"
}

HTTP Request

GET api/v1/wallets/refresh

Body Parameters

Parameter Type Status Description
cuWallet string required currency symbol .