Produce a multi-step payment plan (no execution)
curl --request POST \
--url https://api.fiet.finance/v1/payments \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"clientReference": "erp-payment-001",
"corridorId": "usdc-eth->aud-bank",
"amountIn": "1000000",
"recipient": {
"type": "bank",
"name": "Acme Pty Ltd",
"country": "AU",
"account": {
"bsb": "062000",
"accountNumber": "12345678"
}
},
"options": {
"mode": "STANDARD"
}
}
'import requests
url = "https://api.fiet.finance/v1/payments"
payload = {
"clientReference": "erp-payment-001",
"corridorId": "usdc-eth->aud-bank",
"amountIn": "1000000",
"recipient": {
"type": "bank",
"name": "Acme Pty Ltd",
"country": "AU",
"account": {
"bsb": "062000",
"accountNumber": "12345678"
}
},
"options": { "mode": "STANDARD" }
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
clientReference: 'erp-payment-001',
corridorId: 'usdc-eth->aud-bank',
amountIn: '1000000',
recipient: {
type: 'bank',
name: 'Acme Pty Ltd',
country: 'AU',
account: {bsb: '062000', accountNumber: '12345678'}
},
options: {mode: 'STANDARD'}
})
};
fetch('https://api.fiet.finance/v1/payments', 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.fiet.finance/v1/payments",
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([
'clientReference' => 'erp-payment-001',
'corridorId' => 'usdc-eth->aud-bank',
'amountIn' => '1000000',
'recipient' => [
'type' => 'bank',
'name' => 'Acme Pty Ltd',
'country' => 'AU',
'account' => [
'bsb' => '062000',
'accountNumber' => '12345678'
]
],
'options' => [
'mode' => 'STANDARD'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"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.fiet.finance/v1/payments"
payload := strings.NewReader("{\n \"clientReference\": \"erp-payment-001\",\n \"corridorId\": \"usdc-eth->aud-bank\",\n \"amountIn\": \"1000000\",\n \"recipient\": {\n \"type\": \"bank\",\n \"name\": \"Acme Pty Ltd\",\n \"country\": \"AU\",\n \"account\": {\n \"bsb\": \"062000\",\n \"accountNumber\": \"12345678\"\n }\n },\n \"options\": {\n \"mode\": \"STANDARD\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
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.fiet.finance/v1/payments")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"clientReference\": \"erp-payment-001\",\n \"corridorId\": \"usdc-eth->aud-bank\",\n \"amountIn\": \"1000000\",\n \"recipient\": {\n \"type\": \"bank\",\n \"name\": \"Acme Pty Ltd\",\n \"country\": \"AU\",\n \"account\": {\n \"bsb\": \"062000\",\n \"accountNumber\": \"12345678\"\n }\n },\n \"options\": {\n \"mode\": \"STANDARD\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fiet.finance/v1/payments")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"clientReference\": \"erp-payment-001\",\n \"corridorId\": \"usdc-eth->aud-bank\",\n \"amountIn\": \"1000000\",\n \"recipient\": {\n \"type\": \"bank\",\n \"name\": \"Acme Pty Ltd\",\n \"country\": \"AU\",\n \"account\": {\n \"bsb\": \"062000\",\n \"accountNumber\": \"12345678\"\n }\n },\n \"options\": {\n \"mode\": \"STANDARD\"\n }\n}"
response = http.request(request)
puts response.read_body{
"planId": "<string>",
"steps": [
{
"stepId": "<string>",
"status": "PENDING",
"instructions": [
{
"kind": "EVM_CALL",
"chainId": 123,
"to": "<string>",
"data": "<string>",
"value": "<string>",
"constraints": {
"notAfter": "2023-11-07T05:31:56Z",
"maxSlippageBps": 2500
}
}
],
"custodianAction": {}
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>"
}API Reference
Payments
POST
/
v1
/
payments
Produce a multi-step payment plan (no execution)
curl --request POST \
--url https://api.fiet.finance/v1/payments \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"clientReference": "erp-payment-001",
"corridorId": "usdc-eth->aud-bank",
"amountIn": "1000000",
"recipient": {
"type": "bank",
"name": "Acme Pty Ltd",
"country": "AU",
"account": {
"bsb": "062000",
"accountNumber": "12345678"
}
},
"options": {
"mode": "STANDARD"
}
}
'import requests
url = "https://api.fiet.finance/v1/payments"
payload = {
"clientReference": "erp-payment-001",
"corridorId": "usdc-eth->aud-bank",
"amountIn": "1000000",
"recipient": {
"type": "bank",
"name": "Acme Pty Ltd",
"country": "AU",
"account": {
"bsb": "062000",
"accountNumber": "12345678"
}
},
"options": { "mode": "STANDARD" }
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
clientReference: 'erp-payment-001',
corridorId: 'usdc-eth->aud-bank',
amountIn: '1000000',
recipient: {
type: 'bank',
name: 'Acme Pty Ltd',
country: 'AU',
account: {bsb: '062000', accountNumber: '12345678'}
},
options: {mode: 'STANDARD'}
})
};
fetch('https://api.fiet.finance/v1/payments', 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.fiet.finance/v1/payments",
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([
'clientReference' => 'erp-payment-001',
'corridorId' => 'usdc-eth->aud-bank',
'amountIn' => '1000000',
'recipient' => [
'type' => 'bank',
'name' => 'Acme Pty Ltd',
'country' => 'AU',
'account' => [
'bsb' => '062000',
'accountNumber' => '12345678'
]
],
'options' => [
'mode' => 'STANDARD'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"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.fiet.finance/v1/payments"
payload := strings.NewReader("{\n \"clientReference\": \"erp-payment-001\",\n \"corridorId\": \"usdc-eth->aud-bank\",\n \"amountIn\": \"1000000\",\n \"recipient\": {\n \"type\": \"bank\",\n \"name\": \"Acme Pty Ltd\",\n \"country\": \"AU\",\n \"account\": {\n \"bsb\": \"062000\",\n \"accountNumber\": \"12345678\"\n }\n },\n \"options\": {\n \"mode\": \"STANDARD\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
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.fiet.finance/v1/payments")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"clientReference\": \"erp-payment-001\",\n \"corridorId\": \"usdc-eth->aud-bank\",\n \"amountIn\": \"1000000\",\n \"recipient\": {\n \"type\": \"bank\",\n \"name\": \"Acme Pty Ltd\",\n \"country\": \"AU\",\n \"account\": {\n \"bsb\": \"062000\",\n \"accountNumber\": \"12345678\"\n }\n },\n \"options\": {\n \"mode\": \"STANDARD\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fiet.finance/v1/payments")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"clientReference\": \"erp-payment-001\",\n \"corridorId\": \"usdc-eth->aud-bank\",\n \"amountIn\": \"1000000\",\n \"recipient\": {\n \"type\": \"bank\",\n \"name\": \"Acme Pty Ltd\",\n \"country\": \"AU\",\n \"account\": {\n \"bsb\": \"062000\",\n \"accountNumber\": \"12345678\"\n }\n },\n \"options\": {\n \"mode\": \"STANDARD\"\n }\n}"
response = http.request(request)
puts response.read_body{
"planId": "<string>",
"steps": [
{
"stepId": "<string>",
"status": "PENDING",
"instructions": [
{
"kind": "EVM_CALL",
"chainId": 123,
"to": "<string>",
"data": "<string>",
"value": "<string>",
"constraints": {
"notAfter": "2023-11-07T05:31:56Z",
"maxSlippageBps": 2500
}
}
],
"custodianAction": {}
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>"
}This endpoint returns a multi-step payment plan (no execution).
For step types and Digital Collect behaviour, see Payments.
Authorizations
Basic Auth (assumed at gateway for MVP)
Body
application/json
Maximum string length:
128Example:
"erp-payment-001"
Example:
"usdc-eth->aud-bank"
Input amount (smallest units) as string
Example:
"1000000"
Recipient details (bank recipient, or digital collect recipient, etc.)
Show child attributes
Show child attributes
⌘I