Create Issuing Transfer
curl --request POST \
--url https://api-sandbox.uqpaytech.com/api/v1/issuing/transfers \
--header 'Content-Type: application/json' \
--header 'x-auth-token: <api-key>' \
--header 'x-idempotency-key: <x-idempotency-key>' \
--data '
{
"source_account_id": "b1b89684-c2c4-4d54-b8a8-3572727fd120",
"destination_account_id": "eaf28076-017b-436f-a04c-212563a1aa4f",
"currency": "SGD",
"amount": 1,
"remark": "Sandbox contract regression"
}
'import requests
url = "https://api-sandbox.uqpaytech.com/api/v1/issuing/transfers"
payload = {
"source_account_id": "b1b89684-c2c4-4d54-b8a8-3572727fd120",
"destination_account_id": "eaf28076-017b-436f-a04c-212563a1aa4f",
"currency": "SGD",
"amount": 1,
"remark": "Sandbox contract regression"
}
headers = {
"x-idempotency-key": "<x-idempotency-key>",
"x-auth-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-idempotency-key': '<x-idempotency-key>',
'x-auth-token': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
source_account_id: 'b1b89684-c2c4-4d54-b8a8-3572727fd120',
destination_account_id: 'eaf28076-017b-436f-a04c-212563a1aa4f',
currency: 'SGD',
amount: 1,
remark: 'Sandbox contract regression'
})
};
fetch('https://api-sandbox.uqpaytech.com/api/v1/issuing/transfers', 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-sandbox.uqpaytech.com/api/v1/issuing/transfers",
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([
'source_account_id' => 'b1b89684-c2c4-4d54-b8a8-3572727fd120',
'destination_account_id' => 'eaf28076-017b-436f-a04c-212563a1aa4f',
'currency' => 'SGD',
'amount' => 1,
'remark' => 'Sandbox contract regression'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-auth-token: <api-key>",
"x-idempotency-key: <x-idempotency-key>"
],
]);
$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-sandbox.uqpaytech.com/api/v1/issuing/transfers"
payload := strings.NewReader("{\n \"source_account_id\": \"b1b89684-c2c4-4d54-b8a8-3572727fd120\",\n \"destination_account_id\": \"eaf28076-017b-436f-a04c-212563a1aa4f\",\n \"currency\": \"SGD\",\n \"amount\": 1,\n \"remark\": \"Sandbox contract regression\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-idempotency-key", "<x-idempotency-key>")
req.Header.Add("x-auth-token", "<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-sandbox.uqpaytech.com/api/v1/issuing/transfers")
.header("x-idempotency-key", "<x-idempotency-key>")
.header("x-auth-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"source_account_id\": \"b1b89684-c2c4-4d54-b8a8-3572727fd120\",\n \"destination_account_id\": \"eaf28076-017b-436f-a04c-212563a1aa4f\",\n \"currency\": \"SGD\",\n \"amount\": 1,\n \"remark\": \"Sandbox contract regression\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.uqpaytech.com/api/v1/issuing/transfers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-idempotency-key"] = '<x-idempotency-key>'
request["x-auth-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"source_account_id\": \"b1b89684-c2c4-4d54-b8a8-3572727fd120\",\n \"destination_account_id\": \"eaf28076-017b-436f-a04c-212563a1aa4f\",\n \"currency\": \"SGD\",\n \"amount\": 1,\n \"remark\": \"Sandbox contract regression\"\n}"
response = http.request(request)
puts response.read_body{
"short_transaction_id": "T260910-2PGL2QLWVHTS",
"transfer_id": "a82b0258-eb1a-4189-8d68-1dd96e5436e3"
}Transfers
Create Issuing Transfer
通过指定源账户 ID、目标账户 ID、币种及其他相关信息,创建一笔新的发卡转账。
此接口专用于主账户与其子账户之间的资金转账,不适用于跨业务线或外部转账。
POST
/
v1
/
issuing
/
transfers
Create Issuing Transfer
curl --request POST \
--url https://api-sandbox.uqpaytech.com/api/v1/issuing/transfers \
--header 'Content-Type: application/json' \
--header 'x-auth-token: <api-key>' \
--header 'x-idempotency-key: <x-idempotency-key>' \
--data '
{
"source_account_id": "b1b89684-c2c4-4d54-b8a8-3572727fd120",
"destination_account_id": "eaf28076-017b-436f-a04c-212563a1aa4f",
"currency": "SGD",
"amount": 1,
"remark": "Sandbox contract regression"
}
'import requests
url = "https://api-sandbox.uqpaytech.com/api/v1/issuing/transfers"
payload = {
"source_account_id": "b1b89684-c2c4-4d54-b8a8-3572727fd120",
"destination_account_id": "eaf28076-017b-436f-a04c-212563a1aa4f",
"currency": "SGD",
"amount": 1,
"remark": "Sandbox contract regression"
}
headers = {
"x-idempotency-key": "<x-idempotency-key>",
"x-auth-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-idempotency-key': '<x-idempotency-key>',
'x-auth-token': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
source_account_id: 'b1b89684-c2c4-4d54-b8a8-3572727fd120',
destination_account_id: 'eaf28076-017b-436f-a04c-212563a1aa4f',
currency: 'SGD',
amount: 1,
remark: 'Sandbox contract regression'
})
};
fetch('https://api-sandbox.uqpaytech.com/api/v1/issuing/transfers', 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-sandbox.uqpaytech.com/api/v1/issuing/transfers",
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([
'source_account_id' => 'b1b89684-c2c4-4d54-b8a8-3572727fd120',
'destination_account_id' => 'eaf28076-017b-436f-a04c-212563a1aa4f',
'currency' => 'SGD',
'amount' => 1,
'remark' => 'Sandbox contract regression'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-auth-token: <api-key>",
"x-idempotency-key: <x-idempotency-key>"
],
]);
$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-sandbox.uqpaytech.com/api/v1/issuing/transfers"
payload := strings.NewReader("{\n \"source_account_id\": \"b1b89684-c2c4-4d54-b8a8-3572727fd120\",\n \"destination_account_id\": \"eaf28076-017b-436f-a04c-212563a1aa4f\",\n \"currency\": \"SGD\",\n \"amount\": 1,\n \"remark\": \"Sandbox contract regression\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-idempotency-key", "<x-idempotency-key>")
req.Header.Add("x-auth-token", "<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-sandbox.uqpaytech.com/api/v1/issuing/transfers")
.header("x-idempotency-key", "<x-idempotency-key>")
.header("x-auth-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"source_account_id\": \"b1b89684-c2c4-4d54-b8a8-3572727fd120\",\n \"destination_account_id\": \"eaf28076-017b-436f-a04c-212563a1aa4f\",\n \"currency\": \"SGD\",\n \"amount\": 1,\n \"remark\": \"Sandbox contract regression\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.uqpaytech.com/api/v1/issuing/transfers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-idempotency-key"] = '<x-idempotency-key>'
request["x-auth-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"source_account_id\": \"b1b89684-c2c4-4d54-b8a8-3572727fd120\",\n \"destination_account_id\": \"eaf28076-017b-436f-a04c-212563a1aa4f\",\n \"currency\": \"SGD\",\n \"amount\": 1,\n \"remark\": \"Sandbox contract regression\"\n}"
response = http.request(request)
puts response.read_body{
"short_transaction_id": "T260910-2PGL2QLWVHTS",
"transfer_id": "a82b0258-eb1a-4189-8d68-1dd96e5436e3"
}授权
由 UQPAY 提供的登录 API Token。
请求头
指定代表哪个子账户发起请求。应设置为 account_id,该值可通过 List Connected Accounts 接口获取。若省略或为空,则请求以主账户身份执行。
更多信息参见 关联账户。
用于维持操作幂等性的唯一标识符(UUID),确保同一操作的重复执行不会产生意外影响或重复。它有助于在网络错误、重试或失败的情况下保持数据一致性。
请求体
application/json
响应
200 - application/json
成功创建转账。
转账的唯一标识符。
示例:
"5135e6cc-28b6-4889-81dc-3b86a09e1395"

