Answer RFI
curl --request POST \
--url https://api-sandbox.uqpaytech.com/api/v1/rfis/answer \
--header 'Content-Type: application/json' \
--header 'x-auth-token: <api-key>' \
--header 'x-idempotency-key: <x-idempotency-key>' \
--data '
{
"rfi_id": "f846c1c3-8e8e-4560-b1a8-5318e858df1c",
"answer": [
{
"key": "basic_certificate_of_incorporation",
"type": "ATTACHMENT",
"attachments": [
"63d75f6d-97a3-478c-bdbf-b050c650d72a"
]
}
]
}
'import requests
url = "https://api-sandbox.uqpaytech.com/api/v1/rfis/answer"
payload = {
"rfi_id": "f846c1c3-8e8e-4560-b1a8-5318e858df1c",
"answer": [
{
"key": "basic_certificate_of_incorporation",
"type": "ATTACHMENT",
"attachments": ["63d75f6d-97a3-478c-bdbf-b050c650d72a"]
}
]
}
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({
rfi_id: 'f846c1c3-8e8e-4560-b1a8-5318e858df1c',
answer: [
{
key: 'basic_certificate_of_incorporation',
type: 'ATTACHMENT',
attachments: ['63d75f6d-97a3-478c-bdbf-b050c650d72a']
}
]
})
};
fetch('https://api-sandbox.uqpaytech.com/api/v1/rfis/answer', 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/rfis/answer",
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([
'rfi_id' => 'f846c1c3-8e8e-4560-b1a8-5318e858df1c',
'answer' => [
[
'key' => 'basic_certificate_of_incorporation',
'type' => 'ATTACHMENT',
'attachments' => [
'63d75f6d-97a3-478c-bdbf-b050c650d72a'
]
]
]
]),
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/rfis/answer"
payload := strings.NewReader("{\n \"rfi_id\": \"f846c1c3-8e8e-4560-b1a8-5318e858df1c\",\n \"answer\": [\n {\n \"key\": \"basic_certificate_of_incorporation\",\n \"type\": \"ATTACHMENT\",\n \"attachments\": [\n \"63d75f6d-97a3-478c-bdbf-b050c650d72a\"\n ]\n }\n ]\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/rfis/answer")
.header("x-idempotency-key", "<x-idempotency-key>")
.header("x-auth-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"rfi_id\": \"f846c1c3-8e8e-4560-b1a8-5318e858df1c\",\n \"answer\": [\n {\n \"key\": \"basic_certificate_of_incorporation\",\n \"type\": \"ATTACHMENT\",\n \"attachments\": [\n \"63d75f6d-97a3-478c-bdbf-b050c650d72a\"\n ]\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.uqpaytech.com/api/v1/rfis/answer")
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 \"rfi_id\": \"f846c1c3-8e8e-4560-b1a8-5318e858df1c\",\n \"answer\": [\n {\n \"key\": \"basic_certificate_of_incorporation\",\n \"type\": \"ATTACHMENT\",\n \"attachments\": [\n \"63d75f6d-97a3-478c-bdbf-b050c650d72a\"\n ]\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"account_id": "f5bb6498-552e-40a5-b14b-616aa04ac1c1",
"rfi_id": "f846c1c3-8e8e-4560-b1a8-5318e858df1c",
"status": "SUBMITTED_PENDING",
"create_time": "2024-11-08T17:17:32+08:00",
"update_time": "2024-11-09T17:17:32+08:00",
"request": [
{
"question": {
"key": "basic_certificate_of_incorporation",
"comment": "Company Registration Documentation: includes company name, registered address, business license, etc.",
"type": "ATTACHMENT"
},
"answer": {
"key": "basic_certificate_of_incorporation",
"type": "ATTACHMENT",
"attachments": [
"63d75f6d-97a3-478c-bdbf-b050c650d72a"
]
}
}
]
}Request for Information (RFI)
Answer RFI
POST
/
v1
/
rfis
/
answer
Answer RFI
curl --request POST \
--url https://api-sandbox.uqpaytech.com/api/v1/rfis/answer \
--header 'Content-Type: application/json' \
--header 'x-auth-token: <api-key>' \
--header 'x-idempotency-key: <x-idempotency-key>' \
--data '
{
"rfi_id": "f846c1c3-8e8e-4560-b1a8-5318e858df1c",
"answer": [
{
"key": "basic_certificate_of_incorporation",
"type": "ATTACHMENT",
"attachments": [
"63d75f6d-97a3-478c-bdbf-b050c650d72a"
]
}
]
}
'import requests
url = "https://api-sandbox.uqpaytech.com/api/v1/rfis/answer"
payload = {
"rfi_id": "f846c1c3-8e8e-4560-b1a8-5318e858df1c",
"answer": [
{
"key": "basic_certificate_of_incorporation",
"type": "ATTACHMENT",
"attachments": ["63d75f6d-97a3-478c-bdbf-b050c650d72a"]
}
]
}
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({
rfi_id: 'f846c1c3-8e8e-4560-b1a8-5318e858df1c',
answer: [
{
key: 'basic_certificate_of_incorporation',
type: 'ATTACHMENT',
attachments: ['63d75f6d-97a3-478c-bdbf-b050c650d72a']
}
]
})
};
fetch('https://api-sandbox.uqpaytech.com/api/v1/rfis/answer', 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/rfis/answer",
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([
'rfi_id' => 'f846c1c3-8e8e-4560-b1a8-5318e858df1c',
'answer' => [
[
'key' => 'basic_certificate_of_incorporation',
'type' => 'ATTACHMENT',
'attachments' => [
'63d75f6d-97a3-478c-bdbf-b050c650d72a'
]
]
]
]),
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/rfis/answer"
payload := strings.NewReader("{\n \"rfi_id\": \"f846c1c3-8e8e-4560-b1a8-5318e858df1c\",\n \"answer\": [\n {\n \"key\": \"basic_certificate_of_incorporation\",\n \"type\": \"ATTACHMENT\",\n \"attachments\": [\n \"63d75f6d-97a3-478c-bdbf-b050c650d72a\"\n ]\n }\n ]\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/rfis/answer")
.header("x-idempotency-key", "<x-idempotency-key>")
.header("x-auth-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"rfi_id\": \"f846c1c3-8e8e-4560-b1a8-5318e858df1c\",\n \"answer\": [\n {\n \"key\": \"basic_certificate_of_incorporation\",\n \"type\": \"ATTACHMENT\",\n \"attachments\": [\n \"63d75f6d-97a3-478c-bdbf-b050c650d72a\"\n ]\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.uqpaytech.com/api/v1/rfis/answer")
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 \"rfi_id\": \"f846c1c3-8e8e-4560-b1a8-5318e858df1c\",\n \"answer\": [\n {\n \"key\": \"basic_certificate_of_incorporation\",\n \"type\": \"ATTACHMENT\",\n \"attachments\": [\n \"63d75f6d-97a3-478c-bdbf-b050c650d72a\"\n ]\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"account_id": "f5bb6498-552e-40a5-b14b-616aa04ac1c1",
"rfi_id": "f846c1c3-8e8e-4560-b1a8-5318e858df1c",
"status": "SUBMITTED_PENDING",
"create_time": "2024-11-08T17:17:32+08:00",
"update_time": "2024-11-09T17:17:32+08:00",
"request": [
{
"question": {
"key": "basic_certificate_of_incorporation",
"comment": "Company Registration Documentation: includes company name, registered address, business license, etc.",
"type": "ATTACHMENT"
},
"answer": {
"key": "basic_certificate_of_incorporation",
"type": "ATTACHMENT",
"attachments": [
"63d75f6d-97a3-478c-bdbf-b050c650d72a"
]
}
}
]
}授权
由 UQPAY 提供的登录 API Token。
请求头
用于保持操作幂等性的唯一标识符(UUID),确保同一操作的重复执行不会产生意外影响或重复结果。在出现网络错误、重试或失败时,它有助于保持数据一致性。
请求体
application/json
响应
200 - application/json
OK——成功回复 RFI。
账户的唯一标识符。
示例:
"f5bb6498-552e-40a5-b14b-616aa04ac1c1"
该 RFI 的唯一标识符。
示例:
"f846c1c3-8e8e-4560-b1a8-5318e858df1c"
该 RFI 的当前状态。
ACTION_REQUIRED:需要你提供答复。SUBMITTED_PENDING:已提交答复,正在审核中。APPROVED:所提交的答复已通过。REJECTED:所提交的答复被拒绝;可能需要进一步处理。
可用选项:
SUBMITTED_PENDING, REJECTED, APPROVED, ACTION_REQUIRED 示例:
"SUBMITTED_PENDING"
该 RFI 的创建时间。
示例:
"2024-11-08T17:17:32+08:00"
该 RFI 的最后更新时间。
示例:
"2024-11-09T17:17:32+08:00"
该 RFI 中提出的问题列表,以及已提交的任何答复。
Show child attributes
Show child attributes
⌘I

