### Create a static wallet request examples Source: https://docs.trybit.com/api-reference-v2/static-wallets.md Use these examples to send a POST request to the static wallet creation endpoint. Ensure you replace and with your actual credentials. ```bash curl -X POST https://api.trybit.com/v2/invoice/static/create \ -H 'Authorization: Token ' \ -H 'Content-Type: application/json' \ -d '{"shop_id": "", "currency": "BTC", "identify": "F4jSjfpwf4t"}' ``` ```python import requests url = "https://api.trybit.com/v2/invoice/static/create" headers = { 'Authorization': "Token " } body = { "shop_id": "", "currency": "BTC", "identify": "F4jSjfpwf4t", } response = requests.post(url, headers=headers, json=body) if response.status_code == 200: print("Success:", response.json()) else: print("Fail:", response.status_code, response.text) ``` ```javascript const url = "https://api.trybit.com/v2/invoice/static/create"; const headers = { 'Authorization': 'Token ', 'Content-Type': 'application/json' }; const body = { "shop_id": "", "currency": "BTC", "identify": "F4jSjfpwf4t" }; fetch(url, { method: 'POST', headers: headers, body: JSON.stringify(body) }) .then(response => { if (response.ok) { return response.json(); } else { throw new Error(`Failed to fetch: ${response.statusText}`); } }) .then(data => console.log("Success:", data)) .catch(error => console.log("Fail:", error)); ``` ```php ', 'Content-Type: application/json' ]; $body = [ "shop_id" => "", "currency" => "BTC", "identify" => "F4jSjfpwf4t" ]; $ch = curl_init($url); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($body)); $response = curl_exec($ch); if (curl_getinfo($ch, CURLINFO_HTTP_CODE) == 200) { echo "Success: " . $response; } else { echo "Fail: " . curl_getinfo($ch, CURLINFO_HTTP_CODE) . " " . $response; } curl_close($ch); ?> ``` -------------------------------- ### Retrieve Invoice List Request Examples Source: https://docs.trybit.com/api-reference-v2/invoice-list.md Examples for sending a POST request to the invoice list endpoint with authentication and pagination parameters. ```bash curl -X POST https://api.trybit.com/v2/invoice/merchant/list \ -H "Authorization: Token " \ -H "Content-Type: application/json" \ -d '{"start":"01.01.2023","end":"31.01.2023","offset":0,"limit":10}' ``` ```python import requests url = "https://api.trybit.com/v2/invoice/merchant/list" headers = { "Authorization": "Token " } data = { "start": "01.01.2023", "end": "31.01.2023", "offset": 0, "limit": 10 } response = requests.post(url, headers=headers, json=data) if response.status_code == 200: print("Success:", response.json()) else: print("Fail:", response.status_code, response.text) ``` ```javascript fetch('https://api.trybit.com/v2/invoice/merchant/list', { method: 'POST', headers: { 'Authorization': 'Token ', 'Content-Type': 'application/json' }, body: JSON.stringify({ start: '01.01.2023', end: '31.01.2023', offset: 0, limit: 10 }) }) .then(response => { if (response.ok) { return response.json(); } else { throw new Error('Fail: ' + response.status + ' ' + response.statusText); } }) .then(data => console.log('Success:', data)) .catch(error => console.error('Error:', error)); ``` ```php "01.01.2023", "end" => "31.01.2023", "offset" => 0, "limit" => 10 ))); $headers = array( "Authorization: Token ", "Content-Type: application/json" ); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); $response = curl_exec($ch); if (curl_errno($ch)) { echo 'Error:' . curl_error($ch); } else { $statusCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); if ($statusCode == 200) { echo "Success: " . $response; } else { echo "Fail: " . $statusCode . " " . $response; } } curl_close($ch); ?> ``` -------------------------------- ### Create Invoice via PHP Source: https://docs.trybit.com/api-reference-v2/create-invoice.md Examples using cURL and file_get_contents. ```php ", "Content-Type: application/json" ); $data = array( "amount" => 100, "shop_id" => "xBAivfPIbskwuEWj", "currency" => "USD" ); $ch = curl_init($url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); $http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE); if($http_code == 200){ echo "Success: " . $response; } else { echo "Fail: " . $http_code . " " . $response; } curl_close($ch); ?> ``` ```php array( "header" => "Authorization: Token \r\n" . "Content-Type: application/json\r\n", "method" => "POST", "content" => json_encode(array( "amount" => 100, "shop_id" => "xBAivfPIbskwuEWj", "currency" => "USD" )), ), ); $context = stream_context_create($headers); $response = file_get_contents($url, false, $context); $http_code = $http_response_header[0]; if(strpos($http_code, "200")){ echo "Success: " . $response; } else { echo "Fail: " . $http_code . " " . $response; } ?> ``` -------------------------------- ### Query Documentation via HTTP GET Source: https://docs.trybit.com/buttons-forms/html-widget/form.md Perform an HTTP GET request to the documentation URL with 'ask' and 'goal' parameters to retrieve dynamic information. ```http GET https://docs.trybit.com/buttons-forms/html-widget/form.md?ask=&goal= ``` -------------------------------- ### GET /cms-plugins/list.md Source: https://docs.trybit.com/llms.txt Perform an HTTP GET request on the documentation index to ask a question and optionally provide a goal to tailor the response. ```APIDOC ## GET /cms-plugins/list.md ### Description Perform an HTTP GET request on the documentation index with the `ask` parameter, and the optional `goal` parameter to receive a direct answer and relevant excerpts from the documentation. ### Method GET ### Endpoint https://docs.trybit.com/cms-plugins/list.md ### Parameters #### Query Parameters - **ask** (string) - Required - The immediate question to ask. - **goal** (string) - Optional - Describes the broader end goal to tailor the answer. ``` -------------------------------- ### Querying Documentation via HTTP GET Source: https://docs.trybit.com/cms-plugins/list/drupal.md Perform an HTTP GET request to the documentation URL to ask questions and retrieve relevant information. ```http GET https://docs.trybit.com/cms-plugins/list/drupal.md?ask=&goal= ``` -------------------------------- ### GET /start.md Source: https://docs.trybit.com/start Performs a natural language query against the documentation to retrieve answers and relevant excerpts. ```APIDOC ## GET /start.md ### Description Queries the documentation dynamically by providing a specific question and an optional goal to receive a tailored answer with relevant sources. ### Method GET ### Endpoint https://docs.trybit.com/start.md ### Parameters #### Query Parameters - **ask** (string) - Required - The specific, self-contained question to ask. - **goal** (string) - Optional - The broader end goal to help tailor the response. ### Response #### Success Response (200) - **answer** (string) - The direct answer to the question. - **excerpts** (array) - Relevant excerpts and sources from the documentation. ``` -------------------------------- ### GET /start/support-faq.md Source: https://docs.trybit.com/start/support-faq.md Performs a dynamic query against the documentation to retrieve answers based on a specific question and optional goal. ```APIDOC ## GET /start/support-faq.md ### Description Performs an HTTP GET request on the documentation page to retrieve answers to specific questions. This is useful for obtaining information not explicitly detailed in the static content. ### Method GET ### Endpoint https://docs.trybit.com/start/support-faq.md ### Parameters #### Query Parameters - **ask** (string) - Required - The specific, self-contained question to ask. - **goal** (string) - Optional - The broader end goal to help tailor the response. ``` -------------------------------- ### GET /start/how-to-pay-instruction.md Source: https://docs.trybit.com/start/how-to-pay-instruction.md Performs a dynamic query against the documentation page to retrieve answers based on a specific question and optional goal. ```APIDOC ## GET /start/how-to-pay-instruction.md ### Description Performs an HTTP GET request on the current page URL to query the documentation dynamically. ### Method GET ### Endpoint https://docs.trybit.com/start/how-to-pay-instruction.md ### Parameters #### Query Parameters - **ask** (string) - Required - The immediate question to ask, written in natural language. - **goal** (string) - Optional - Describes the broader end goal to tailor the answer. ``` -------------------------------- ### Retrieve static wallets list Source: https://docs.trybit.com/api-reference-v2/static-wallets.md Examples for sending a POST request to the static wallets list endpoint. ```bash curl --location 'https://api.trybit.com/v2/invoice/static/list' \ --header 'Content-Type: application/json' \ --header 'Authorization: Token ' \ --data '{ "shop_id": "", "start": "04.01.26", "end": "31.01.26", "limit": 100, "offset": 0 }' ``` ```python import requests url = "https://api.trybit.com/v2/invoice/static/list" headers = { "Content-Type": "application/json", "Authorization": "Token " } data = { "shop_id": "", "start": "04.01.26", "end": "31.01.26", "limit": 100, "offset": 0 } response = requests.post(url, json=data, headers=headers) print(response.json()) ``` ```javascript import fetch from 'node-fetch'; const url = 'https://api.trybit.com/v2/invoice/static/list'; const headers = { 'Content-Type': 'application/json', 'Authorization': 'Token ' }; const body = JSON.stringify({ shop_id: '', start: '04.01.26', end: '31.01.26', limit: 100, offset: 0 }); fetch(url, { method: 'POST', headers: headers, body: body }) .then(res => res.json()) .then(data => console.log(data)) .catch(err => console.error('Error:', err)); ``` ```php ' ]; $data = json_encode([ 'shop_id' => '', 'start' => '04.01.26', 'end' => '31.01.26', 'limit' => 100, 'offset' => 0 ]); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); curl_close($ch); $result = json_decode($response, true); print_r($result); ``` -------------------------------- ### Create Invoice via JavaScript Source: https://docs.trybit.com/api-reference-v2/create-invoice.md Examples using Fetch API, jQuery Ajax, and Axios. ```javascript const url = 'https://api.trybit.com/v2/invoice/create'; const headers = new Headers({ 'Authorization': 'Token ', 'Content-Type': 'application/json' }); const data = { amount: 100, shop_id: 'xBAivfPIbskwuEWj', currency: 'USD' }; fetch(url, { method: 'POST', headers, body: JSON.stringify(data) }) .then(response => { if (response.ok) { return response.json(); } else { return Promise.reject('Creation Error'); } }) .then(data => { console.log('Success:', data); }) .catch(error => { console.error('Fail:', error); }); ``` ```javascript $.ajax({ url: 'https://api.trybit.com/v2/invoice/create', method: 'POST', headers: { 'Authorization': 'Token ', 'Content-Type': 'application/json' }, data: JSON.stringify({ amount: 100, shop_id: 'xBAivfPIbskwuEWj', currency: 'USD' }), success: function(data) { console.log('Success:', data); }, error: function(error) { console.error('Fail:', error); } }); ``` ```javascript const axios = require('axios'); const url = 'https://api.trybit.com/v2/invoice/create'; const headers = { 'Authorization': 'Token ', 'Content-Type': 'application/json' }; const data = { amount: 100, shop_id: 'xBAivfPIbskwuEWj', currency: 'USD' }; axios.post(url, data, { headers }) .then(response => { console.log('Success:', response.data); }) .catch(error => { console.error('Fail:', error); }); ``` -------------------------------- ### Query Documentation via HTTP GET Source: https://docs.trybit.com/api-reference-v2/h2h.md Perform a dynamic query against the documentation using the ask and goal parameters. ```http GET https://docs.trybit.com/api-reference-v2/h2h.md?ask=&goal= ``` -------------------------------- ### GET /api-reference-v2/authorization.md Source: https://docs.trybit.com/api-reference-v2/authorization.md Query the documentation dynamically by performing an HTTP GET request on the documentation page URL. ```APIDOC ## GET https://docs.trybit.com/api-reference-v2/authorization.md ### Description Query the documentation dynamically by asking a question. ### Method GET ### Endpoint https://docs.trybit.com/api-reference-v2/authorization.md ### Parameters #### Query Parameters - **ask** (string) - Required - The specific question to ask. - **goal** (string) - Optional - The broader end goal to accomplish. ``` -------------------------------- ### GET /api-reference-v2/postback.md Source: https://docs.trybit.com/api-reference-v2/postback.md Queries the documentation for information by providing a specific question and an optional goal. ```APIDOC ## GET /api-reference-v2/postback.md ### Description Perform an HTTP GET request on the current page URL to query the documentation dynamically. This is useful when you need information not explicitly present in the current page or require clarification. ### Method GET ### Endpoint https://docs.trybit.com/api-reference-v2/postback.md ### Parameters #### Query Parameters - **ask** (string) - Required - The immediate question to ask, written in natural language. - **goal** (string) - Optional - Describes the broader end goal to help tailor the answer. ### Response - The response contains a direct answer to the question along with relevant excerpts and sources from the documentation. ``` -------------------------------- ### Create Withdrawal Request Source: https://docs.trybit.com/api-reference-v2/withdrawals.md Examples for initiating a withdrawal request using cURL and Python. ```bash curl -X POST \ https://api.trybit.com/v2/invoice/api/out/create \ -H 'Authorization: Token YOUR_API_KEY' \ -H 'Content-Type: application/json' \ -d '{ "currency_code": "BTC", "to_address": "YOUR_RECIPIENT_ADDRESS", "amount": 0.00023 }' ``` -------------------------------- ### GET /api-reference-v2/create-invoice.md Source: https://docs.trybit.com/api-reference-v2/create-invoice.md Perform a query against the documentation page to retrieve information or clarification. ```APIDOC ## GET /api-reference-v2/create-invoice.md ### Description Perform an HTTP GET request on the current page URL to query the documentation dynamically. ### Method GET ### Endpoint https://docs.trybit.com/api-reference-v2/create-invoice.md ### Parameters #### Query Parameters - **ask** (string) - Required - The immediate question to ask, written in natural language. - **goal** (string) - Optional - Describes the broader end goal to help tailor the response. ``` -------------------------------- ### Error Response Example Source: https://docs.trybit.com/api-reference-v2/authorization.md The JSON structure returned when an authentication error occurs. ```json { "status": "error", "result": { "authorization": "Unauthorized request." } } ``` -------------------------------- ### GET /cms-plugins/list/opencart.md Source: https://docs.trybit.com/cms-plugins/list/opencart.md Queries the documentation page dynamically using a natural language question and an optional goal. ```APIDOC ## GET /cms-plugins/list/opencart.md ### Description Queries the current documentation page dynamically to retrieve answers, excerpts, and sources based on a specific question. ### Method GET ### Endpoint https://docs.trybit.com/cms-plugins/list/opencart.md ### Parameters #### Query Parameters - **ask** (string) - Required - The specific, self-contained question in natural language. - **goal** (string) - Optional - The broader end goal to help tailor the response. ``` -------------------------------- ### Static wallet creation success response Source: https://docs.trybit.com/api-reference-v2/static-wallets.md Example of a successful 200 OK response body containing the static wallet details. ```json { "status": "success", "result": { "currency": { "id": 4, "code": "USDT_TRC20", "short_code": "USDT", "name": "Tether", "is_email_required": false, "stablecoin": true, "icon_base": "https://cdn.trybit.com/img/currency/USDT.svg", "icon_network": "https://cdn.trybit.com/img/currency_network/USDT_TRC.svg", "icon_qr": "https://cdn.trybit.com/img/stroke/USDT_STROKE.svg", "order": 1, "obj_network": { "code": "TRC20", "id": 4, "icon": "https://cdn.trybit.com/img/network/TRC20.svg", "fullname": "Tron" }, "enable": true }, "address": "TKDyKp8F874WiPd1q2jrxgg3HE4AHPDms6", "uuid": "KW2WWTTNNBHM17MGFUJPSDOFQVS4ER0X", "active": true, "created": "2026-01-01 09:13:57.599180", "identify": "test_static_wallet" } } ``` -------------------------------- ### Activate Static Wallet Subscription Source: https://docs.trybit.com/api-reference-v2/static-wallets.md Use these examples to send a POST request to the static wallet subscription endpoint. Ensure the Authorization header includes a valid API key. ```bash cURL curl --location 'https://api.trybit.com/v2/invoice/static/subscribe ' \ --header 'Content-Type: application/json' \ --header 'Authorization: Token ' \ --data '{ "uuid": "J9JFJN085D922I394UL1P8EELYSE0P87" }' ``` ```python import requests url = "https://api.trybit.com/v2/invoice/static/subscribe" headers = { "Content-Type": "application/json", "Authorization": "Token " } data = { "uuid": "J9JFJN085D922I394UL1P8EELYSE0P87" } response = requests.post(url, json=data, headers=headers) print(response.json()) ``` ```javascript const url = 'https://api.trybit.com/v2/invoice/static/subscribe'; const headers = { 'Content-Type': 'application/json', 'Authorization': 'Token ' }; const body = JSON.stringify({ uuid: 'J9JFJN085D922I394UL1P8EELYSE0P87' }); fetch(url, { method: 'POST', headers: headers, body: body }) .then(res => res.json()) .then(data => console.log(data)) .catch(err => console.error('Error:', err)); ``` ```php ' ]; $data = json_encode([ 'uuid' => 'J9JFJN085D922I394UL1P8EELYSE0P87' ]); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); curl_close($ch); $result = json_decode($response, true); print_r($result); ``` -------------------------------- ### API Request with Authorization Token Source: https://docs.trybit.com/api-reference-v2/authorization.md Examples of how to include the Authorization header in API requests across different programming languages. ```bash curl -X POST https://api.trybit.com/v2/invoice/create \ -header "Authorization: Token eyJ0eXAi1iJKV1QiLCJhbGci1iJIAcI1NiJ9.eyJpZCI6MTMsImV4cCI6MTYzMTc4NjQyNn0.HQavV3z8dFnk56bX3MSY5X9lR6qVa9YhAoeTEH" ``` ```python import requests url = "https://api.trybit.com/v2/invoice/create" headers = { "Authorization": "Token eyJ0eXAi1iJKV1QiLCJhbGciOiJIAcI1NiJ9.eyJpZCI6MTMsImV4cCI6MTYzMTc4NjQyNn0.HQavV3z8dFnk56bX3MSY5X9lR6qVa9YhAoeTEH" } response = requests.post(url, headers=headers) if response.status_code == 200: print("Success:", response.json()) else: print("Fail:", response.status_code, response.text) ``` ```javascript const url = 'https://api.trybit.com/v2/invoice/create'; const headers = new Headers({ 'Authorization': 'Token eyJ0eXAi1iJKV1QiLCJhbGciOiJIAcI1NiJ9.eyJpZCI6MTMsImV4cCI6MTYzMTc4NjQyNn0.HQavV3z8dFnk56bX3MSY5X9lR6qVa9YhAoeTEH' }); fetch(url, { method: 'POST', headers }) .then(response => { if (response.ok) { return response.json(); } else { return Promise.reject('Auth error'); } }) .then(data => { console.log('Success:', data); }) .catch(error => { console.error('Fail:', error); }); ``` ```php ``` -------------------------------- ### GET /api-reference-v2/static-wallets.md Source: https://docs.trybit.com/api-reference-v2/static-wallets.md Queries the documentation page dynamically to retrieve answers, excerpts, and sources based on a natural language question. ```APIDOC ## GET /api-reference-v2/static-wallets.md ### Description Perform an HTTP GET request on the current page URL to query the documentation dynamically for information not explicitly present in the page. ### Method GET ### Endpoint https://docs.trybit.com/api-reference-v2/static-wallets.md ### Parameters #### Query Parameters - **ask** (string) - Required - The immediate question to ask, written in natural language. - **goal** (string) - Optional - Describes the broader end goal to help tailor the response. ### Response #### Success Response (200) - **answer** (string) - A direct answer to the question. - **excerpts** (array) - Relevant excerpts from the documentation. - **sources** (array) - Sources used to generate the answer. ``` -------------------------------- ### GET /cms-plugins/list.md Source: https://docs.trybit.com/cms-plugins/list.md Performs a dynamic query against the documentation to retrieve answers, excerpts, and sources based on a natural language question. ```APIDOC ## GET /cms-plugins/list.md ### Description Queries the documentation dynamically by providing a natural language question. This is useful for retrieving information not explicitly covered in the current page. ### Method GET ### Endpoint https://docs.trybit.com/cms-plugins/list.md ### Parameters #### Query Parameters - **ask** (string) - Required - The specific, self-contained natural language question. - **goal** (string) - Optional - The broader end goal to help tailor the response. ``` -------------------------------- ### Retrieve account balance Source: https://docs.trybit.com/api-reference-v2/balance.md Examples for calling the balance endpoint using different programming languages. Replace with your actual project API key. ```bash curl -X POST https://api.trybit.com/v2/merchant/wallet/balance/all \ -H "Authorization: Token " ``` ```python import requests url = "https://api.trybit.com/v2/merchant/wallet/balance/all" headers = { "Authorization": "Token " } response = requests.post(url, headers=headers) if response.status_code == 200: print("Success:", response.json()) else: print("Fail:", response.status_code, response.text) ``` ```javascript fetch('https://api.trybit.com/v2/merchant/wallet/balance/all', { method: 'POST', headers: { 'Authorization': 'Token ' } }) .then(response => { if (response.ok) { return response.json(); } else { throw new Error('Fail: ' + response.status + ' ' + response.statusText); } }) .then(data => console.log('Success:', data)) .catch(error => console.error('Error:', error)); ``` ```php ", ); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); $response = curl_exec($ch); if (curl_errno($ch)) { echo 'Error:' . curl_error($ch); } else { $statusCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); if ($statusCode == 200) { echo "Success: " . $response; } else { echo "Fail: " . $statusCode . " " . $response; } } curl_close($ch); ?> ``` -------------------------------- ### GET /cms-plugins/list/tilda.md Source: https://docs.trybit.com/cms-plugins/list/tilda.md Queries the documentation page dynamically to retrieve answers, excerpts, and sources based on a specific question and optional goal. ```APIDOC ## GET /cms-plugins/list/tilda.md ### Description Queries the documentation page dynamically to retrieve answers, excerpts, and sources based on a specific question and optional goal. ### Method GET ### Endpoint https://docs.trybit.com/cms-plugins/list/tilda.md ### Parameters #### Query Parameters - **ask** (string) - Required - The specific, self-contained question to ask the documentation. - **goal** (string) - Optional - The broader end goal to help tailor the response. ### Request Example GET https://docs.trybit.com/cms-plugins/list/tilda.md?ask=How do I configure Tilda?&goal=Integration ``` -------------------------------- ### GET /cms-plugins.md Source: https://docs.trybit.com/cms-plugins Queries the documentation page dynamically to retrieve answers, excerpts, and sources based on a specific question and optional goal. ```APIDOC ## GET /cms-plugins.md ### Description Performs a dynamic query against the documentation to retrieve information not explicitly found on the page. This is useful for clarifying content or retrieving related documentation sections. ### Method GET ### Endpoint https://docs.trybit.com/cms-plugins.md ### Parameters #### Query Parameters - **ask** (string) - Required - The specific, self-contained natural language question to ask. - **goal** (string) - Optional - The broader end goal to help tailor the response context. ``` -------------------------------- ### GET /api-reference-v2/balance.md Source: https://docs.trybit.com/api-reference-v2/balance.md Queries the documentation page dynamically to retrieve answers based on a specific question and optional goal. ```APIDOC ## GET /api-reference-v2/balance.md ### Description Perform an HTTP GET request on the current page URL to query the documentation dynamically. This allows for retrieving specific information or clarification when not explicitly found in the static content. ### Method GET ### Endpoint https://docs.trybit.com/api-reference-v2/balance.md ### Parameters #### Query Parameters - **ask** (string) - Required - The immediate question to ask, written in natural language. - **goal** (string) - Optional - Describes the broader end goal to help tailor the response. ### Response #### Success Response (200) - **answer** (string) - A direct answer to the question. - **excerpts** (array) - Relevant excerpts from the documentation. - **sources** (array) - Sources used to generate the answer. ``` -------------------------------- ### Retrieve Invoice Statistics Source: https://docs.trybit.com/api-reference-v2/statistics.md Examples for requesting invoice status statistics for a specific date range using various programming languages. ```bash curl -X POST https://api.trybit.com/v2/invoice/merchant/statistics \ -H "Authorization: Token " \ -H "Content-Type: application/json" \ -d '{"start":"01.01.2023","end":"31.01.2023"}' ``` ```python import requests url = "https://api.trybit.com/v2/invoice/merchant/statistics" headers = { "Authorization": "Token " } data = { "start": "01.01.2023", "end": "31.01.2023" } response = requests.post(url, headers=headers, json=data) if response.status_code == 200: print("Success:", response.json()) else: print("Fail:", response.status_code, response.text) ``` ```javascript fetch('https://api.trybit.com/v2/invoice/merchant/statistics', { method: 'POST', headers: { 'Authorization': 'Token ', 'Content-Type': 'application/json' }, body: JSON.stringify({ start: '01.01.2023', end: '31.01.2023' }) }) .then(response => { if (response.ok) { return response.json(); } else { throw new Error('Fail: ' + response.status + ' ' + response.statusText); } }) .then(data => console.log('Success:', data)) .catch(error => console.error('Error:', error)); ``` ```php "01.01.2023", "end" => "31.01.2023" ))); $headers = array( "Authorization: Token ", "Content-Type: application/json" ); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); $response = curl_exec($ch); if (curl_errno($ch)) { echo 'Error:' . curl_error($ch); } else { $statusCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); if ($statusCode == 200) { echo "Success: " . $response; } else { echo "Fail: " . $statusCode . " " . $response; } } curl_close($ch); ?> ``` -------------------------------- ### Retrieve Invoice Information Source: https://docs.trybit.com/api-reference-v2/invoice-information.md Examples for requesting invoice details by providing a list of UUIDs. Ensure the request does not exceed 100 identifiers. ```bash curl -X POST https://api.trybit.com/v2/invoice/merchant/info \ -H "Authorization: Token " \ -H "Content-Type: application/json" \ -d '{"uuids":["INV-XXXXXXXX","INV-YYYYYYYY"]}' ``` ```python import requests url = "https://api.trybit.com/v2/invoice/merchant/info" headers = { "Authorization": "Token " } data = { "uuids": ["INV-XXXXXXXX", "INV-YYYYYYYY"] } response = requests.post(url, headers=headers, json=data) if response.status_code == 200: print("Success:", response.json()) else: print("Fail:", response.status_code, response.text) ``` ```javascript fetch('https://api.trybit.com/v2/invoice/merchant/info', { method: 'POST', headers: { 'Authorization': 'Token ', 'Content-Type': 'application/json' }, body: JSON.stringify({ uuids: ['INV-XXXXXXXX', 'INV-YYYYYYYY'] }) }) .then(response => { if (response.ok) { return response.json(); } else { throw new Error('Fail: ' + response.status + ' ' + response.statusText); } }) .then(data => console.log('Success:', data)) .catch(error => console.error('Error:', error)); ``` ```php array("INV-XXXXXXXX", "INV-YYYYYYYY") ))); $headers = array( "Authorization: Token ", "Content-Type: application/json" ); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); $response = curl_exec($ch); if (curl_errno($ch)) { echo 'Error:' . curl_error($ch); } else { $statusCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); if ($statusCode == 200) { echo "Success: " . $response; } else { echo "Fail: " . $statusCode . " " . $response; } } curl_close($ch); ?> ``` -------------------------------- ### Cancel Invoice Request Examples Source: https://docs.trybit.com/api-reference-v2/cancel-invoice.md Examples of how to send a POST request to cancel an invoice. The invoice must have a 'created' status. ```bash curl -X POST https://api.trybit.com/v2/invoice/merchant/canceled \ -H "Authorization: Token " \ -H "Content-Type: application/json" \ -d '{"uuid":"INV-XXXXXXXX"}' ``` ```python import requests url = "https://api.trybit.com/v2/invoice/merchant/canceled" headers = { "Authorization": "Token " } data = { "uuid": "INV-XXXXXXXX" response = requests.post(url, headers=headers, json=data) if response.status_code == 200: print("Success:", response.json()) else: print("Fail:", response.status_code, response.text) ``` ```javascript fetch('https://api.trybit.com/v2/invoice/merchant/canceled', { method: 'POST', headers: { 'Authorization': 'Token ', 'Content-Type': 'application/json' }, body: JSON.stringify({ uuid: 'INV-XXXXXXXX' }) }) .then(response => { if (response.ok) { return response.json(); } else { throw new Error('Fail: ' + response.status + ' ' + response.statusText); } }) .then(data => console.log('Success:', data)) .catch(error => console.error('Error:', error)); ``` ```php "INV-XXXXXXXX"))); $headers = array( "Authorization: Token ", "Content-Type: application/json" ); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); $response = curl_exec($ch); if (curl_errno($ch)) { echo 'Error:' . curl_error($ch); } else { $statusCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); if ($statusCode == 200) { echo "Success: " . $response; } else { echo "Fail: " . $statusCode . " " . $response; } } curl_close($ch); ?> ``` -------------------------------- ### GET /api-reference-v2/cancel-invoice.md Source: https://docs.trybit.com/api-reference-v2/cancel-invoice.md Perform a query against the documentation page to retrieve answers or context. ```APIDOC ## GET https://docs.trybit.com/api-reference-v2/cancel-invoice.md ### Description Queries the documentation dynamically to retrieve information, clarifications, or related sections. ### Method GET ### Endpoint https://docs.trybit.com/api-reference-v2/cancel-invoice.md ### Parameters #### Query Parameters - **ask** (string) - Required - The specific, self-contained question to ask. - **goal** (string) - Optional - The broader end goal to help tailor the response. ``` -------------------------------- ### POST /v2/invoice/static/create Source: https://docs.trybit.com/api-reference-v2/static-wallets.md Creates a new static wallet for a specific shop and currency. ```APIDOC ## POST /v2/invoice/static/create ### Description Creates a new static wallet for a specified shop and currency. ### Method POST ### Endpoint https://api.trybit.com/v2/invoice/static/create ### Request Body - **shop_id** (string) - Required - The ID of the shop. - **currency** (string) - Required - The currency code (e.g., BTC). - **identify** (string) - Required - A unique identifier for the wallet. ### Request Example { "shop_id": "", "currency": "BTC", "identify": "F4jSjfpwf4t" } ### Response #### Success Response (200) - **status** (string) - The status of the request. - **result** (object) - The created static wallet details. #### Response Example { "status": "success", "result": { "currency": { "id": 4, "code": "USDT_TRC20", "short_code": "USDT", "name": "Tether", "is_email_required": false, "stablecoin": true, "icon_base": "https://cdn.trybit.com/img/currency/USDT.svg", "icon_network": "https://cdn.trybit.com/img/currency_network/USDT_TRC.svg", "icon_qr": "https://cdn.trybit.com/img/stroke/USDT_STROKE.svg", "order": 1, "obj_network": { "code": "TRC20", "id": 4, "icon": "https://cdn.trybit.com/img/network/TRC20.svg", "fullname": "Tron" }, "enable": true }, "address": "TKDyKp8F874WiPd1q2jrxgg3HE4AHPDms6", "uuid": "KW2WWTTNNBHM17MGFUJPSDOFQVS4ER0X", "active": true, "created": "2026-01-01 09:13:57.599180", "identify": "test_static_wallet" } } ``` -------------------------------- ### GET /api-reference-v2/withdrawals.md Source: https://docs.trybit.com/api-reference-v2/withdrawals.md Queries the documentation page for specific information using natural language. ```APIDOC ## GET /api-reference-v2/withdrawals.md ### Description Perform an HTTP GET request on the current page URL to query the documentation dynamically. This allows users to ask specific questions and provide optional goal context to receive tailored answers. ### Method GET ### Endpoint https://docs.trybit.com/api-reference-v2/withdrawals.md ### Parameters #### Query Parameters - **ask** (string) - Required - The immediate question to ask, written in natural language. - **goal** (string) - Optional - Describes the broader end goal to help tailor the answer. ### Response #### Success Response (200) - **answer** (string) - A direct answer to the question based on the documentation. - **excerpts** (array) - Relevant excerpts and sources from the documentation. ``` -------------------------------- ### GET /buttons-forms.md Source: https://docs.trybit.com/buttons-forms Perform a query against the documentation to retrieve information or clarification regarding buttons and forms. ```APIDOC ## GET /buttons-forms.md ### Description Query the documentation dynamically by providing a question and an optional goal to receive a direct answer with relevant excerpts. ### Method GET ### Endpoint https://docs.trybit.com/buttons-forms.md ### Parameters #### Query Parameters - **ask** (string) - Required - The immediate question to ask. - **goal** (string) - Optional - The broader end goal to help tailor the response. ``` -------------------------------- ### POST /v2/invoice/static/subscribe Source: https://docs.trybit.com/api-reference-v2/static-wallets.md Activates a previously created static wallet. ```APIDOC ## POST /v2/invoice/static/subscribe ### Description Activates a previously created static wallet. ### Method POST ### Endpoint https://api.trybit.com/v2/invoice/static/subscribe ### Headers - **Authorization** (string) - Required - Project API key ### Request Body - **uuid** (string) - Required - Static wallet identifier ```