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.

100 lines
2.9 KiB

  1. # Submit supplementa data for CNY users
  2. ---
  3. * Method: `POST`
  4. * `/v3/payouts/supplemental`
  5. ### Request
  6. |Field|M/C/O|Type|Description|
  7. |---|---|---|---|
  8. |invoiceId|M|String|Same `invoiceId` for the associated Payout transaction|
  9. |customerNo|M|String|Payee ID, same value with the customerNo in Payout transaction|
  10. |mode|M|String|Mandontary, value is `batch`|
  11. |materials|M|Object List|The supplemental data informations|
  12. ###### Material
  13. |Field|M/C/O|Type|Description|
  14. |---|---|---|---|
  15. |transactionNo|M|String|Payin Transaction ID/Order No./Reference ID|
  16. |payerName|M|String|The Payer name of the original payment transaction, buyer's name|
  17. |email|M|String|The buyer's email address|
  18. |payerCountryCode|M|String|The buyer's country code, e.g. CN|
  19. |tradeTime|M|String|The original trade order time|
  20. |tradeCurrency|M|String|The original trade order currency|
  21. |tradeAmount|M|String|The original trade order amount|
  22. |goodsCarrier|M|String|The goods carrier|
  23. |serviceDetail|M|String|The original order information, e.g. goods name, price, count.|
  24. |serviceTime|M|String|Service time can be the original order time.|
  25. ```json
  26. {
  27. "merchantNo": "202333",
  28. "storeNo": "301854",
  29. "verifySign": "cba0a40794c2c76519a3b87679551a8e",
  30. "timestamp": "2023-02-17T22:02:16Z",
  31. "invoiceId": "917162d533644e3ed9c2cafd4299040e",
  32. "customerNo": "2000305228264750734154",
  33. "mode": "batch",
  34. "materials": [
  35. {
  36. "transactionNo": "302623160655346146",
  37. "payerName": "John Doe1",
  38. "email": "[email protected]",
  39. "payerCountryCode": "CA",
  40. "tradeTime": "2021-12-22T15:56:26Z",
  41. "tradeCurrency": "USD",
  42. "tradeAmount": "1000.00",
  43. "goodsCarrier": "Fedex",
  44. "serviceDetail": "Wine",
  45. "serviceTime": "2020-12-22T15:55:26Z"
  46. },
  47. {
  48. "transactionNo": "302623160655346147",
  49. "payerName": "John Doe2",
  50. "email": "[email protected]",
  51. "payerCountryCode": "US",
  52. "tradeTime": "2021-12-22T16:56:26Z",
  53. "tradeCurrency": "USD",
  54. "tradeAmount": "2001.00",
  55. "goodsCarrier": "德邦快递",
  56. "serviceDetail": "Cigar",
  57. "serviceTime": "2021-12-22T17:55:26Z"
  58. }]
  59. }
  60. ```
  61. ### Response
  62. ```json
  63. {
  64. "result":
  65. {
  66. "records": [
  67. {
  68. "amount": "1000.00",
  69. "paymentId": "302623160655346146",
  70. "payerName": "John Doe1",
  71. "invoiceId": "917162d533644e3ed9c2cafd4299040e",
  72. "currency": "USD",
  73. "status": "succeeded"
  74. },
  75. {
  76. "amount": "2001.00",
  77. "paymentId": "302623160655346147",
  78. "payerName": "John Doe2",
  79. "invoiceId": "917162d533644e3ed9c2cafd4299040e",
  80. "currency": "USD",
  81. "status": "succeeded"
  82. }],
  83. "transactionNo": "305452742174470834",
  84. "invoiceId": "917162d533644e3ed9c2cafd4299040e"
  85. },
  86. "ret_msg": "created",
  87. "ret_code": "000100"
  88. }
  89. ```