Skip to main content

Create Deposit Order (台灣)

CreateTWD (TWD)DepositOrder接口.

Request Information

  • **Request URL: ** /gateway/api/v1/payments
  • **Request Method: ** POST
  • **Content-Type: ** application/json;charset=utf-8

Request Parameters

ParameterRequiredTypeDescription
platform_idYesString(7)Merchant ID
service_idYesString(7)Service ID
payment_cl_idYesString(32)MerchantOrder號
amountYesInteger(10)Amount (分)
last_numbersYesList of String匯款帳號末五碼 (可輸入最小一組最多十組的帳號)
bank_codeNoString(3)Bank代碼
nameYesString(32)匯款人姓名
notify_urlYesString(256)Transaction ResultNotificationURL
request_timeYesInteger(10)Request Time (Seconds)
signYesString(32)OrderSignature

Request Example

{
"amount": 48389,
"lastNumbers": [
"12345",
"67890",
"11111"
],
"notifyUrl": "http://localhost:54725/gateway/test-notification",
"paymentClId": "test_tw_card_1766005863_25",
"platformId": "PF0003",
"requestTime": 1766005863,
"serviceId": "SVC0025",
"sign": "fd2b863acdb75d67fe938e33d4e56b02"
}

Response Example

Success Response

{
"data": {
"link": "http://localhost:8889/payment/index.html?token=eyJhbGciOiJ",
"paymentInfo": {
"amount": 48389,
"displayAmount": 48389,
"paymentClId": "test_tw_card_1766005863_25",
"paymentId": "DEVPM00000018",
"receiver": {
"bankBranch": "",
"bankLogo": "",
"bankName": "臺灣企銀",
"cardName": "test",
"cardNumber": "12345666"
},
"token": "无须附言"
}
},
"errorCode": "0000"
}

Error Response Example

{
"error_code": "0004",
"error_msg": "Signature Verification Failed!"
}

Response Parameter Description

ParameterTypeDescription
error_codeStringError Codes
error_msgStringError Message (error_code is not "0000" returned when )
linkStringOrderPayment URL

Remarks

  • Merchant ID is Systemunique identifier assigned by, if not obtained, please contact Systempersonnel
  • Service ID please enter:
  • SVC0025 (ATM 支付)
  • 更多請Refer to service_id List
  • Transaction Amountunit is TWD (分)
  • Request Timeuses Unix timestamp, unit is Seconds
  • Transaction Result將Notification至 notify_url, 請pass in 可公開訪問之完整URL (僅supports http 與 https protocol), see parameter specs in Transaction ResultNotification