Mock Deposit
curl --request POST \
--url https://staging-api.getpartna.com/v4/mock/deposit \
--header 'Content-Type: application/json' \
--data '
{
"accountName": "",
"amount": 0,
"confirmations": 0,
"currency": "",
"fiatEvent": "",
"fromAddress": "",
"isRamp": false,
"network": "",
"reference": "",
"sourceAccount": "",
"transactionID": "",
"txHash": "",
"username": ""
}
'import requests
url = "https://staging-api.getpartna.com/v4/mock/deposit"
payload = {
"accountName": "",
"amount": 0,
"confirmations": 0,
"currency": "",
"fiatEvent": "",
"fromAddress": "",
"isRamp": False,
"network": "",
"reference": "",
"sourceAccount": "",
"transactionID": "",
"txHash": "",
"username": ""
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
accountName: '',
amount: 0,
confirmations: 0,
currency: '',
fiatEvent: '',
fromAddress: '',
isRamp: false,
network: '',
reference: '',
sourceAccount: '',
transactionID: '',
txHash: '',
username: ''
})
};
fetch('https://staging-api.getpartna.com/v4/mock/deposit', 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://staging-api.getpartna.com/v4/mock/deposit",
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([
'accountName' => '',
'amount' => 0,
'confirmations' => 0,
'currency' => '',
'fiatEvent' => '',
'fromAddress' => '',
'isRamp' => false,
'network' => '',
'reference' => '',
'sourceAccount' => '',
'transactionID' => '',
'txHash' => '',
'username' => ''
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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://staging-api.getpartna.com/v4/mock/deposit"
payload := strings.NewReader("{\n \"accountName\": \"\",\n \"amount\": 0,\n \"confirmations\": 0,\n \"currency\": \"\",\n \"fiatEvent\": \"\",\n \"fromAddress\": \"\",\n \"isRamp\": false,\n \"network\": \"\",\n \"reference\": \"\",\n \"sourceAccount\": \"\",\n \"transactionID\": \"\",\n \"txHash\": \"\",\n \"username\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://staging-api.getpartna.com/v4/mock/deposit")
.header("Content-Type", "application/json")
.body("{\n \"accountName\": \"\",\n \"amount\": 0,\n \"confirmations\": 0,\n \"currency\": \"\",\n \"fiatEvent\": \"\",\n \"fromAddress\": \"\",\n \"isRamp\": false,\n \"network\": \"\",\n \"reference\": \"\",\n \"sourceAccount\": \"\",\n \"transactionID\": \"\",\n \"txHash\": \"\",\n \"username\": \"\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://staging-api.getpartna.com/v4/mock/deposit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"accountName\": \"\",\n \"amount\": 0,\n \"confirmations\": 0,\n \"currency\": \"\",\n \"fiatEvent\": \"\",\n \"fromAddress\": \"\",\n \"isRamp\": false,\n \"network\": \"\",\n \"reference\": \"\",\n \"sourceAccount\": \"\",\n \"transactionID\": \"\",\n \"txHash\": \"\",\n \"username\": \"\"\n}"
response = http.request(request)
puts response.read_body{
"message": "deposit in progress!"
}{
"message": "Unsupported provider"
}{
"message": "Unable to process deposit"
}Mock (Staging Only)
Mock Deposit
Mock crypto and fiat deposit.
POST
/
mock
/
deposit
Mock Deposit
curl --request POST \
--url https://staging-api.getpartna.com/v4/mock/deposit \
--header 'Content-Type: application/json' \
--data '
{
"accountName": "",
"amount": 0,
"confirmations": 0,
"currency": "",
"fiatEvent": "",
"fromAddress": "",
"isRamp": false,
"network": "",
"reference": "",
"sourceAccount": "",
"transactionID": "",
"txHash": "",
"username": ""
}
'import requests
url = "https://staging-api.getpartna.com/v4/mock/deposit"
payload = {
"accountName": "",
"amount": 0,
"confirmations": 0,
"currency": "",
"fiatEvent": "",
"fromAddress": "",
"isRamp": False,
"network": "",
"reference": "",
"sourceAccount": "",
"transactionID": "",
"txHash": "",
"username": ""
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
accountName: '',
amount: 0,
confirmations: 0,
currency: '',
fiatEvent: '',
fromAddress: '',
isRamp: false,
network: '',
reference: '',
sourceAccount: '',
transactionID: '',
txHash: '',
username: ''
})
};
fetch('https://staging-api.getpartna.com/v4/mock/deposit', 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://staging-api.getpartna.com/v4/mock/deposit",
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([
'accountName' => '',
'amount' => 0,
'confirmations' => 0,
'currency' => '',
'fiatEvent' => '',
'fromAddress' => '',
'isRamp' => false,
'network' => '',
'reference' => '',
'sourceAccount' => '',
'transactionID' => '',
'txHash' => '',
'username' => ''
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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://staging-api.getpartna.com/v4/mock/deposit"
payload := strings.NewReader("{\n \"accountName\": \"\",\n \"amount\": 0,\n \"confirmations\": 0,\n \"currency\": \"\",\n \"fiatEvent\": \"\",\n \"fromAddress\": \"\",\n \"isRamp\": false,\n \"network\": \"\",\n \"reference\": \"\",\n \"sourceAccount\": \"\",\n \"transactionID\": \"\",\n \"txHash\": \"\",\n \"username\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://staging-api.getpartna.com/v4/mock/deposit")
.header("Content-Type", "application/json")
.body("{\n \"accountName\": \"\",\n \"amount\": 0,\n \"confirmations\": 0,\n \"currency\": \"\",\n \"fiatEvent\": \"\",\n \"fromAddress\": \"\",\n \"isRamp\": false,\n \"network\": \"\",\n \"reference\": \"\",\n \"sourceAccount\": \"\",\n \"transactionID\": \"\",\n \"txHash\": \"\",\n \"username\": \"\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://staging-api.getpartna.com/v4/mock/deposit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"accountName\": \"\",\n \"amount\": 0,\n \"confirmations\": 0,\n \"currency\": \"\",\n \"fiatEvent\": \"\",\n \"fromAddress\": \"\",\n \"isRamp\": false,\n \"network\": \"\",\n \"reference\": \"\",\n \"sourceAccount\": \"\",\n \"transactionID\": \"\",\n \"txHash\": \"\",\n \"username\": \"\"\n}"
response = http.request(request)
puts response.read_body{
"message": "deposit in progress!"
}{
"message": "Unsupported provider"
}{
"message": "Unable to process deposit"
}Body
application/json
Available options:
BNB, BTC, ETH, USDC, USDT, CUSD, NGN, KES Available options:
transfer.success Available options:
avalanche, base, binance, bitcoin, celo, ethereum, polygon, tron, solana, naira, kenyanshilling Response
post mock deposit ok
Was this page helpful?
⌘I