You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

169 lines
3.5 KiB

2 years ago
  1. # 添加收款账号
  2. * {Domain}/v3/customers/account/create/bank-account
  3. ### 收款账号类型
  4. |类型|api|描述|
  5. |---|---|---|
  6. |BANK_ACCOUNT|bank-account|银行账号/卡号|
  7. |PAYPAL|paypal|PayPal|
  8. |VENMO|venmo|Venmo|
  9. ### Request
  10. ```json
  11. {
  12. "accountCountry": "CN",
  13. "accountCurrency": "CNY",
  14. "accountTag": "1667217845",
  15. "accountType": "BANK_ACCOUNT",
  16. "bankAccountId": "6227000734730752257",
  17. "bankName": "中国建设银行",
  18. "clientIp": "2401:1740:1000:0:801:6666:20cd:6034",
  19. "customerNo": "2000305228294106374322",
  20. "ipnUrl": "https://example.com/notify",
  21. "merchantNo": "202333",
  22. "storeNo": "301854",
  23. "timestamp": "2022-10-31T12:04:05Z",
  24. "verifySign": "6d131346908c10e76583a3c1c24d3a4f"
  25. }
  26. ```
  27. ### Response
  28. ```json
  29. {
  30. "result":
  31. {
  32. "accountTag": "1667217845",
  33. "accountStatus": "ACTIVATED",
  34. "country": "CN",
  35. "lastName": "雄",
  36. "firstName": "霸",
  37. "accountType": "BANK_ACCOUNT",
  38. "currency": "CNY",
  39. "accountToken": "2010305228294111721580",
  40. "customerNo": "2000305228294106374322",
  41. "email": "[email protected]",
  42. "timestamp": "2022-10-31T12:04:08Z",
  43. "status": "success"
  44. },
  45. "ret_msg": "success",
  46. "ret_code": "000100"
  47. }
  48. ```
  49. # 查询收款人账号信息
  50. ---
  51. * {Domain}/v3/payee/payout-accounts
  52. ## 查询成功
  53. ### Request
  54. * 查询由收款人登录portal,自己添加的银行账号,PayPal账号,Alipay账号等
  55. ```json
  56. {
  57. "merchantNo": "202333",
  58. "storeNo": "301854",
  59. "customerNo": "2000305228289295850180",
  60. "verifySign": "05a150f56706f9a435748eb986c2daad",
  61. "timestamp": "2022-10-10T18:25:52Z"
  62. }
  63. ```
  64. ### Response
  65. ```json
  66. {
  67. "accounts": [
  68. {
  69. "accountTag": "ee1d4197-36aa-4991-952c-0a9b35f505dd",
  70. "country": "CN",
  71. "createdAt": "2022-09-05T18:27:40Z",
  72. "accountType": "BANK_ACCOUNT",
  73. "currency": "CNY",
  74. "accountToken": "2010305228289296332658",
  75. "cardNumber": "****5655",
  76. "status": "activated"
  77. }
  78. ],
  79. "ret_msg": "success",
  80. "user": {
  81. "firstName": "俊义",
  82. "lastName": "卢",
  83. "customerNo": "2000305228289295850180",
  84. "email": "[email protected]"
  85. },
  86. "ret_code": "000100"
  87. }
  88. ```
  89. ## 通过`accountTag` 查询单个账号
  90. ### Request
  91. ```json
  92. {
  93. "merchantNo": "202333",
  94. "storeNo": "301854",
  95. "customerNo": "2000305228289295850180",
  96. "accountTag":"ee1d4197-36aa-4991-952c-0a9b35f505dd",
  97. "verifySign": "700655e94a50e7e3e6115ade9665ae87",
  98. "timestamp": "2022-10-31T07:11:29Z"
  99. }
  100. ```
  101. ### Response
  102. ```json
  103. {
  104. "result": {
  105. "accountTag": "ee1d4197-36aa-4991-952c-0a9b35f505dd",
  106. "country": "CN",
  107. "createdAt": "2022-09-05T18:27:40Z",
  108. "firstName": "俊义",
  109. "lastName": "卢",
  110. "accountType": "BANK_ACCOUNT",
  111. "currency": "CNY",
  112. "accountToken": "2010305228289296332658",
  113. "customerNo": "2000305228289295850180",
  114. "email": "[email protected]",
  115. "cardNumber": "****5655",
  116. "status": "activated"
  117. },
  118. "ret_msg": "success",
  119. "ret_code": "000100"
  120. }
  121. ```
  122. ## 查询失败,payee账号待审核
  123. ### Request
  124. ```json
  125. {
  126. "merchantNo": "202333",
  127. "storeNo": "301854",
  128. "customerNo": "2000305228294092293550",
  129. "verifySign": "b7168db325fa9a3c49e8b62fd2dab4ff",
  130. "timestamp": "2022-10-31T06:51:20Z"
  131. }
  132. ```
  133. ### Response
  134. ```json
  135. {
  136. "ret_code": "000040",
  137. "ret_msg": "payee status Unverified"
  138. }
  139. ```