curl --request POST \
--url https://api.nxos.io/v1/service/transfer/quote/accept \
--header 'Content-Type: application/json' \
--data '
{
"quote_id": "<string>",
"value": {
"asset": "<string>",
"amount": "<string>"
},
"info": {},
"transaction": {
"asset_moves": [
{
"source_account": {
"ref": "<string>",
"id": "<string>"
},
"destination_account": {
"ref": "<string>",
"id": "<string>"
},
"asset_code": "<string>",
"amount": "<string>",
"asset_move_ref": "<string>",
"type": "<string>",
"categories": [
"<string>"
],
"metadata": {}
}
],
"transaction_ref": "<string>",
"metadata": {}
},
"provider": "<string>"
}
'import requests
url = "https://api.nxos.io/v1/service/transfer/quote/accept"
payload = {
"quote_id": "<string>",
"value": {
"asset": "<string>",
"amount": "<string>"
},
"info": {},
"transaction": {
"asset_moves": [
{
"source_account": {
"ref": "<string>",
"id": "<string>"
},
"destination_account": {
"ref": "<string>",
"id": "<string>"
},
"asset_code": "<string>",
"amount": "<string>",
"asset_move_ref": "<string>",
"type": "<string>",
"categories": ["<string>"],
"metadata": {}
}
],
"transaction_ref": "<string>",
"metadata": {}
},
"provider": "<string>"
}
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({
quote_id: '<string>',
value: {asset: '<string>', amount: '<string>'},
info: {},
transaction: {
asset_moves: [
{
source_account: {ref: '<string>', id: '<string>'},
destination_account: {ref: '<string>', id: '<string>'},
asset_code: '<string>',
amount: '<string>',
asset_move_ref: '<string>',
type: '<string>',
categories: ['<string>'],
metadata: {}
}
],
transaction_ref: '<string>',
metadata: {}
},
provider: '<string>'
})
};
fetch('https://api.nxos.io/v1/service/transfer/quote/accept', 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.nxos.io/v1/service/transfer/quote/accept",
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([
'quote_id' => '<string>',
'value' => [
'asset' => '<string>',
'amount' => '<string>'
],
'info' => [
],
'transaction' => [
'asset_moves' => [
[
'source_account' => [
'ref' => '<string>',
'id' => '<string>'
],
'destination_account' => [
'ref' => '<string>',
'id' => '<string>'
],
'asset_code' => '<string>',
'amount' => '<string>',
'asset_move_ref' => '<string>',
'type' => '<string>',
'categories' => [
'<string>'
],
'metadata' => [
]
]
],
'transaction_ref' => '<string>',
'metadata' => [
]
],
'provider' => '<string>'
]),
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.nxos.io/v1/service/transfer/quote/accept"
payload := strings.NewReader("{\n \"quote_id\": \"<string>\",\n \"value\": {\n \"asset\": \"<string>\",\n \"amount\": \"<string>\"\n },\n \"info\": {},\n \"transaction\": {\n \"asset_moves\": [\n {\n \"source_account\": {\n \"ref\": \"<string>\",\n \"id\": \"<string>\"\n },\n \"destination_account\": {\n \"ref\": \"<string>\",\n \"id\": \"<string>\"\n },\n \"asset_code\": \"<string>\",\n \"amount\": \"<string>\",\n \"asset_move_ref\": \"<string>\",\n \"type\": \"<string>\",\n \"categories\": [\n \"<string>\"\n ],\n \"metadata\": {}\n }\n ],\n \"transaction_ref\": \"<string>\",\n \"metadata\": {}\n },\n \"provider\": \"<string>\"\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.nxos.io/v1/service/transfer/quote/accept")
.header("Content-Type", "application/json")
.body("{\n \"quote_id\": \"<string>\",\n \"value\": {\n \"asset\": \"<string>\",\n \"amount\": \"<string>\"\n },\n \"info\": {},\n \"transaction\": {\n \"asset_moves\": [\n {\n \"source_account\": {\n \"ref\": \"<string>\",\n \"id\": \"<string>\"\n },\n \"destination_account\": {\n \"ref\": \"<string>\",\n \"id\": \"<string>\"\n },\n \"asset_code\": \"<string>\",\n \"amount\": \"<string>\",\n \"asset_move_ref\": \"<string>\",\n \"type\": \"<string>\",\n \"categories\": [\n \"<string>\"\n ],\n \"metadata\": {}\n }\n ],\n \"transaction_ref\": \"<string>\",\n \"metadata\": {}\n },\n \"provider\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nxos.io/v1/service/transfer/quote/accept")
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 \"quote_id\": \"<string>\",\n \"value\": {\n \"asset\": \"<string>\",\n \"amount\": \"<string>\"\n },\n \"info\": {},\n \"transaction\": {\n \"asset_moves\": [\n {\n \"source_account\": {\n \"ref\": \"<string>\",\n \"id\": \"<string>\"\n },\n \"destination_account\": {\n \"ref\": \"<string>\",\n \"id\": \"<string>\"\n },\n \"asset_code\": \"<string>\",\n \"amount\": \"<string>\",\n \"asset_move_ref\": \"<string>\",\n \"type\": \"<string>\",\n \"categories\": [\n \"<string>\"\n ],\n \"metadata\": {}\n }\n ],\n \"transaction_ref\": \"<string>\",\n \"metadata\": {}\n },\n \"provider\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"transaction_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"asset_moves": [
{
"asset_move_ref": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"source_account": {
"ref": "<string>",
"id": "<string>"
},
"destination_account": {
"ref": "<string>",
"id": "<string>"
},
"asset_code": "<string>",
"amount": "<string>",
"type": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"decline_type": "<string>",
"categories": [
"<string>"
],
"metadata": {}
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"transaction_ref": "<string>",
"metadata": {}
}Accept Quote
Accepts a quote and initiates a transfer.
This endpoint allows accepting a previously obtained quote to initiate a transfer to the specified destination. The transfer will debit the source account and initiate the transfer to the destination according to the quote details.
curl --request POST \
--url https://api.nxos.io/v1/service/transfer/quote/accept \
--header 'Content-Type: application/json' \
--data '
{
"quote_id": "<string>",
"value": {
"asset": "<string>",
"amount": "<string>"
},
"info": {},
"transaction": {
"asset_moves": [
{
"source_account": {
"ref": "<string>",
"id": "<string>"
},
"destination_account": {
"ref": "<string>",
"id": "<string>"
},
"asset_code": "<string>",
"amount": "<string>",
"asset_move_ref": "<string>",
"type": "<string>",
"categories": [
"<string>"
],
"metadata": {}
}
],
"transaction_ref": "<string>",
"metadata": {}
},
"provider": "<string>"
}
'import requests
url = "https://api.nxos.io/v1/service/transfer/quote/accept"
payload = {
"quote_id": "<string>",
"value": {
"asset": "<string>",
"amount": "<string>"
},
"info": {},
"transaction": {
"asset_moves": [
{
"source_account": {
"ref": "<string>",
"id": "<string>"
},
"destination_account": {
"ref": "<string>",
"id": "<string>"
},
"asset_code": "<string>",
"amount": "<string>",
"asset_move_ref": "<string>",
"type": "<string>",
"categories": ["<string>"],
"metadata": {}
}
],
"transaction_ref": "<string>",
"metadata": {}
},
"provider": "<string>"
}
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({
quote_id: '<string>',
value: {asset: '<string>', amount: '<string>'},
info: {},
transaction: {
asset_moves: [
{
source_account: {ref: '<string>', id: '<string>'},
destination_account: {ref: '<string>', id: '<string>'},
asset_code: '<string>',
amount: '<string>',
asset_move_ref: '<string>',
type: '<string>',
categories: ['<string>'],
metadata: {}
}
],
transaction_ref: '<string>',
metadata: {}
},
provider: '<string>'
})
};
fetch('https://api.nxos.io/v1/service/transfer/quote/accept', 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.nxos.io/v1/service/transfer/quote/accept",
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([
'quote_id' => '<string>',
'value' => [
'asset' => '<string>',
'amount' => '<string>'
],
'info' => [
],
'transaction' => [
'asset_moves' => [
[
'source_account' => [
'ref' => '<string>',
'id' => '<string>'
],
'destination_account' => [
'ref' => '<string>',
'id' => '<string>'
],
'asset_code' => '<string>',
'amount' => '<string>',
'asset_move_ref' => '<string>',
'type' => '<string>',
'categories' => [
'<string>'
],
'metadata' => [
]
]
],
'transaction_ref' => '<string>',
'metadata' => [
]
],
'provider' => '<string>'
]),
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.nxos.io/v1/service/transfer/quote/accept"
payload := strings.NewReader("{\n \"quote_id\": \"<string>\",\n \"value\": {\n \"asset\": \"<string>\",\n \"amount\": \"<string>\"\n },\n \"info\": {},\n \"transaction\": {\n \"asset_moves\": [\n {\n \"source_account\": {\n \"ref\": \"<string>\",\n \"id\": \"<string>\"\n },\n \"destination_account\": {\n \"ref\": \"<string>\",\n \"id\": \"<string>\"\n },\n \"asset_code\": \"<string>\",\n \"amount\": \"<string>\",\n \"asset_move_ref\": \"<string>\",\n \"type\": \"<string>\",\n \"categories\": [\n \"<string>\"\n ],\n \"metadata\": {}\n }\n ],\n \"transaction_ref\": \"<string>\",\n \"metadata\": {}\n },\n \"provider\": \"<string>\"\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.nxos.io/v1/service/transfer/quote/accept")
.header("Content-Type", "application/json")
.body("{\n \"quote_id\": \"<string>\",\n \"value\": {\n \"asset\": \"<string>\",\n \"amount\": \"<string>\"\n },\n \"info\": {},\n \"transaction\": {\n \"asset_moves\": [\n {\n \"source_account\": {\n \"ref\": \"<string>\",\n \"id\": \"<string>\"\n },\n \"destination_account\": {\n \"ref\": \"<string>\",\n \"id\": \"<string>\"\n },\n \"asset_code\": \"<string>\",\n \"amount\": \"<string>\",\n \"asset_move_ref\": \"<string>\",\n \"type\": \"<string>\",\n \"categories\": [\n \"<string>\"\n ],\n \"metadata\": {}\n }\n ],\n \"transaction_ref\": \"<string>\",\n \"metadata\": {}\n },\n \"provider\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nxos.io/v1/service/transfer/quote/accept")
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 \"quote_id\": \"<string>\",\n \"value\": {\n \"asset\": \"<string>\",\n \"amount\": \"<string>\"\n },\n \"info\": {},\n \"transaction\": {\n \"asset_moves\": [\n {\n \"source_account\": {\n \"ref\": \"<string>\",\n \"id\": \"<string>\"\n },\n \"destination_account\": {\n \"ref\": \"<string>\",\n \"id\": \"<string>\"\n },\n \"asset_code\": \"<string>\",\n \"amount\": \"<string>\",\n \"asset_move_ref\": \"<string>\",\n \"type\": \"<string>\",\n \"categories\": [\n \"<string>\"\n ],\n \"metadata\": {}\n }\n ],\n \"transaction_ref\": \"<string>\",\n \"metadata\": {}\n },\n \"provider\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"transaction_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"asset_moves": [
{
"asset_move_ref": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"source_account": {
"ref": "<string>",
"id": "<string>"
},
"destination_account": {
"ref": "<string>",
"id": "<string>"
},
"asset_code": "<string>",
"amount": "<string>",
"type": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"decline_type": "<string>",
"categories": [
"<string>"
],
"metadata": {}
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"transaction_ref": "<string>",
"metadata": {}
}Body
The details for accepting the quote, including the quote ID and payment information.
Request model for accepting a quote and initiating a transfer.
The unique identifier of the quote to accept.
The value of the transfer (asset and amount).
Show child attributes
Show child attributes
Payment information required for the transfer. For Ebury, this includes beneficiary details like name, address, and bank information. The specific fields required depend on the provider and destination country.
Show child attributes
Show child attributes
Transaction details for ledger accounting. This creates the ledger transaction that reflects the transfer.
Show child attributes
Show child attributes
The provider to use for the transfer (e.g., "coinsph", "ebury"). Must match the provider used to obtain the quote.
Response
The ledger transaction created as part of accepting the quote.
The unique internally assigned identifier of the transaction
The asset moves for the transaction
Show child attributes
Show child attributes
The created at timestamp
The updated at timestamp
The externally defined reference of the transaction
Additional, optional, metadata for the transaction
Show child attributes
Show child attributes