Submit the payload to approve/reject new outgoing transaction
curl --request POST \
--url https://api.custody.api-zodia.io/v2/api/core/transactions/action \
--header 'Content-Type: application/json' \
--data '
{
"request": {
"author": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"domainId": "8a0b02c3-fdd8-452e-bc6e-ef07a335ec7e"
},
"targetDomainId": "6319e504-a82c-4cca-93a5-b46145310588",
"intentId": "d7492216-bec4-4daf-8326-5a05aaafe561",
"proposalSignature": "<string>",
"type": "Approve"
},
"signature": "MEUCIC3VIuw4pfk+BLnZrk1qklGS9phAlQFSQoAnlhw59x7cAiEAm5nq8ANlHcRNcONj5FXXl1v0EK5U8gZyQ22geFSsFL8="
}
'import requests
url = "https://api.custody.api-zodia.io/v2/api/core/transactions/action"
payload = {
"request": {
"author": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"domainId": "8a0b02c3-fdd8-452e-bc6e-ef07a335ec7e"
},
"targetDomainId": "6319e504-a82c-4cca-93a5-b46145310588",
"intentId": "d7492216-bec4-4daf-8326-5a05aaafe561",
"proposalSignature": "<string>",
"type": "Approve"
},
"signature": "MEUCIC3VIuw4pfk+BLnZrk1qklGS9phAlQFSQoAnlhw59x7cAiEAm5nq8ANlHcRNcONj5FXXl1v0EK5U8gZyQ22geFSsFL8="
}
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({
request: {
author: {
id: '497f6eca-6276-4993-bfeb-53cbbbba6f08',
domainId: '8a0b02c3-fdd8-452e-bc6e-ef07a335ec7e'
},
targetDomainId: '6319e504-a82c-4cca-93a5-b46145310588',
intentId: 'd7492216-bec4-4daf-8326-5a05aaafe561',
proposalSignature: '<string>',
type: 'Approve'
},
signature: 'MEUCIC3VIuw4pfk+BLnZrk1qklGS9phAlQFSQoAnlhw59x7cAiEAm5nq8ANlHcRNcONj5FXXl1v0EK5U8gZyQ22geFSsFL8='
})
};
fetch('https://api.custody.api-zodia.io/v2/api/core/transactions/action', 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/transactions/action",
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([
'request' => [
'author' => [
'id' => '497f6eca-6276-4993-bfeb-53cbbbba6f08',
'domainId' => '8a0b02c3-fdd8-452e-bc6e-ef07a335ec7e'
],
'targetDomainId' => '6319e504-a82c-4cca-93a5-b46145310588',
'intentId' => 'd7492216-bec4-4daf-8326-5a05aaafe561',
'proposalSignature' => '<string>',
'type' => 'Approve'
],
'signature' => 'MEUCIC3VIuw4pfk+BLnZrk1qklGS9phAlQFSQoAnlhw59x7cAiEAm5nq8ANlHcRNcONj5FXXl1v0EK5U8gZyQ22geFSsFL8='
]),
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/transactions/action"
payload := strings.NewReader("{\n \"request\": {\n \"author\": {\n \"id\": \"497f6eca-6276-4993-bfeb-53cbbbba6f08\",\n \"domainId\": \"8a0b02c3-fdd8-452e-bc6e-ef07a335ec7e\"\n },\n \"targetDomainId\": \"6319e504-a82c-4cca-93a5-b46145310588\",\n \"intentId\": \"d7492216-bec4-4daf-8326-5a05aaafe561\",\n \"proposalSignature\": \"<string>\",\n \"type\": \"Approve\"\n },\n \"signature\": \"MEUCIC3VIuw4pfk+BLnZrk1qklGS9phAlQFSQoAnlhw59x7cAiEAm5nq8ANlHcRNcONj5FXXl1v0EK5U8gZyQ22geFSsFL8=\"\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/transactions/action")
.header("Content-Type", "application/json")
.body("{\n \"request\": {\n \"author\": {\n \"id\": \"497f6eca-6276-4993-bfeb-53cbbbba6f08\",\n \"domainId\": \"8a0b02c3-fdd8-452e-bc6e-ef07a335ec7e\"\n },\n \"targetDomainId\": \"6319e504-a82c-4cca-93a5-b46145310588\",\n \"intentId\": \"d7492216-bec4-4daf-8326-5a05aaafe561\",\n \"proposalSignature\": \"<string>\",\n \"type\": \"Approve\"\n },\n \"signature\": \"MEUCIC3VIuw4pfk+BLnZrk1qklGS9phAlQFSQoAnlhw59x7cAiEAm5nq8ANlHcRNcONj5FXXl1v0EK5U8gZyQ22geFSsFL8=\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.custody.api-zodia.io/v2/api/core/transactions/action")
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 \"request\": {\n \"author\": {\n \"id\": \"497f6eca-6276-4993-bfeb-53cbbbba6f08\",\n \"domainId\": \"8a0b02c3-fdd8-452e-bc6e-ef07a335ec7e\"\n },\n \"targetDomainId\": \"6319e504-a82c-4cca-93a5-b46145310588\",\n \"intentId\": \"d7492216-bec4-4daf-8326-5a05aaafe561\",\n \"proposalSignature\": \"<string>\",\n \"type\": \"Approve\"\n },\n \"signature\": \"MEUCIC3VIuw4pfk+BLnZrk1qklGS9phAlQFSQoAnlhw59x7cAiEAm5nq8ANlHcRNcONj5FXXl1v0EK5U8gZyQ22geFSsFL8=\"\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 - TRANSACTIONS - V2
Submit the payload to approve/reject new outgoing transaction
POST
/
v2
/
api
/
core
/
transactions
/
action
Submit the payload to approve/reject new outgoing transaction
curl --request POST \
--url https://api.custody.api-zodia.io/v2/api/core/transactions/action \
--header 'Content-Type: application/json' \
--data '
{
"request": {
"author": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"domainId": "8a0b02c3-fdd8-452e-bc6e-ef07a335ec7e"
},
"targetDomainId": "6319e504-a82c-4cca-93a5-b46145310588",
"intentId": "d7492216-bec4-4daf-8326-5a05aaafe561",
"proposalSignature": "<string>",
"type": "Approve"
},
"signature": "MEUCIC3VIuw4pfk+BLnZrk1qklGS9phAlQFSQoAnlhw59x7cAiEAm5nq8ANlHcRNcONj5FXXl1v0EK5U8gZyQ22geFSsFL8="
}
'import requests
url = "https://api.custody.api-zodia.io/v2/api/core/transactions/action"
payload = {
"request": {
"author": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"domainId": "8a0b02c3-fdd8-452e-bc6e-ef07a335ec7e"
},
"targetDomainId": "6319e504-a82c-4cca-93a5-b46145310588",
"intentId": "d7492216-bec4-4daf-8326-5a05aaafe561",
"proposalSignature": "<string>",
"type": "Approve"
},
"signature": "MEUCIC3VIuw4pfk+BLnZrk1qklGS9phAlQFSQoAnlhw59x7cAiEAm5nq8ANlHcRNcONj5FXXl1v0EK5U8gZyQ22geFSsFL8="
}
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({
request: {
author: {
id: '497f6eca-6276-4993-bfeb-53cbbbba6f08',
domainId: '8a0b02c3-fdd8-452e-bc6e-ef07a335ec7e'
},
targetDomainId: '6319e504-a82c-4cca-93a5-b46145310588',
intentId: 'd7492216-bec4-4daf-8326-5a05aaafe561',
proposalSignature: '<string>',
type: 'Approve'
},
signature: 'MEUCIC3VIuw4pfk+BLnZrk1qklGS9phAlQFSQoAnlhw59x7cAiEAm5nq8ANlHcRNcONj5FXXl1v0EK5U8gZyQ22geFSsFL8='
})
};
fetch('https://api.custody.api-zodia.io/v2/api/core/transactions/action', 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/transactions/action",
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([
'request' => [
'author' => [
'id' => '497f6eca-6276-4993-bfeb-53cbbbba6f08',
'domainId' => '8a0b02c3-fdd8-452e-bc6e-ef07a335ec7e'
],
'targetDomainId' => '6319e504-a82c-4cca-93a5-b46145310588',
'intentId' => 'd7492216-bec4-4daf-8326-5a05aaafe561',
'proposalSignature' => '<string>',
'type' => 'Approve'
],
'signature' => 'MEUCIC3VIuw4pfk+BLnZrk1qklGS9phAlQFSQoAnlhw59x7cAiEAm5nq8ANlHcRNcONj5FXXl1v0EK5U8gZyQ22geFSsFL8='
]),
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/transactions/action"
payload := strings.NewReader("{\n \"request\": {\n \"author\": {\n \"id\": \"497f6eca-6276-4993-bfeb-53cbbbba6f08\",\n \"domainId\": \"8a0b02c3-fdd8-452e-bc6e-ef07a335ec7e\"\n },\n \"targetDomainId\": \"6319e504-a82c-4cca-93a5-b46145310588\",\n \"intentId\": \"d7492216-bec4-4daf-8326-5a05aaafe561\",\n \"proposalSignature\": \"<string>\",\n \"type\": \"Approve\"\n },\n \"signature\": \"MEUCIC3VIuw4pfk+BLnZrk1qklGS9phAlQFSQoAnlhw59x7cAiEAm5nq8ANlHcRNcONj5FXXl1v0EK5U8gZyQ22geFSsFL8=\"\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/transactions/action")
.header("Content-Type", "application/json")
.body("{\n \"request\": {\n \"author\": {\n \"id\": \"497f6eca-6276-4993-bfeb-53cbbbba6f08\",\n \"domainId\": \"8a0b02c3-fdd8-452e-bc6e-ef07a335ec7e\"\n },\n \"targetDomainId\": \"6319e504-a82c-4cca-93a5-b46145310588\",\n \"intentId\": \"d7492216-bec4-4daf-8326-5a05aaafe561\",\n \"proposalSignature\": \"<string>\",\n \"type\": \"Approve\"\n },\n \"signature\": \"MEUCIC3VIuw4pfk+BLnZrk1qklGS9phAlQFSQoAnlhw59x7cAiEAm5nq8ANlHcRNcONj5FXXl1v0EK5U8gZyQ22geFSsFL8=\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.custody.api-zodia.io/v2/api/core/transactions/action")
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 \"request\": {\n \"author\": {\n \"id\": \"497f6eca-6276-4993-bfeb-53cbbbba6f08\",\n \"domainId\": \"8a0b02c3-fdd8-452e-bc6e-ef07a335ec7e\"\n },\n \"targetDomainId\": \"6319e504-a82c-4cca-93a5-b46145310588\",\n \"intentId\": \"d7492216-bec4-4daf-8326-5a05aaafe561\",\n \"proposalSignature\": \"<string>\",\n \"type\": \"Approve\"\n },\n \"signature\": \"MEUCIC3VIuw4pfk+BLnZrk1qklGS9phAlQFSQoAnlhw59x7cAiEAm5nq8ANlHcRNcONj5FXXl1v0EK5U8gZyQ22geFSsFL8=\"\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
Response
OK
Id of the entity
Get the payload to approve/reject new outgoing transaction
Previous
Get an outgoing transaction by ID
Next
⌘I