### Get Rate Response Structure Source: https://partner.swapuz.com/api-docs Example response structure for the GET rate request, detailing conversion results, fees, and limits. ```json { "result": { "result": 4.49885, //amount of the conversion result "amount": 0.1, //amount of the source cryptocurrency "rate": 44.9935, //current exchange rate "withdrawFee": 0.00050, //withdrawal fee "minAmount": 0.0011, //minimum amount for the exchange "maxAmount": 11.9870 //maximum amount for the exchange "requestID": "requestID" //request id }, "status": 200, } } } ``` -------------------------------- ### Create Order Response Structure Source: https://partner.swapuz.com/api-docs Example response structure for the POST order request, including details about the source and destination cryptocurrencies and their available networks. ```json { "result": { "uid": "UUID-1234567890", //unique order ID "from": { "id": 1, "name": "Bitcoin", "shortName": "BTC", "image": "https://swapuz.com/img/coin/user/22fe07ba-1188-44d1-92c6-00994cfc92e2.png", "isMemo": false, "isDeposit": true, "isWithdraw": true, "network": [ { "id": 1162, "name": "BNB Smart Chain (BEP20)", "shortName": "BSC", "fullName": "BNB Smart Chain (BEP20)", "regexAddress": "^(0x)[0-9A-Fa-f]{40}$", //regex validation of address in this network "isDeposit": true, "isWithdraw": true, "isDefault": false, //default network of source coin "withdrawFee": 0.0000039, //withdrawal fee for a source coin "memoRegex": "", "isMemo": false, "isActive": true, "minConfirmations": 15, "comment": null }, { "id": 506, "name": "Bitcoin", "shortName": "BTC", "fullName": "Bitcoin", "regexAddress": "^[13][a-km-zA-HJ-NP-Z1-9]{25,34}$|^[(bc1q)|(bc1p)][0-9A-Za-z]{37,62}$", "isDeposit": true, "isWithdraw": true, "isDefault": true, "withdrawFee": 0.000065, "memoRegex": "", "isMemo": false, "isActive": true, "minConfirmations": 1, "comment": null } ], "coinAmount": 0, "limitMin": 0, "limitMaxFloat": 0, "limitMaxFix": 0 }, "to": { "id": 3, "name": "Ethereum", "shortName": "ETH", "image": "https://swapuz.com/img/coin/user/1d5d6d6f-15d2-43f7-b78f-e22afe390b1e.png", "isMemo": false, "isDeposit": true, "isWithdraw": true, "network": [ { "id": 385, "name": "Ethereum (ERC20)", "shortName": "ETH", "fullName": "Ethereum (ERC20)", "regexAddress": "^(0x)[0-9A-Fa-f]{40}$", "isDeposit": true, "isWithdraw": true, "isDefault": true, "withdrawFee": 0.00053, "memoRegex": "", "isMemo": false, "isActive": true, "minConfirmations": 6, "comment": null }, { "id": 1106, "name": "BNB Smart Chain (BEP20)", "shortName": "BSC", "fullName": "BNB Smart Chain (BEP20)", "regexAddress": "^(0x)[0-9A-Fa-f]{40}$", "isDeposit": true, "isWithdraw": true, "isDefault": false, "withdrawFee": 0.000056, "memoRegex": "", "isMemo": false, "isActive": true, "minConfirmations": 15, ``` -------------------------------- ### Get Available Coins Source: https://partner.swapuz.com/api-docs Retrieves a paginated list of all available currencies supported by the Swapuz platform. ```APIDOC ## GET /api/home/v1/coins ### Description This endpoint returns the paginated list of available currencies. ### Method GET ### Endpoint `https://api.swapuz.com/api/home/v1/coins` ### Headers - **Accept**: application/json - **Content-Type**: application/json ### Response #### Success Response (200) - **result** (array) - A list of available coins, each with its details. - **id** (integer) - Unique identifier for the coin. - **name** (string) - Full name of the coin. - **shortName** (string) - Short symbol of the coin (e.g., BTC). - **image** (string) - URL to the coin's image. - **isMemo** (boolean) - Indicates if the coin requires a memo. - **rating** (integer) - Rating of the coin. - **network** (array) - List of supported networks for the coin. - **id** (integer) - Unique identifier for the network. - **name** (string) - Name of the network (e.g., Bitcoin, Ethereum (ERC20)). - **shortName** (string) - Short symbol for the network. - **fullName** (string) - Full name of the network. - **regexAddress** (string) - Regular expression for validating addresses on this network. - **isDeposit** (boolean) - Indicates if deposits are enabled for this network. - **isWithdraw** (boolean) - Indicates if withdrawals are enabled for this network. - **isDefault** (boolean) - Indicates if this is the default network for the coin. - **withdrawFee** (number) - The fee for withdrawing the coin on this network. - **memoRegex** (string) - Regular expression for validating memo on this network. - **isActive** (boolean) - Indicates if the network is active. - **minConfirmations** (integer) - Minimum confirmations required for transactions. - **comment** (string|null) - Additional comments about the network. - **coinAmount** (number) - Current amount of the coin held. - **limitMin** (number) - Minimum limit for the coin. - **limitMaxFloat** (number) - Maximum limit for the coin (float). - **limitMaxFix** (number) - Maximum limit for the coin (fixed). - **status** (integer) - HTTP status code. ``` -------------------------------- ### Get List of Available Currencies Source: https://partner.swapuz.com/api-docs Retrieves a paginated list of all currencies supported by the Swapuz platform. This endpoint requires an API key for authorization. ```curl curl --location --request GET 'https://api.swapuz.com/api/home/v1/coins' ``` -------------------------------- ### Example Order Response Source: https://partner.swapuz.com/api-docs This JSON structure represents a successful response when fetching order details. It includes information about the source and destination cryptocurrencies, amounts, addresses, and transaction IDs. ```json { "result": { "uid": "UUID-1234567890", "from": { "id": 1, "name": "Bitcoin", "shortName": "BTC", "image": "https://swapuz.com/img/coin/user/22fe07ba-1188-44d1-92c6-00994cfc92e2.png", "isMemo": false, "isDeposit": true, "isWithdraw": true, "network": [ { "id": 506, "name": "Bitcoin", "shortName": "BTC", "fullName": "Bitcoin", "regexAddress": "^[13][a-km-zA-HJ-NP-Z1-9]{25,34}$|^[(bc1q)|(bc1p)][0-9A-Za-z]{37,62}$", "isDeposit": true, "isWithdraw": true, "isDefault": true, "withdrawFee": 0.000065, "memoRegex": "", "isMemo": false, "isActive": true, "minConfirmations": 1, "comment": null }, { "id": 564, "name": "Ethereum (ERC20)", "shortName": "ETH", "fullName": "Ethereum (ERC20)", "regexAddress": "^(0x)[0-9A-Fa-f]{40}$", "isDeposit": true, "isWithdraw": true, "isDefault": false, "withdrawFee": 0.000067, "memoRegex": "", "isMemo": false, "isActive": true, "minConfirmations": 6, "comment": null } ], "coinAmount": 0, "limitMin": 0, "limitMaxFloat": 0, "limitMaxFix": 0 }, "to": { "id": 3, "name": "Ethereum", "shortName": "ETH", "image": "https://swapuz.com/img/coin/user/1d5d6d6f-15d2-43f7-b78f-e22afe390b1e.png", "isMemo": false, "isDeposit": true, "isWithdraw": true, "network": [ { "id": 385, "name": "Ethereum (ERC20)", "shortName": "ETH", "fullName": "Ethereum (ERC20)", "regexAddress": "^(0x)[0-9A-Fa-f]{40}$", "isDeposit": true, "isWithdraw": true, "isDefault": true, "withdrawFee": 0.00053, "memoRegex": "", "isMemo": false, "isActive": true, "minConfirmations": 6, "comment": null }, { "id": 1106, "name": "BNB Smart Chain (BEP20)", "shortName": "BSC", "fullName": "BNB Smart Chain (BEP20)", "regexAddress": "^(0x)[0-9A-Fa-f]{40}$", "isDeposit": true, "isWithdraw": true, "isDefault": false, "withdrawFee": 0.000056, "memoRegex": "", "isMemo": false, "isActive": true, "minConfirmations": 15, "comment": null } ], "coinAmount": 0, "limitMin": 0, "limitMaxFloat": 0, "limitMaxFix": 0 }, "amount": 0.1, "status": 0, "createDate": "2025-03-31T15:07:19.375182", "addressFrom": "0xAbCdEfGhIjKlMnOpQrStUvWxYz0123456789", "addressTo": "0xAbCdEfGhIjKlMnOpQrStUvWxYz0123456789", "addressFromNetwork": "BTC", "addressToNetwork": "ETH", "memoFrom": null, "memoTo": null, "amountResult": 4.49004135872, "modeCurs": "float", "mode": "float", "finishPayment": "2025-03-31T16:37:19.375184", "currentDate": "2025-03-31T15:15:37.1417474+00:00", "extraIdReceive": null, "addressRefund": null, "extraIdRefund": null, "withdrawalTransactionID": "https://blockchair.com/ethereum/transaction/?from=swapuz", "wTxId": null, "depositTransactionID": "https://blockchair.com/bitcoin/transaction/?from=swapuz", "dTxId": null, "amlError": false, "email": "example@email.com" }, "status": 200, "message": null } ``` -------------------------------- ### Get Exchange Rate (GET) Source: https://partner.swapuz.com/api-docs Fetches the current exchange rate and conversion details for a given pair and amount. Contact support for access. ```curl curl --location --request GET 'https://api.swapuz.com/api/home/v2/rate/?from=BTC&to=ETH&amount=0.1&fromNetwork=BTC&toNetwork=ETH&mode=float' ``` -------------------------------- ### Get Exchange Rate Source: https://partner.swapuz.com/api-docs Calculates the exchange rate between two currencies for a given amount and network. ```APIDOC ## GET /api/home/v1/rate/ ### Description This endpoint calculates the exchange rate between two currencies, considering the amount, networks, and mode of exchange. ### Method GET ### Endpoint `https://api.swapuz.com/api/home/v1/rate/` ### Query Parameters - **from** (string) - Required - The short name of the source currency. - **to** (string) - Required - The short name of the target currency. - **amount** (string) - Required - The amount of the source cryptocurrency to convert. - **fromNetwork** (string) - Required - The network of the source currency. - **toNetwork** (string) - Required - The network of the target currency. - **mode** (string) - Required - The mode of exchange (e.g., 'float'). ### Headers - **Accept**: application/json - **Content-Type**: application/json - **Authorization**: Api-key {API Key} ### Response #### Success Response (200) - **result** (object) - An object containing the exchange rate details. - **result** (number) - The calculated amount of the conversion result. - **amount** (number) - The amount of the source cryptocurrency. - **rate** (number) - The current exchange rate. - **withdrawFee** (number) - The withdrawal fee for the transaction. - **minAmount** (number) - The minimum amount required for the exchange. - **maxAmount** (number) - The maximum amount allowed for the exchange. - **status** (integer) - HTTP status code. ``` -------------------------------- ### Get Rate Source: https://partner.swapuz.com/api-docs Retrieves the current exchange rate for a given cryptocurrency pair and amount. Contact support for access. ```APIDOC ## GET /api/home/v2/rate ### Description Retrieves the current exchange rate and conversion details for a cryptocurrency exchange. Access to this method requires contacting support. ### Method GET ### Endpoint /api/home/v2/rate/ ### Parameters #### Query Parameters - **from** (string) - Required - The source cryptocurrency symbol (e.g., BTC). - **to** (string) - Required - The destination cryptocurrency symbol (e.g., ETH). - **amount** (string) - Required - The amount of the source cryptocurrency to convert. - **fromNetwork** (string) - Required - The network of the source cryptocurrency (e.g., BTC). - **toNetwork** (string) - Required - The network of the destination cryptocurrency (e.g., ETH). - **mode** (string) - Required - The exchange rate mode (e.g., float). ### Response #### Success Response (200) - **result** (object) - Contains the conversion details. - **result** (number) - The calculated amount of the destination cryptocurrency. - **amount** (number) - The amount of the source cryptocurrency. - **rate** (number) - The current exchange rate. - **withdrawFee** (number) - The withdrawal fee. - **minAmount** (number) - The minimum amount for the exchange. - **maxAmount** (number) - The maximum amount for the exchange. - **requestID** (string) - A unique identifier for the request. - **status** (number) - The HTTP status code of the response. ### Request Example ```bash curl --location --request GET 'https://api.swapuz.com/api/home/v2/rate/?from=BTC&to=ETH&amount=0.1&fromNetwork=BTC&toNetwork=ETH&mode=float' ``` ### Response Example ```json { "result": { "result": 4.49885, "amount": 0.1, "rate": 44.9935, "withdrawFee": 0.00050, "minAmount": 0.0011, "maxAmount": 11.9870, "requestID": "requestID" }, "status": 200 } ``` ``` -------------------------------- ### Get Coin Limits Source: https://partner.swapuz.com/api-docs Retrieves the minimum and maximum transaction limits for a specific cryptocurrency. ```APIDOC ## GET /api/home/getLimits ### Description This endpoint retrieves the minimum and maximum transaction limits for a given coin. ### Method GET ### Endpoint `https://api.swapuz.com/api/home/getLimits` ### Query Parameters - **coin** (string) - Required - The short name of the coin (e.g., BTC). ### Headers - **Accept**: application/json - **Content-Type**: application/json - **Authorization**: Api-key {API Key} ### Response #### Success Response (200) - **result** (object) - An object containing the limits for the specified coin. - **coin** (string) - The short name of the coin. - **minAmount** (number) - The minimum transaction amount for the coin. - **maxAmount** (number) - The maximum transaction amount for the coin. - **status** (integer) - HTTP status code. ``` -------------------------------- ### Get Order Details by UUID Source: https://partner.swapuz.com/api-docs Use this endpoint to retrieve detailed information about a specific order using its unique identifier (UUID). The status codes indicate the current stage of the order. ```bash curl --location -g --request GET 'https://api.swapuz.com/api/order/uid/UUID-1234567890' ``` -------------------------------- ### Get Transaction Limits for a Coin Source: https://partner.swapuz.com/api-docs Fetches the minimum and maximum transaction amounts for a specific cryptocurrency. Include your API key in the headers for authorization. The 'coin' parameter is required. ```curl curl --location -g --request GET 'https://api.swapuz.com/api/home/getLimits?coin=BTC' ``` -------------------------------- ### Get Exchange Rate for a Conversion Source: https://partner.swapuz.com/api-docs Calculates the exchange rate between two cryptocurrencies for a given amount. Ensure you provide all required parameters including 'from', 'to', 'amount', 'fromNetwork', and 'toNetwork'. Authorization with an API key is necessary. ```curl curl --location --request GET 'https://api.swapuz.com/api/home/v1/rate/?from=BTC&to=ETH&amount=0.1&fromNetwork=BTC&toNetwork=ETH&mode=float' ``` -------------------------------- ### Get Order by UID Source: https://partner.swapuz.com/api-docs Retrieves the details of a specific order using its unique identifier (UID). The status field indicates the current state of the order. ```APIDOC ## GET /api/order/uid/{UUID} ### Description Retrieves the details of a specific order using its unique identifier (UID). ### Method GET ### Endpoint `/api/order/uid/{UUID}` ### Parameters #### Path Parameters - **UUID** (string) - Required - The unique identifier of the order. ### Response #### Success Response (200) - **result** (object) - Contains the order details. - **uid** (string) - The unique identifier of the order. - **from** (object) - Details about the source currency. - **to** (object) - Details about the destination currency. - **amount** (number) - The amount of the source currency. - **status** (integer) - The current status of the order. See status codes below. - **createDate** (string) - The date and time the order was created. - **addressFrom** (string) - The source address for the transaction. - **addressTo** (string) - The destination address for the transaction. - **addressFromNetwork** (string) - The network of the source currency. - **addressToNetwork** (string) - The network of the destination currency. - **memoFrom** (string|null) - Memo for the source transaction, if applicable. - **memoTo** (string|null) - Memo for the destination transaction, if applicable. - **amountResult** (number) - The final amount after conversion. - **modeCurs** (string) - The currency mode (e.g., "float"). - **mode** (string|null) - The transaction mode. - **finishPayment** (string) - The date and time the payment was finished. - **currentDate** (string) - The current date and time. - **extraIdReceive** (string|null) - Extra ID for receiving, if applicable. - **addressRefund** (string|null) - Refund address, if applicable. - **extraIdRefund** (string|null) - Extra ID for refund, if applicable. - **withdrawalTransactionID** (string) - Transaction ID for withdrawal on the blockchain. - **wTxId** (string|null) - Withdrawal transaction ID. - **depositTransactionID** (string) - Transaction ID for deposit on the blockchain. - **dTxId** (string|null) - Deposit transaction ID. - **amlError** (boolean) - Indicates if there was an AML error. - **email** (string) - The email associated with the order. - **isEmailSent** (boolean) - Indicates if an email has been sent. ### Order Status Codes Number| Status ---|--- 0| Remaining to send funds 1-5| Transferring 6| Completed 10| Overdue ### Request Example ```bash curl --location -g --request GET 'https://api.swapuz.com/api/order/uid/UUID-1234567890' ``` ### Response Example ```json { "result": { "uid": "UUID-1234567890", "from": { "id": 1, "name": "Bitcoin", "shortName": "BTC", "image": "https://swapuz.com/img/coin/user/22fe07ba-1188-44d1-92c6-00994cfc92e2.png", "isMemo": false, "isDeposit": true, "isWithdraw": true, "network": [ { "id": 506, "name": "Bitcoin", "shortName": "BTC", "fullName": "Bitcoin", "regexAddress": "^[13][a-km-zA-HJ-NP-Z1-9]{25,34}$|^[(bc1q)|(bc1p)][0-9A-Za-z]{37,62}$", "isDeposit": true, "isWithdraw": true, "isDefault": true, "withdrawFee": 0.000065, "memoRegex": "", "isMemo": false, "isActive": true, "minConfirmations": 1, "comment": null } ], "coinAmount": 0, "limitMin": 0, "limitMaxFloat": 0, "limitMaxFix": 0 }, "to": { "id": 3, "name": "Ethereum", "shortName": "ETH", "image": "https://swapuz.com/img/coin/user/1d5d6d6f-15d2-43f7-b78f-e22afe390b1e.png", "isMemo": false, "isDeposit": true, "isWithdraw": true, "network": [ { "id": 385, "name": "Ethereum (ERC20)", "shortName": "ETH", "fullName": "Ethereum (ERC20)", "regexAddress": "^(0x)[0-9A-Fa-f]{40}$", "isDeposit": true, "isWithdraw": true, "isDefault": true, "withdrawFee": 0.00053, "memoRegex": "", "isMemo": false, "isActive": true, "minConfirmations": 6, "comment": null } ], "coinAmount": 0, "limitMin": 0, "limitMaxFloat": 0, "limitMaxFix": 0 }, "amount": 0.1, "status": 0, "createDate": "2025-03-31T15:07:19.375182", "addressFrom": "0xAbCdEfGhIjKlMnOpQrStUvWxYz0123456789", "addressTo": "0xAbCdEfGhIjKlMnOpQrStUvWxYz0123456789", "addressFromNetwork": "BTC", "addressToNetwork": "ETH", "memoFrom": null, "memoTo": null, "amountResult": 4.49004135872, "modeCurs": "float", "mode": "float", "finishPayment": "2025-03-31T16:37:19.375184", "currentDate": "2025-03-31T15:15:37.1417474+00:00", "extraIdReceive": null, "addressRefund": null, "extraIdRefund": null, "withdrawalTransactionID": "https://blockchair.com/ethereum/transaction/?from=swapuz", "wTxId": null, "depositTransactionID": "https://blockchair.com/bitcoin/transaction/?from=swapuz", "dTxId": null, "amlError": false, "email": "example@email.com", "isEmailSent": false }, "status": 200, "message": null } ``` ``` -------------------------------- ### List Partner Transactions Source: https://partner.swapuz.com/api-docs Retrieve a paginated list of partner transactions. You can filter by status, start date, and end date. The 'page' parameter is required. ```curl curl --location -g --request GET 'https://api.swapuz.com/api/partner/partnerPaginator?page=1' ``` -------------------------------- ### User Login Source: https://partner.swapuz.com/api-docs Authenticates a user and returns an access token. ```APIDOC ## POST /api/User/login ### Description Authenticates a user with provided credentials and returns a JWT token for subsequent requests. ### Method POST ### Endpoint https://api.swapuz.com/api/User/login ### Request Body - **login** (string) - Required - The username for login. - **password** (string) - Required - The password for login. ### Request Example ```json { "login": "user", "password": "password" } ``` ### Response #### Success Response (200) - **token** (string) - The authentication token. - **username** (string) - The logged-in username. - **expires** (string) - The expiration date and time of the token. #### Response Example ```json { "result": { "token": "token", "username": "User", "expires": "2022-12-22T07:09:06.7494883Z" }, "status": 200 } ``` ``` -------------------------------- ### Create Order Source: https://partner.swapuz.com/api-docs Creates a new cryptocurrency exchange order. This request uses an API Key from the partner collection. ```APIDOC ## POST /api/home/v1/order ### Description Creates a new cryptocurrency exchange order. Requires an API Key for authentication. ### Method POST ### Endpoint /api/home/v1/order ### Parameters #### Request Body - **from** (string) - Required - Source cryptocurrency symbol (e.g., BTC). - **fromNetwork** (string) - Required - Source blockchain network (e.g., BTC). - **to** (string) - Required - Destination cryptocurrency symbol (e.g., ETH). - **toNetwork** (string) - Required - Destination blockchain network (e.g., ETH). - **address** (string) - Required - Recipient's wallet address. - **memo** (string) - Optional - Memo address, required for some networks like XRP. - **amount** (number) - Required - Amount to exchange. - **uuid** (string) - Required - Unique identifier for the order. - **uuid2** (string) - Optional - Additional unique identifier. - **modeCurs** (string) - Required - Exchange rate mode (e.g., float). - **email** (string) - Required - User's email address. - **requestID** (string) - Optional - Identifier for the rate request. ### Request Example ```json { "from": "BTC", "fromNetwork": "BTC", "to": "ETH", "toNetwork": "ETH", "address": "0xAbCdEfGhIjKlMnOpQrStUvWxYz0123456789", "memo": "0xAbCdEfGhIjKlMnOpQrStUvWxYz0123456789", "amount": 0.1, "uuid": "UUID-1234567890", "uuid2": "UUID2-9876543210", "modeCurs": "float", "email": "example@email.com", "requestID": "requestID" } ``` ### Response #### Success Response (200) - **result** (object) - Contains details of the created order. - **uid** (string) - Unique order ID. - **from** (object) - Source coin details. - **to** (object) - Destination coin details. #### Response Example ```json { "result": { "uid": "UUID-1234567890", "from": { "id": 1, "name": "Bitcoin", "shortName": "BTC", "image": "https://swapuz.com/img/coin/user/22fe07ba-1188-44d1-92c6-00994cfc92e2.png", "isMemo": false, "isDeposit": true, "isWithdraw": true, "network": [ { "id": 1162, "name": "BNB Smart Chain (BEP20)", "shortName": "BSC", "fullName": "BNB Smart Chain (BEP20)", "regexAddress": "^(0x)[0-9A-Fa-f]{40}$", "isDeposit": true, "isWithdraw": true, "isDefault": false, "withdrawFee": 0.0000039, "memoRegex": "", "isMemo": false, "isActive": true, "minConfirmations": 15, "comment": null }, { "id": 506, "name": "Bitcoin", "shortName": "BTC", "fullName": "Bitcoin", "regexAddress": "^[13][a-km-zA-HJ-NP-Z1-9]{25,34}$|^[(bc1q)|(bc1p)][0-9A-Za-z]{37,62}$", "isDeposit": true, "isWithdraw": true, "isDefault": true, "withdrawFee": 0.000065, "memoRegex": "", "isMemo": false, "isActive": true, "minConfirmations": 1, "comment": null } ], "coinAmount": 0, "limitMin": 0, "limitMaxFloat": 0, "limitMaxFix": 0 }, "to": { "id": 3, "name": "Ethereum", "shortName": "ETH", "image": "https://swapuz.com/img/coin/user/1d5d6d6f-15d2-43f7-b78f-e22afe390b1e.png", "isMemo": false, "isDeposit": true, "isWithdraw": true, "network": [ { "id": 385, "name": "Ethereum (ERC20)", "shortName": "ETH", "fullName": "Ethereum (ERC20)", "regexAddress": "^(0x)[0-9A-Fa-f]{40}$", "isDeposit": true, "isWithdraw": true, "isDefault": true, "withdrawFee": 0.00053, "memoRegex": "", "isMemo": false, "isActive": true, "minConfirmations": 6, "comment": null }, { "id": 1106, "name": "BNB Smart Chain (BEP20)", "shortName": "BSC", "fullName": "BNB Smart Chain (BEP20)", "regexAddress": "^(0x)[0-9A-Fa-f]{40}$", "isDeposit": true, "isWithdraw": true, "isDefault": false, "withdrawFee": 0.000056, "memoRegex": "", "isMemo": false, "isActive": true, "minConfirmations": 15 } ], "coinAmount": 0, "limitMin": 0, "limitMaxFloat": 0, "limitMaxFix": 0 } } } } ``` ``` -------------------------------- ### Create Exchange Order (POST) Source: https://partner.swapuz.com/api-docs Creates a new cryptocurrency exchange order. Ensure you have your API key configured. The 'requestID' parameter is optional. ```curl curl --location --request POST 'https://api.swapuz.com/api/home/v1/order' ``` -------------------------------- ### Admin Login API Request Source: https://partner.swapuz.com/api-docs Use this endpoint to log in as an admin and obtain an authentication token. The request requires a JSON body with login credentials. ```curl curl --location --request POST 'https://api.swapuz.com/api/User/login' ``` ```json { "login": "user", "password": "password" } ``` -------------------------------- ### Create Order Request Body Source: https://partner.swapuz.com/api-docs Defines the parameters required to create an exchange order, including source and destination currencies, networks, amounts, recipient address, and optional identifiers. ```json { "from": "BTC", //source cryptocurrency "fromNetwork": "BTC", //source blockchain network "to": "ETH", //destination cryptocurrency "toNetwork": "ETH", //destination blockchain network "address": "0xAbCdEfGhIjKlMnOpQrStUvWxYz0123456789", //recipient's wallet address "memo": "0xAbCdEfGhIjKlMnOpQrStUvWxYz0123456789", //memo address (required for some networks like XRP) "amount": 0.1, //amount to exchange "uuid": "UUID-1234567890", //unique identifier for the order "uuid2": "UUID2-9876543210", //additional unique identifier (optional) "modeCurs": "float", //exchange rate mode (fixed or float) "email": "example@email.com" //user's email "requestID": "requestID" //optional } ``` -------------------------------- ### List Transactions Source: https://partner.swapuz.com/api-docs Retrieves a paginated list of partner transactions with optional filtering by status and date range. ```APIDOC ## GET /api/partner/partnerPaginator ### Description Retrieves a paginated list of partner transactions. You can filter transactions by status and date range. ### Method GET ### Endpoint https://api.swapuz.com/api/partner/partnerPaginator ### Parameters #### Query Parameters - **page** (number) - Required - The page number for pagination. - **status** (number) - Optional - Filters transactions by their status. Possible values: 0 (Remaining to send funds), 1-5 (Transferring), 6 (Completed), 10 (Overdue). - **startDate** (string) - Optional - Filters transactions starting from this date (YYYY-MM-DD). - **endDate** (string) - Optional - Filters transactions up to this date (YYYY-MM-DD). ### Request Example ```bash curl --location -g --request GET 'https://api.swapuz.com/api/partner/partnerPaginator?page=1' ``` ### Response #### Success Response (200) - **maxPage** (number) - The total number of pages available. - **currentPage** (number) - The current page number. - **result** (array) - An array of transaction objects. - **id** (number) - The unique identifier for the transaction. - **uid** (string) - A unique user identifier. - **createDate** (string) - The date and time the transaction was created. - **from** (string) - The currency sent. - **to** (string) - The currency received. - **partnerFee** (number) - The fee charged to the partner. - **amountResult** (number) - The final amount after fees. - **amount** (number) - The initial amount sent. - **amountBTC** (number) - The amount in BTC equivalent. - **startAmount** (number) - The initial amount of the transaction. - **status** (number) - The status of the transaction (0, 1-5, 6, 10). - **withdrawalTransactionID** (string|null) - The ID of the withdrawal transaction. - **wTxId** (string|null) - The transaction hash for withdrawal. - **depositTransactionID** (string|null) - The ID of the deposit transaction. - **dTxId** (string|null) - The transaction hash for deposit. - **amlError** (boolean) - Indicates if there was an AML (Anti-Money Laundering) error. - **depositAddress** (string) - The deposit address. - **depositMemo** (string|null) - Memo for the deposit. - **addressRefund** (string|null) - Refund address. - **extraIdRefund** (string|null) - Extra ID for refund. - **clickTagId** (string|null) - Click Tag ID. #### Response Example ```json { "result": { "maxPage": 1, "currentPage": 1, "result": [ { "id": 111, "uid": "UUID-1234567890", "createDate": "2025-03-24T12:57:35.362715", "from": "DOGE", "to": "USDT", "partnerFee": 0.000018, "amountResult": 70.74093, "amount": 444.4, "amountBTC": 0.000895, "startAmount": 444.4, "status": 10, "withdrawalTransactionID": null, "wTxId": null, "depositTransactionID": null, "dTxId": null, "amlError": false, "depositAddress": "0xAbCdEfGhIjKlMnOpQrStUvWxYz0123456789", "depositMemo": "", "addressRefund": null, "extraIdRefund": null, "clickTagId": null } ] }, "status": 200, "message": null } ``` ``` -------------------------------- ### Order Status Codes Source: https://partner.swapuz.com/api-docs Understanding the order status codes is crucial for tracking the progress of your transactions. These codes range from initial fund transfer requests to completed or overdue orders. ```markdown Type status: Number| Status ---|--- 0| Remaining to send funds 1-5| Transferring 6| Completed 10| Overdue ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.