AUSD to IDR in a bank account
curl --request POST \
--url https://api.matocard.xyz/cashouts \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"quoteId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"authorization": {
"from": "0xC0519BE562f0De7E32e9A48e50AdecBAde605aAD",
"to": "0xC0519BE562f0De7E32e9A48e50AdecBAde605aAD",
"value": "1000000",
"validAfter": "0",
"validBefore": "1791051600",
"nonce": "<string>",
"signature": "<string>"
},
"bank": {
"channelCode": "ID_BCA",
"accountNumber": "<string>",
"accountHolderName": "<string>"
}
}
'import requests
url = "https://api.matocard.xyz/cashouts"
payload = {
"quoteId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"authorization": {
"from": "0xC0519BE562f0De7E32e9A48e50AdecBAde605aAD",
"to": "0xC0519BE562f0De7E32e9A48e50AdecBAde605aAD",
"value": "1000000",
"validAfter": "0",
"validBefore": "1791051600",
"nonce": "<string>",
"signature": "<string>"
},
"bank": {
"channelCode": "ID_BCA",
"accountNumber": "<string>",
"accountHolderName": "<string>"
}
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
quoteId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
authorization: {
from: '0xC0519BE562f0De7E32e9A48e50AdecBAde605aAD',
to: '0xC0519BE562f0De7E32e9A48e50AdecBAde605aAD',
value: '1000000',
validAfter: '0',
validBefore: '1791051600',
nonce: '<string>',
signature: '<string>'
},
bank: {
channelCode: 'ID_BCA',
accountNumber: '<string>',
accountHolderName: '<string>'
}
})
};
fetch('https://api.matocard.xyz/cashouts', 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.matocard.xyz/cashouts",
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([
'quoteId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'authorization' => [
'from' => '0xC0519BE562f0De7E32e9A48e50AdecBAde605aAD',
'to' => '0xC0519BE562f0De7E32e9A48e50AdecBAde605aAD',
'value' => '1000000',
'validAfter' => '0',
'validBefore' => '1791051600',
'nonce' => '<string>',
'signature' => '<string>'
],
'bank' => [
'channelCode' => 'ID_BCA',
'accountNumber' => '<string>',
'accountHolderName' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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.matocard.xyz/cashouts"
payload := strings.NewReader("{\n \"quoteId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"authorization\": {\n \"from\": \"0xC0519BE562f0De7E32e9A48e50AdecBAde605aAD\",\n \"to\": \"0xC0519BE562f0De7E32e9A48e50AdecBAde605aAD\",\n \"value\": \"1000000\",\n \"validAfter\": \"0\",\n \"validBefore\": \"1791051600\",\n \"nonce\": \"<string>\",\n \"signature\": \"<string>\"\n },\n \"bank\": {\n \"channelCode\": \"ID_BCA\",\n \"accountNumber\": \"<string>\",\n \"accountHolderName\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
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.matocard.xyz/cashouts")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"quoteId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"authorization\": {\n \"from\": \"0xC0519BE562f0De7E32e9A48e50AdecBAde605aAD\",\n \"to\": \"0xC0519BE562f0De7E32e9A48e50AdecBAde605aAD\",\n \"value\": \"1000000\",\n \"validAfter\": \"0\",\n \"validBefore\": \"1791051600\",\n \"nonce\": \"<string>\",\n \"signature\": \"<string>\"\n },\n \"bank\": {\n \"channelCode\": \"ID_BCA\",\n \"accountNumber\": \"<string>\",\n \"accountHolderName\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.matocard.xyz/cashouts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"quoteId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"authorization\": {\n \"from\": \"0xC0519BE562f0De7E32e9A48e50AdecBAde605aAD\",\n \"to\": \"0xC0519BE562f0De7E32e9A48e50AdecBAde605aAD\",\n \"value\": \"1000000\",\n \"validAfter\": \"0\",\n \"validBefore\": \"1791051600\",\n \"nonce\": \"<string>\",\n \"signature\": \"<string>\"\n },\n \"bank\": {\n \"channelCode\": \"ID_BCA\",\n \"accountNumber\": \"<string>\",\n \"accountHolderName\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"payoutId": "9fd1d0dd-f236-4c9d-90c2-db454b626502",
"ausd": "600000",
"fiat": "10770"
}{
"error": "verify your identity first"
}{
"error": "verify your identity first"
}Money
AUSD to IDR in a bank account
The user signs an ERC-3009 transfer of value AUSD to the treasury 0xcf330A7E5D4eae35250f00B4af96eBcf38347Df1, valid for at least 5 more minutes. The backend takes the AUSD, then Xendit pays the IDR (at least Rp 10,000) to the bank. The answer comes at once; the payout shows in /me/activity inFlight until done. channelCode is Xendit’s, such as ID_BCA, ID_BRI, ID_MANDIRI, ID_BNI.
POST
/
cashouts
AUSD to IDR in a bank account
curl --request POST \
--url https://api.matocard.xyz/cashouts \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"quoteId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"authorization": {
"from": "0xC0519BE562f0De7E32e9A48e50AdecBAde605aAD",
"to": "0xC0519BE562f0De7E32e9A48e50AdecBAde605aAD",
"value": "1000000",
"validAfter": "0",
"validBefore": "1791051600",
"nonce": "<string>",
"signature": "<string>"
},
"bank": {
"channelCode": "ID_BCA",
"accountNumber": "<string>",
"accountHolderName": "<string>"
}
}
'import requests
url = "https://api.matocard.xyz/cashouts"
payload = {
"quoteId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"authorization": {
"from": "0xC0519BE562f0De7E32e9A48e50AdecBAde605aAD",
"to": "0xC0519BE562f0De7E32e9A48e50AdecBAde605aAD",
"value": "1000000",
"validAfter": "0",
"validBefore": "1791051600",
"nonce": "<string>",
"signature": "<string>"
},
"bank": {
"channelCode": "ID_BCA",
"accountNumber": "<string>",
"accountHolderName": "<string>"
}
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
quoteId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
authorization: {
from: '0xC0519BE562f0De7E32e9A48e50AdecBAde605aAD',
to: '0xC0519BE562f0De7E32e9A48e50AdecBAde605aAD',
value: '1000000',
validAfter: '0',
validBefore: '1791051600',
nonce: '<string>',
signature: '<string>'
},
bank: {
channelCode: 'ID_BCA',
accountNumber: '<string>',
accountHolderName: '<string>'
}
})
};
fetch('https://api.matocard.xyz/cashouts', 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.matocard.xyz/cashouts",
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([
'quoteId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'authorization' => [
'from' => '0xC0519BE562f0De7E32e9A48e50AdecBAde605aAD',
'to' => '0xC0519BE562f0De7E32e9A48e50AdecBAde605aAD',
'value' => '1000000',
'validAfter' => '0',
'validBefore' => '1791051600',
'nonce' => '<string>',
'signature' => '<string>'
],
'bank' => [
'channelCode' => 'ID_BCA',
'accountNumber' => '<string>',
'accountHolderName' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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.matocard.xyz/cashouts"
payload := strings.NewReader("{\n \"quoteId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"authorization\": {\n \"from\": \"0xC0519BE562f0De7E32e9A48e50AdecBAde605aAD\",\n \"to\": \"0xC0519BE562f0De7E32e9A48e50AdecBAde605aAD\",\n \"value\": \"1000000\",\n \"validAfter\": \"0\",\n \"validBefore\": \"1791051600\",\n \"nonce\": \"<string>\",\n \"signature\": \"<string>\"\n },\n \"bank\": {\n \"channelCode\": \"ID_BCA\",\n \"accountNumber\": \"<string>\",\n \"accountHolderName\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
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.matocard.xyz/cashouts")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"quoteId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"authorization\": {\n \"from\": \"0xC0519BE562f0De7E32e9A48e50AdecBAde605aAD\",\n \"to\": \"0xC0519BE562f0De7E32e9A48e50AdecBAde605aAD\",\n \"value\": \"1000000\",\n \"validAfter\": \"0\",\n \"validBefore\": \"1791051600\",\n \"nonce\": \"<string>\",\n \"signature\": \"<string>\"\n },\n \"bank\": {\n \"channelCode\": \"ID_BCA\",\n \"accountNumber\": \"<string>\",\n \"accountHolderName\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.matocard.xyz/cashouts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"quoteId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"authorization\": {\n \"from\": \"0xC0519BE562f0De7E32e9A48e50AdecBAde605aAD\",\n \"to\": \"0xC0519BE562f0De7E32e9A48e50AdecBAde605aAD\",\n \"value\": \"1000000\",\n \"validAfter\": \"0\",\n \"validBefore\": \"1791051600\",\n \"nonce\": \"<string>\",\n \"signature\": \"<string>\"\n },\n \"bank\": {\n \"channelCode\": \"ID_BCA\",\n \"accountNumber\": \"<string>\",\n \"accountHolderName\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"payoutId": "9fd1d0dd-f236-4c9d-90c2-db454b626502",
"ausd": "600000",
"fiat": "10770"
}{
"error": "verify your identity first"
}{
"error": "verify your identity first"
}Authorizations
Matocard <wallet>.<until>.<signature>, see the description at the top
Body
application/json

