# Requires: npm i -g @infinite_dev/cli && export INFINITE_API_KEY=sk_sandbox_...
# Escape hatch for any endpoint: infinite api <METHOD> <path>
infinite api POST /v1/transfer-drafts \
--body '<request-json>'Register a transfer draft for platform approval.
# Infinite MCP is read-only for this endpoint — use a dedicated MCP tool when one exists, otherwise run the CLI tab.import requests
url = "https://sandbox.api.infinite.dev/v1/transfer-drafts"
payload = {
"draftId": "tdraft_0123456789abcdef01234567",
"draftHash": "a1b2c3d4e5f6789012345678abcdef01",
"customerId": "cus_abc123",
"destinationAccountIds": ["eba_abc123"],
"quotedDestinationAmountMinor": "850000"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
draftId: 'tdraft_0123456789abcdef01234567',
draftHash: 'a1b2c3d4e5f6789012345678abcdef01',
customerId: 'cus_abc123',
destinationAccountIds: ['eba_abc123'],
quotedDestinationAmountMinor: '850000'
})
};
fetch('https://sandbox.api.infinite.dev/v1/transfer-drafts', 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.infinite.dev/v1/transfer-drafts",
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([
'draftId' => 'tdraft_0123456789abcdef01234567',
'draftHash' => 'a1b2c3d4e5f6789012345678abcdef01',
'customerId' => 'cus_abc123',
'destinationAccountIds' => [
'eba_abc123'
],
'quotedDestinationAmountMinor' => '850000'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://sandbox.api.infinite.dev/v1/transfer-drafts"
payload := strings.NewReader("{\n \"draftId\": \"tdraft_0123456789abcdef01234567\",\n \"draftHash\": \"a1b2c3d4e5f6789012345678abcdef01\",\n \"customerId\": \"cus_abc123\",\n \"destinationAccountIds\": [\n \"eba_abc123\"\n ],\n \"quotedDestinationAmountMinor\": \"850000\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.infinite.dev/v1/transfer-drafts")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"draftId\": \"tdraft_0123456789abcdef01234567\",\n \"draftHash\": \"a1b2c3d4e5f6789012345678abcdef01\",\n \"customerId\": \"cus_abc123\",\n \"destinationAccountIds\": [\n \"eba_abc123\"\n ],\n \"quotedDestinationAmountMinor\": \"850000\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.api.infinite.dev/v1/transfer-drafts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"draftId\": \"tdraft_0123456789abcdef01234567\",\n \"draftHash\": \"a1b2c3d4e5f6789012345678abcdef01\",\n \"customerId\": \"cus_abc123\",\n \"destinationAccountIds\": [\n \"eba_abc123\"\n ],\n \"quotedDestinationAmountMinor\": \"850000\"\n}"
response = http.request(request)
puts response.read_body{
"id": "tda_abc123",
"draftId": "tdraft_0123456789abcdef01234567",
"customerId": "cus_abc123",
"draftHash": "a1b2c3d4e5f6789012345678abcdef01",
"destinationAccountIds": [
"eba_payee1"
],
"status": "PENDING_APPROVAL",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}Register a transfer draft for platform approval
Registers an MCP transfer draft (tdraft_…) as pending platform approval. Customer must belong to the caller organization. Idempotent for the same draftId + draftHash. Does not move money.
# Requires: npm i -g @infinite_dev/cli && export INFINITE_API_KEY=sk_sandbox_...
# Escape hatch for any endpoint: infinite api <METHOD> <path>
infinite api POST /v1/transfer-drafts \
--body '<request-json>'Register a transfer draft for platform approval.
# Infinite MCP is read-only for this endpoint — use a dedicated MCP tool when one exists, otherwise run the CLI tab.import requests
url = "https://sandbox.api.infinite.dev/v1/transfer-drafts"
payload = {
"draftId": "tdraft_0123456789abcdef01234567",
"draftHash": "a1b2c3d4e5f6789012345678abcdef01",
"customerId": "cus_abc123",
"destinationAccountIds": ["eba_abc123"],
"quotedDestinationAmountMinor": "850000"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
draftId: 'tdraft_0123456789abcdef01234567',
draftHash: 'a1b2c3d4e5f6789012345678abcdef01',
customerId: 'cus_abc123',
destinationAccountIds: ['eba_abc123'],
quotedDestinationAmountMinor: '850000'
})
};
fetch('https://sandbox.api.infinite.dev/v1/transfer-drafts', 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.infinite.dev/v1/transfer-drafts",
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([
'draftId' => 'tdraft_0123456789abcdef01234567',
'draftHash' => 'a1b2c3d4e5f6789012345678abcdef01',
'customerId' => 'cus_abc123',
'destinationAccountIds' => [
'eba_abc123'
],
'quotedDestinationAmountMinor' => '850000'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://sandbox.api.infinite.dev/v1/transfer-drafts"
payload := strings.NewReader("{\n \"draftId\": \"tdraft_0123456789abcdef01234567\",\n \"draftHash\": \"a1b2c3d4e5f6789012345678abcdef01\",\n \"customerId\": \"cus_abc123\",\n \"destinationAccountIds\": [\n \"eba_abc123\"\n ],\n \"quotedDestinationAmountMinor\": \"850000\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.infinite.dev/v1/transfer-drafts")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"draftId\": \"tdraft_0123456789abcdef01234567\",\n \"draftHash\": \"a1b2c3d4e5f6789012345678abcdef01\",\n \"customerId\": \"cus_abc123\",\n \"destinationAccountIds\": [\n \"eba_abc123\"\n ],\n \"quotedDestinationAmountMinor\": \"850000\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.api.infinite.dev/v1/transfer-drafts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"draftId\": \"tdraft_0123456789abcdef01234567\",\n \"draftHash\": \"a1b2c3d4e5f6789012345678abcdef01\",\n \"customerId\": \"cus_abc123\",\n \"destinationAccountIds\": [\n \"eba_abc123\"\n ],\n \"quotedDestinationAmountMinor\": \"850000\"\n}"
response = http.request(request)
puts response.read_body{
"id": "tda_abc123",
"draftId": "tdraft_0123456789abcdef01234567",
"customerId": "cus_abc123",
"draftHash": "a1b2c3d4e5f6789012345678abcdef01",
"destinationAccountIds": [
"eba_payee1"
],
"status": "PENDING_APPROVAL",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}Authorizations
API Key in Bearer format (e.g., Bearer sk_test_...)
Headers
API key
Body
MCP transfer draft id from create_transfer_draft.
"tdraft_0123456789abcdef01234567"
SHA-256 hex prefix of the canonical create payload (requestDigest). Bound at approve so post-approve tampering invalidates execute.
"a1b2c3d4e5f6789012345678abcdef01"
Bound Connect customer that owns the draft.
"cus_abc123"
MCP instruction snapshot. When present, server verifies requestDigest against draftHash and derives screening payees from destinationAccountId (ENG-2014). Optional during API/bot rollout so older clients can still register; without it caller payees are ignored (empty) and approve stays blocked until a snapshot backfill. New bot always sends it.
Show child attributes
Show child attributes
Payee / destination account ids. When draftSnapshot is present these must match destinationAccountId (derived server-side). Ignored when draftSnapshot is omitted (stored as empty; approve fails closed).
["eba_abc123"]
Destination payout minor units from the MCP indicative quote when source and destination currencies differ. Omit for same-currency drafts.
"850000"
Response
Transfer draft registered
"tda_abc123"
"tdraft_0123456789abcdef01234567"
"cus_abc123"
"a1b2c3d4e5f6789012345678abcdef01"
Payee account ids bound at registration and screened at approve.
["eba_payee1"]
PENDING_APPROVAL, SCREENING, APPROVED, REJECTED "PENDING_APPROVAL"
Was this page helpful?