Create new wallet
curl --request POST \
--url https://api.custody.api-zodia.io/v2/api/core/wallets \
--header 'Content-Type: application/json' \
--data '
{
"name": "Demo wallet",
"currency": "<string>",
"submitterEmail": "api-maker@zodia.io",
"walletId": "ZTEST-NOBENF-849P8XKKAO",
"beneficiaryId": "BNF-ZTEST-0DFUSJPF7A"
}
'import requests
url = "https://api.custody.api-zodia.io/v2/api/core/wallets"
payload = {
"name": "Demo wallet",
"currency": "<string>",
"submitterEmail": "api-maker@zodia.io",
"walletId": "ZTEST-NOBENF-849P8XKKAO",
"beneficiaryId": "BNF-ZTEST-0DFUSJPF7A"
}
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({
name: 'Demo wallet',
currency: '<string>',
submitterEmail: 'api-maker@zodia.io',
walletId: 'ZTEST-NOBENF-849P8XKKAO',
beneficiaryId: 'BNF-ZTEST-0DFUSJPF7A'
})
};
fetch('https://api.custody.api-zodia.io/v2/api/core/wallets', 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://api.custody.api-zodia.io/v2/api/core/wallets",
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([
'name' => 'Demo wallet',
'currency' => '<string>',
'submitterEmail' => 'api-maker@zodia.io',
'walletId' => 'ZTEST-NOBENF-849P8XKKAO',
'beneficiaryId' => 'BNF-ZTEST-0DFUSJPF7A'
]),
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://api.custody.api-zodia.io/v2/api/core/wallets"
payload := strings.NewReader("{\n \"name\": \"Demo wallet\",\n \"currency\": \"<string>\",\n \"submitterEmail\": \"api-maker@zodia.io\",\n \"walletId\": \"ZTEST-NOBENF-849P8XKKAO\",\n \"beneficiaryId\": \"BNF-ZTEST-0DFUSJPF7A\"\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://api.custody.api-zodia.io/v2/api/core/wallets")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Demo wallet\",\n \"currency\": \"<string>\",\n \"submitterEmail\": \"api-maker@zodia.io\",\n \"walletId\": \"ZTEST-NOBENF-849P8XKKAO\",\n \"beneficiaryId\": \"BNF-ZTEST-0DFUSJPF7A\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.custody.api-zodia.io/v2/api/core/wallets")
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 \"name\": \"Demo wallet\",\n \"currency\": \"<string>\",\n \"submitterEmail\": \"api-maker@zodia.io\",\n \"walletId\": \"ZTEST-NOBENF-849P8XKKAO\",\n \"beneficiaryId\": \"BNF-ZTEST-0DFUSJPF7A\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>"
}{
"timestamp": "2021-10-27T14:30:13.912Z",
"title": "Method Not Allowed",
"status": 415,
"details": [
{
"message": "Available methods : GET,POST",
"code": "ER-204"
}
]
}{
"timestamp": "2021-10-27T14:30:13.912Z",
"title": "Method Not Allowed",
"status": 415,
"details": [
{
"message": "Available methods : GET,POST",
"code": "ER-204"
}
]
}{
"timestamp": "2021-10-27T14:30:13.912Z",
"title": "Method Not Allowed",
"status": 415,
"details": [
{
"message": "Available methods : GET,POST",
"code": "ER-204"
}
]
}{
"timestamp": "2021-10-27T14:30:13.912Z",
"title": "Method Not Allowed",
"status": 415,
"details": [
{
"message": "Available methods : GET,POST",
"code": "ER-204"
}
]
}API - WALLETS - V2
Create new wallet
POST
/
v2
/
api
/
core
/
wallets
Create new wallet
curl --request POST \
--url https://api.custody.api-zodia.io/v2/api/core/wallets \
--header 'Content-Type: application/json' \
--data '
{
"name": "Demo wallet",
"currency": "<string>",
"submitterEmail": "api-maker@zodia.io",
"walletId": "ZTEST-NOBENF-849P8XKKAO",
"beneficiaryId": "BNF-ZTEST-0DFUSJPF7A"
}
'import requests
url = "https://api.custody.api-zodia.io/v2/api/core/wallets"
payload = {
"name": "Demo wallet",
"currency": "<string>",
"submitterEmail": "api-maker@zodia.io",
"walletId": "ZTEST-NOBENF-849P8XKKAO",
"beneficiaryId": "BNF-ZTEST-0DFUSJPF7A"
}
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({
name: 'Demo wallet',
currency: '<string>',
submitterEmail: 'api-maker@zodia.io',
walletId: 'ZTEST-NOBENF-849P8XKKAO',
beneficiaryId: 'BNF-ZTEST-0DFUSJPF7A'
})
};
fetch('https://api.custody.api-zodia.io/v2/api/core/wallets', 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://api.custody.api-zodia.io/v2/api/core/wallets",
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([
'name' => 'Demo wallet',
'currency' => '<string>',
'submitterEmail' => 'api-maker@zodia.io',
'walletId' => 'ZTEST-NOBENF-849P8XKKAO',
'beneficiaryId' => 'BNF-ZTEST-0DFUSJPF7A'
]),
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://api.custody.api-zodia.io/v2/api/core/wallets"
payload := strings.NewReader("{\n \"name\": \"Demo wallet\",\n \"currency\": \"<string>\",\n \"submitterEmail\": \"api-maker@zodia.io\",\n \"walletId\": \"ZTEST-NOBENF-849P8XKKAO\",\n \"beneficiaryId\": \"BNF-ZTEST-0DFUSJPF7A\"\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://api.custody.api-zodia.io/v2/api/core/wallets")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Demo wallet\",\n \"currency\": \"<string>\",\n \"submitterEmail\": \"api-maker@zodia.io\",\n \"walletId\": \"ZTEST-NOBENF-849P8XKKAO\",\n \"beneficiaryId\": \"BNF-ZTEST-0DFUSJPF7A\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.custody.api-zodia.io/v2/api/core/wallets")
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 \"name\": \"Demo wallet\",\n \"currency\": \"<string>\",\n \"submitterEmail\": \"api-maker@zodia.io\",\n \"walletId\": \"ZTEST-NOBENF-849P8XKKAO\",\n \"beneficiaryId\": \"BNF-ZTEST-0DFUSJPF7A\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>"
}{
"timestamp": "2021-10-27T14:30:13.912Z",
"title": "Method Not Allowed",
"status": 415,
"details": [
{
"message": "Available methods : GET,POST",
"code": "ER-204"
}
]
}{
"timestamp": "2021-10-27T14:30:13.912Z",
"title": "Method Not Allowed",
"status": 415,
"details": [
{
"message": "Available methods : GET,POST",
"code": "ER-204"
}
]
}{
"timestamp": "2021-10-27T14:30:13.912Z",
"title": "Method Not Allowed",
"status": 415,
"details": [
{
"message": "Available methods : GET,POST",
"code": "ER-204"
}
]
}{
"timestamp": "2021-10-27T14:30:13.912Z",
"title": "Method Not Allowed",
"status": 415,
"details": [
{
"message": "Available methods : GET,POST",
"code": "ER-204"
}
]
}Body
application/json
Display name of the wallet
Required string length:
1 - 128Pattern:
^[a-zA-Z0-9 -]+$Example:
"Demo wallet"
Currency of the wallet
Mail of the user creating the wallet
Example:
"api-maker@zodia.io"
ID of the wallet
Required string length:
1 - 40Pattern:
<companyId>-[NOBENF|<beneficiaryId>]-API-*Example:
"ZTEST-NOBENF-849P8XKKAO"
ID of the beneficiary of the wallet
Required string length:
14 - 32Example:
"BNF-ZTEST-0DFUSJPF7A"
Response
OK
Id of the entity
⌘I