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.

221 lines
4.4 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. # Payee Registration
  2. ---
  3. * {Domain}/v3/payee/register
  4. ### Request
  5. * `governmentIdType`: 中国大陆用户需要使用身份证号码,type = `ID_CARD`
  6. * 注册成功之后,Payee会收到注册通知邮件,根据指引登录Yuansfer Portal提交相关信息,激活账户之后才可以接收转账。
  7. |参数名|M/C/O|描述|
  8. |---|---|---|
  9. |customerCode|O|商户系统客户编号|
  10. |dateOfBirth|M|收款人出生日期,需大于18岁|
  11. |governmentId|M|中国大陆公民使用居民身份证号码|
  12. |governmentIdType|M|证件类型:身份证,营业执照号码等|
  13. |lastName|M|姓,中国公民使用中文,与身份证姓名一致|
  14. |firstName|M|名,中国公民使用中文,与身份证姓名一致|
  15. |email|M|邮箱|
  16. |phone|O|电话|
  17. |zip|M|邮编|
  18. |country|C|国家名称|
  19. |countryCode|M|国家代码,两位|
  20. |state|M|州/省|
  21. |city|M|市|
  22. |street|M|address line 1|
  23. |street2|O|address line 2|
  24. ###### profileType
  25. * 收款人实体类别
  26. |参数名|描述|
  27. |---|---
  28. |INDIVIDUAL|个人类型用户|
  29. |BUSINESS|对公用户,企业用户|
  30. ###### governmentIdType
  31. * 证件类型
  32. |参数|说明|
  33. |---|---|
  34. |ID_CARD|中国大陆身份证|
  35. |PASSPORT|护照|
  36. |DRIVER_LICENSE|驾照|
  37. |BUSINESS_REGISTRATION_CERT|营业执照|
  38. ```json
  39. {
  40. "city": "北京",
  41. "country": "中国",
  42. "countryCode": "CN",
  43. "customerCode": "1667198337",
  44. "dateOfBirth": "1999-01-01",
  45. "email": "[email protected]",
  46. "firstName": "三",
  47. "governmentId": "110101199003074493",
  48. "governmentIdType": "ID_CARD",
  49. "lastName": "张",
  50. "merchantNo": "202333",
  51. "phone": "1234567890",
  52. "profileType": "INDIVIDUAL",
  53. "state": "北京",
  54. "storeNo": "301854",
  55. "street": "长城",
  56. "street2": "",
  57. "verifySign": "141803fb1e21ff977d7fa5f68067860a",
  58. "zip": "100000"
  59. }
  60. ```
  61. ### Response
  62. |参数名|M/C/O|描述|
  63. |---|---|---|
  64. |customerNo|M|客户编号,唯一ID,请保存|
  65. ```json
  66. {
  67. "ret_msg": "success",
  68. "ret_code": "000100",
  69. "customer": {
  70. "firstName": "三",
  71. "lastName": "张",
  72. "customerCode": "1667198337",
  73. "createdTime": "2022-10-31T06:40:20Z",
  74. "customerNo": "2000305228294092293550",
  75. "email": "[email protected]"
  76. }
  77. }
  78. ```
  79. # 查询
  80. ---
  81. * {Domain}/v3/payee/retrieve
  82. ### Request
  83. * email, customerCode, customerNo 都可以作为查询条件
  84. * `timestamp`: API调用实时时间戳,UTC零时区格式
  85. ```json
  86. {
  87. "customerCode": "1667198337",
  88. "customerNo": "2000305228294092293550",
  89. "email": "[email protected]",
  90. "merchantNo": "202333",
  91. "storeNo": "301854",
  92. "timestamp":"2022-10-31T10:13:05Z",
  93. "verifySign": "2ed37ef290331e712e1f46b278913b5d"
  94. }
  95. ```
  96. ### Response
  97. ```json
  98. {
  99. "ret_msg": "query success",
  100. "ret_code": "000100",
  101. "customer": {
  102. "zip": "100000",
  103. "lastName": "张",
  104. "country": "中国",
  105. "updatedTime": "2022-10-31T06:40:20Z",
  106. "city": "北京",
  107. "customerCode": "1667198337",
  108. "dateOfBirth": "1999-01-01",
  109. "firstName": "三",
  110. "phone": "1234567890",
  111. "countryCode": "CN",
  112. "street": "长城",
  113. "createdTime": "2022-10-31T06:40:20Z",
  114. "state": "北京",
  115. "lang": "en",
  116. "customerNo": "2000305228294092293550",
  117. "email": "[email protected]"
  118. }
  119. }
  120. ```
  121. # 修改
  122. ---
  123. * {Domain}/v3/payee/update
  124. * 已激活(审核通过)的账号不允许再修改,会报错
  125. ### Request
  126. ```json
  127. {
  128. "customerNo":"2000305228294092293550",
  129. "city": "北京",
  130. "country": "中国",
  131. "countryCode": "CN",
  132. "customerCode": "1667198337",
  133. "dateOfBirth": "1999-01-02",
  134. "firstName": "三",
  135. "governmentId": "110101199003074493",
  136. "governmentIdType": "ID_CARD",
  137. "lastName": "张",
  138. "merchantNo": "202333",
  139. "phone": "1234567890",
  140. "profileType": "INDIVIDUAL",
  141. "state": "北京",
  142. "storeNo": "301854",
  143. "street": "中南海",
  144. "street2": "No. 123",
  145. "verifySign": "55704c3e018d7878f3be3f14b472e05f",
  146. "zip": "100001"
  147. }
  148. ```
  149. ### Response
  150. ```json
  151. {
  152. "ret_msg": "update success",
  153. "ret_code": "000100"
  154. }
  155. ```
  156. # 删除
  157. ---
  158. * {Domain}/v3/payee/delete
  159. ### Request
  160. ```json
  161. {
  162. "customerNo": "2000305228294092293550",
  163. "email": "[email protected]",
  164. "merchantNo": "202333",
  165. "storeNo": "301854",
  166. "timestamp":"2022-10-31T10:15:11Z",
  167. "verifySign": "24d8c40c625b0a8645d1bf574f3ba085"
  168. }
  169. ```
  170. ### Response
  171. ```json
  172. {
  173. "ret_msg": "delete success",
  174. "ret_code": "000100"
  175. }
  176. ```