跳转到主要内容
POST
/
v2
/
payment
/
bankaccount
/
create
Create Bank Account
curl --request POST \
  --url https://api-sandbox.uqpaytech.com/api/v2/payment/bankaccount/create \
  --header 'Content-Type: application/json' \
  --header 'x-auth-token: <api-key>' \
  --header 'x-idempotency-key: <x-idempotency-key>' \
  --data '
{
  "account_number": "GB71950018692652646598",
  "bank_name": "DBS Bank",
  "swift_code": "DBSSSGSG",
  "bank_country_code": "SG",
  "bank_address": "12 Marina Boulevard, Singapore 018982",
  "currency": "SGD",
  "bank_code_type": "aba",
  "bank_code_value": "021000021",
  "bank_branch_code": "00001"
}
'
{
  "account_number": "GB71950018692652646598",
  "bank_name": "DBS Bank",
  "swift_code": "DBSSSGSG",
  "bank_country_code": "SG",
  "bank_address": "12 Marina Boulevard, Singapore 018982",
  "bank_code_type": "aba",
  "bank_code_value": "021000021",
  "bank_branch_code": "00001",
  "id": "a7b92a19-bfc3-4c8b-8a4f-cfcf74cab345",
  "account_name": "UQPAY PTE. LTD.",
  "currency": "SGD",
  "account_status": "Valid"
}

Documentation Index

Fetch the complete documentation index at: https://developers-sandbox.uqpaytech.com/llms.txt

Use this file to discover all available pages before exploring further.

授权

x-auth-token
string
header
必填

The API token for login provided by UQPay.

请求头

x-on-behalf-of
string

Specifies the sub-account on whose behalf the request is made. This should be set to the account_id, which can be retrieved via the List Connected Accounts. If omitted or empty, the request is executed using the master account. More information at Connected Accounts.

x-idempotency-key
string<uuid>
必填

A unique identifier (UUID) used to maintain operation idempotency, ensuring that repeated executions of the same operation do not result in unintended effects or duplication. It helps preserve data consistency in the face of network errors, retries, or failures.

请求体

application/json

Common bank account properties shared between request and response.

account_number
string
必填

Bank account number (e.g., IBAN).

Required string length: 5 - 60
示例:

"GB71950018692652646598"

bank_name
string
必填

Name of the bank.

示例:

"DBS Bank"

swift_code
string
必填

SWIFT/BIC code of the bank.

Required string length: 8 - 11
示例:

"DBSSSGSG"

bank_country_code
string<iso-3166-1-alpha-2>
必填

Two-letter country code (ISO 3166-1 alpha-2) of the bank.

Required string length: 2
示例:

"SG"

bank_address
string
必填

Physical address of the bank.

示例:

"12 Marina Boulevard, Singapore 018982"

currency
string
必填

Currency of the settlement account.

示例:

"SGD"

bank_code_type
enum<string>

Type of bank routing code. Required based on currency and country:

  • aba - Required when currency = "USD" and bank_country_code = "US"
  • bank_code - Required when currency = "CAD" or currency = "HKD"
  • sort_code - Required when currency = "GBP"
  • bsb_code - Required when currency = "AUD"
  • ifsc - Required when currency = "INR"
  • cnaps_number - Required when currency = "CNH" and bank_country_code = "CN"
可用选项:
aba,
bank_code,
sort_code,
bsb_code,
ifsc,
cnaps_number
示例:

"aba"

bank_code_value
string

The bank identifier value. The required format depends on the selected bank_code_type.

Accepted formats by bank_code_type:

  • aba: Exactly 9 digits.
  • bank_code: Exactly 3 digits.
  • sort_code: Exactly 6 digits.
  • bsb_code: Exactly 6 digits.
  • ifsc: Exactly 11 characters in the format:
    • First 4 characters: letters (A–Z)
    • 5th character: the digit 0
    • Last 6 characters: letters (A–Z) or digits (0–9)
  • cnaps_number: Exactly 12 digits.
示例:

"021000021"

bank_branch_code
string

Bank branch code. Required when currency = "CAD".

示例:

"00001"

响应

200 - application/json

Bank account created successfully

Common bank account properties shared between request and response.

account_number
string

Bank account number (e.g., IBAN).

Required string length: 5 - 60
示例:

"GB71950018692652646598"

bank_name
string

Name of the bank.

示例:

"DBS Bank"

swift_code
string

SWIFT/BIC code of the bank.

Required string length: 8 - 11
示例:

"DBSSSGSG"

bank_country_code
string<iso-3166-1-alpha-2>

Two-letter country code (ISO 3166-1 alpha-2) of the bank.

Required string length: 2
示例:

"SG"

bank_address
string

Physical address of the bank.

示例:

"12 Marina Boulevard, Singapore 018982"

bank_code_type
enum<string>

Type of bank routing code. Required based on currency and country:

  • aba - Required when currency = "USD" and bank_country_code = "US"
  • bank_code - Required when currency = "CAD" or currency = "HKD"
  • sort_code - Required when currency = "GBP"
  • bsb_code - Required when currency = "AUD"
  • ifsc - Required when currency = "INR"
  • cnaps_number - Required when currency = "CNH" and bank_country_code = "CN"
可用选项:
aba,
bank_code,
sort_code,
bsb_code,
ifsc,
cnaps_number
示例:

"aba"

bank_code_value
string

The bank identifier value. The required format depends on the selected bank_code_type.

Accepted formats by bank_code_type:

  • aba: Exactly 9 digits.
  • bank_code: Exactly 3 digits.
  • sort_code: Exactly 6 digits.
  • bsb_code: Exactly 6 digits.
  • ifsc: Exactly 11 characters in the format:
    • First 4 characters: letters (A–Z)
    • 5th character: the digit 0
    • Last 6 characters: letters (A–Z) or digits (0–9)
  • cnaps_number: Exactly 12 digits.
示例:

"021000021"

bank_branch_code
string

Bank branch code. Required when currency = "CAD".

示例:

"00001"

id
string

Unique identifier (UUID) of the bank account.

示例:

"a7b92a19-bfc3-4c8b-8a4f-cfcf74cab345"

account_name
string

Name of the account holder.

示例:

"UQPAY PTE. LTD."

currency
string

Currency of the settlement account.

示例:

"SGD"

account_status
enum<string>

Status of the bank account.

可用选项:
Valid,
Invalid
示例:

"Valid"