Create Deposit
curl --request POST \
--url https://sandbox-api.axisfi.net/api/deposit/create \
--header 'Api-Version: <api-version>' \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--header 'X-API-Secret: <api-key>' \
--data '
{
"partner_transaction_id": "<string>",
"account_currency": "USDT",
"amount": 99.99,
"network": "ETH"
}
'import requests
url = "https://sandbox-api.axisfi.net/api/deposit/create"
payload = {
"partner_transaction_id": "<string>",
"account_currency": "USDT",
"amount": 99.99,
"network": "ETH"
}
headers = {
"Api-Version": "<api-version>",
"X-API-Key": "<api-key>",
"X-API-Secret": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Api-Version': '<api-version>',
'X-API-Key': '<api-key>',
'X-API-Secret': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
partner_transaction_id: '<string>',
account_currency: 'USDT',
amount: 99.99,
network: 'ETH'
})
};
fetch('https://sandbox-api.axisfi.net/api/deposit/create', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox-api.axisfi.net/api/deposit/create",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'partner_transaction_id' => '<string>',
'account_currency' => 'USDT',
'amount' => 99.99,
'network' => 'ETH'
]),
CURLOPT_HTTPHEADER => [
"Api-Version: <api-version>",
"Content-Type: application/json",
"X-API-Key: <api-key>",
"X-API-Secret: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox-api.axisfi.net/api/deposit/create"
payload := strings.NewReader("{\n \"partner_transaction_id\": \"<string>\",\n \"account_currency\": \"USDT\",\n \"amount\": 99.99,\n \"network\": \"ETH\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Api-Version", "<api-version>")
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("X-API-Secret", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sandbox-api.axisfi.net/api/deposit/create")
.header("Api-Version", "<api-version>")
.header("X-API-Key", "<api-key>")
.header("X-API-Secret", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"partner_transaction_id\": \"<string>\",\n \"account_currency\": \"USDT\",\n \"amount\": 99.99,\n \"network\": \"ETH\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-api.axisfi.net/api/deposit/create")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Api-Version"] = '<api-version>'
request["X-API-Key"] = '<api-key>'
request["X-API-Secret"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"partner_transaction_id\": \"<string>\",\n \"account_currency\": \"USDT\",\n \"amount\": 99.99,\n \"network\": \"ETH\"\n}"
response = http.request(request)
puts response.read_body{
"partner_transaction_id": "<string>",
"account_currency": "USDT",
"amount": 99.99,
"transaction_id": "txn_d74ee9e30d3345fcba469e282450783a",
"transaction_type": "deposit",
"source_wallet_address": "0x94a84aBd3198874A84f4a61083c52Ed7eE61077f",
"target_wallet_address": "0x94a84aBd3198874A84f4a61083c52Ed7eE61077f",
"network": "ETH",
"status": "completed",
"created_at": "2023-11-07T05:31:56Z",
"audit_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z"
}{
"errors": [
{
"detail": "<string>",
"code": "<string>"
}
]
}{
"errors": [
{
"detail": "<string>",
"code": "<string>"
}
]
}{
"errors": [
{
"detail": "<string>",
"code": "<string>"
}
]
}{
"errors": [
{
"detail": "<string>",
"code": "<string>"
}
]
}{
"errors": [
{
"detail": "Invalid organizationId",
"code": "ORG_ID_INVALID"
}
]
}{
"errors": [
{
"detail": "<string>",
"code": "<string>"
}
]
}{
"partner_transaction_id": "<string>",
"account_currency": "USDT",
"amount": 99.99,
"transaction_id": "txn_d74ee9e30d3345fcba469e282450783a",
"transaction_type": "deposit",
"source_wallet_address": "0x94a84aBd3198874A84f4a61083c52Ed7eE61077f",
"target_wallet_address": "0x94a84aBd3198874A84f4a61083c52Ed7eE61077f",
"network": "ETH",
"status": "completed",
"created_at": "2023-11-07T05:31:56Z",
"audit_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z"
}Deposit
Create Deposit
Deposits funds into your AxisFI account
POST
/
api
/
deposit
/
create
Create Deposit
curl --request POST \
--url https://sandbox-api.axisfi.net/api/deposit/create \
--header 'Api-Version: <api-version>' \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--header 'X-API-Secret: <api-key>' \
--data '
{
"partner_transaction_id": "<string>",
"account_currency": "USDT",
"amount": 99.99,
"network": "ETH"
}
'import requests
url = "https://sandbox-api.axisfi.net/api/deposit/create"
payload = {
"partner_transaction_id": "<string>",
"account_currency": "USDT",
"amount": 99.99,
"network": "ETH"
}
headers = {
"Api-Version": "<api-version>",
"X-API-Key": "<api-key>",
"X-API-Secret": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Api-Version': '<api-version>',
'X-API-Key': '<api-key>',
'X-API-Secret': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
partner_transaction_id: '<string>',
account_currency: 'USDT',
amount: 99.99,
network: 'ETH'
})
};
fetch('https://sandbox-api.axisfi.net/api/deposit/create', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox-api.axisfi.net/api/deposit/create",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'partner_transaction_id' => '<string>',
'account_currency' => 'USDT',
'amount' => 99.99,
'network' => 'ETH'
]),
CURLOPT_HTTPHEADER => [
"Api-Version: <api-version>",
"Content-Type: application/json",
"X-API-Key: <api-key>",
"X-API-Secret: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox-api.axisfi.net/api/deposit/create"
payload := strings.NewReader("{\n \"partner_transaction_id\": \"<string>\",\n \"account_currency\": \"USDT\",\n \"amount\": 99.99,\n \"network\": \"ETH\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Api-Version", "<api-version>")
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("X-API-Secret", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sandbox-api.axisfi.net/api/deposit/create")
.header("Api-Version", "<api-version>")
.header("X-API-Key", "<api-key>")
.header("X-API-Secret", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"partner_transaction_id\": \"<string>\",\n \"account_currency\": \"USDT\",\n \"amount\": 99.99,\n \"network\": \"ETH\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-api.axisfi.net/api/deposit/create")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Api-Version"] = '<api-version>'
request["X-API-Key"] = '<api-key>'
request["X-API-Secret"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"partner_transaction_id\": \"<string>\",\n \"account_currency\": \"USDT\",\n \"amount\": 99.99,\n \"network\": \"ETH\"\n}"
response = http.request(request)
puts response.read_body{
"partner_transaction_id": "<string>",
"account_currency": "USDT",
"amount": 99.99,
"transaction_id": "txn_d74ee9e30d3345fcba469e282450783a",
"transaction_type": "deposit",
"source_wallet_address": "0x94a84aBd3198874A84f4a61083c52Ed7eE61077f",
"target_wallet_address": "0x94a84aBd3198874A84f4a61083c52Ed7eE61077f",
"network": "ETH",
"status": "completed",
"created_at": "2023-11-07T05:31:56Z",
"audit_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z"
}{
"errors": [
{
"detail": "<string>",
"code": "<string>"
}
]
}{
"errors": [
{
"detail": "<string>",
"code": "<string>"
}
]
}{
"errors": [
{
"detail": "<string>",
"code": "<string>"
}
]
}{
"errors": [
{
"detail": "<string>",
"code": "<string>"
}
]
}{
"errors": [
{
"detail": "Invalid organizationId",
"code": "ORG_ID_INVALID"
}
]
}{
"errors": [
{
"detail": "<string>",
"code": "<string>"
}
]
}{
"partner_transaction_id": "<string>",
"account_currency": "USDT",
"amount": 99.99,
"transaction_id": "txn_d74ee9e30d3345fcba469e282450783a",
"transaction_type": "deposit",
"source_wallet_address": "0x94a84aBd3198874A84f4a61083c52Ed7eE61077f",
"target_wallet_address": "0x94a84aBd3198874A84f4a61083c52Ed7eE61077f",
"network": "ETH",
"status": "completed",
"created_at": "2023-11-07T05:31:56Z",
"audit_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z"
}Authorizations
Includes an API key in the HTTP headers to authenticate the client.
Includes an API secret in the HTTP headers to authenticate the client.
Headers
AxisFi API contract version
Available options:
2024-12-01 Body
application/json
Partner Transaction Id
Required string length:
20 - 64Source Currency
Available options:
USDT, USDC, USD Required string length:
2 - 10Pattern:
USDT|USDC|USDExample:
"USDT"
Amount
Required range:
0.01 < x < 100000000Example:
99.99
Network
Available options:
ETH, TRX Pattern:
^(ETH|TRX)$Example:
"ETH"
Response
Operation Successful
Partner Transaction Id
Required string length:
20 - 64Account Currency
Available options:
USDT, USDC, USD Example:
"USDT"
Amount
Required range:
0.01 <= x <= 100000000Example:
99.99
Unique Transaction ID
Example:
"txn_d74ee9e30d3345fcba469e282450783a"
Transaction Type
Available options:
deposit Source Wallet Address
Example:
"0x94a84aBd3198874A84f4a61083c52Ed7eE61077f"
Target Wallet Address
Example:
"0x94a84aBd3198874A84f4a61083c52Ed7eE61077f"
Network
Available options:
ETH, TRX Example:
"ETH"
Status
Available options:
pending, completed, failed Example:
"completed"

