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.

281 lines
5.9 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
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|O|国家名称|
  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. ###### Individual Registration
  39. ```json
  40. {
  41. "city": "北京",
  42. "country": "中国",
  43. "countryCode": "CN",
  44. "customerCode": "1667198337",
  45. "dateOfBirth": "1999-01-01",
  46. "email": "[email protected]",
  47. "firstName": "三",
  48. "governmentId": "110101199003074493",
  49. "governmentIdType": "ID_CARD",
  50. "lastName": "张",
  51. "merchantNo": "202333",
  52. "phone": "1234567890",
  53. "profileType": "INDIVIDUAL",
  54. "state": "北京",
  55. "storeNo": "301854",
  56. "street": "长城",
  57. "street2": "",
  58. "verifySign": "141803fb1e21ff977d7fa5f68067860a",
  59. "zip": "100000"
  60. }
  61. ```
  62. ###### Response
  63. |参数名|M/C/O|描述|
  64. |---|---|---|
  65. |customerNo|M|客户编号,唯一ID,请保存|
  66. ```json
  67. {
  68. "ret_msg": "success",
  69. "ret_code": "000100",
  70. "customer": {
  71. "firstName": "三",
  72. "lastName": "张",
  73. "customerCode": "1667198337",
  74. "createdTime": "2022-10-31T06:40:20Z",
  75. "customerNo": "2000305228294092293550",
  76. "email": "[email protected]"
  77. }
  78. }
  79. ```
  80. ###### Business registraiton
  81. ```json
  82. {
  83. "city": "北京",
  84. "country": "中国",
  85. "countryCode": "CN",
  86. "customerCode": "1667198337",
  87. "dateOfBirth": "1999-01-01",
  88. "email": "[email protected]",
  89. "phone": "1234567890",
  90. "firstName": "白",
  91. "governmentId": "91310115768225450T",
  92. "governmentIdType": "BUSINESS_REGISTRATION_CERT",
  93. "company":"支付宝",
  94. "lastName": "李",
  95. "merchantNo": "202333",
  96. "profileType": "BUSINESS",
  97. "state": "北京",
  98. "storeNo": "301854",
  99. "street": "长城",
  100. "street2": "",
  101. "timestamp":"2022-11-08T07:02:42Z",
  102. "verifySign": "0df90da9e26240fe3d8cfdaef2e66e9b",
  103. "zip": "100000"
  104. }
  105. ```
  106. ###### Response
  107. ```json
  108. {
  109. "ret_msg": "success",
  110. "ret_code": "000100",
  111. "customer": {
  112. "firstName": "白",
  113. "lastName": "李",
  114. "customerCode": "1667198337",
  115. "createdTime": "2022-11-08T07:03:28Z",
  116. "customerNo": "2000305228294784880996",
  117. "email": "[email protected]"
  118. }
  119. }
  120. ```
  121. # 查询
  122. ---
  123. * {Domain}/v3/payee/retrieve
  124. ### Request
  125. * email, customerCode, customerNo 都可以作为查询条件
  126. * `timestamp`: API调用实时时间戳,UTC零时区格式
  127. ```json
  128. {
  129. "customerNo": "2000305228294780373141",
  130. "email": "[email protected]",
  131. "merchantNo": "202333",
  132. "storeNo": "301854",
  133. "timestamp":"2022-11-08T06:31:34Z",
  134. "verifySign": "1d63dd51b198bc3013b8e102d57c5d7e"
  135. }
  136. ```
  137. ### Response
  138. ###### Payee Statuses
  139. |Status|Description|
  140. |---|---|
  141. |Unverified|payee need to sign agreement in the Pockyt Portal|
  142. |Pending|pending payee to submit supplemental docs|
  143. |Underreview|pending Pockyt KYC|
  144. |Activated|ready to add payment methods & receive payouts|
  145. |Deactivated|offboarded accounts|
  146. |Declined|rejected accounts|
  147. ```json
  148. {
  149. "ret_msg": "query success",
  150. "ret_code": "000100",
  151. "customer": {
  152. "zip": "90012",
  153. "lastName": "Doe",
  154. "country": "China",
  155. "updatedTime": "2022-11-08T05:48:20Z",
  156. "payeeStatus": "Unverified",
  157. "city": "北京市",
  158. "customerCode": "123",
  159. "dateOfBirth": "1990-03-07",
  160. "firstName": "John",
  161. "governmentIdType": "ID_CARD",
  162. "profileType": "INDIVIDUAL",
  163. "countryCode": "CN",
  164. "street": "长城",
  165. "createdTime": "2022-11-08T05:48:20Z",
  166. "state": "北京",
  167. "lang": "zh_CN",
  168. "customerNo": "2000305228294780373141",
  169. "email": "[email protected]",
  170. "governmentId": "110101199003079139"
  171. }
  172. }
  173. ```
  174. # 修改
  175. ---
  176. * {Domain}/v3/payee/update
  177. * 已激活(审核通过)的账号不允许再修改,会报错
  178. ### Request
  179. ```json
  180. {
  181. "customerNo":"2000305228294092293550",
  182. "city": "北京",
  183. "country": "中国",
  184. "countryCode": "CN",
  185. "customerCode": "1667198337",
  186. "dateOfBirth": "1999-01-02",
  187. "firstName": "三",
  188. "governmentId": "110101199003074493",
  189. "governmentIdType": "ID_CARD",
  190. "lastName": "张",
  191. "merchantNo": "202333",
  192. "phone": "1234567890",
  193. "profileType": "INDIVIDUAL",
  194. "state": "北京",
  195. "storeNo": "301854",
  196. "street": "中南海",
  197. "street2": "No. 123",
  198. "verifySign": "55704c3e018d7878f3be3f14b472e05f",
  199. "zip": "100001"
  200. }
  201. ```
  202. ### Response
  203. ```json
  204. {
  205. "ret_msg": "update success",
  206. "ret_code": "000100"
  207. }
  208. ```
  209. # 删除
  210. ---
  211. * {Domain}/v3/payee/delete
  212. ### Request
  213. ```json
  214. {
  215. "customerNo": "2000305228294092293550",
  216. "email": "[email protected]",
  217. "merchantNo": "202333",
  218. "storeNo": "301854",
  219. "timestamp":"2022-10-31T10:15:11Z",
  220. "verifySign": "24d8c40c625b0a8645d1bf574f3ba085"
  221. }
  222. ```
  223. ### Response
  224. ```json
  225. {
  226. "ret_msg": "delete success",
  227. "ret_code": "000100"
  228. }
  229. ```