查询 Transfer 对象

通过 transfer 对象的 id 查询一个已创建的 transfer 对象。

属性描述
TRANSFER_ID required string付款对象 id,该参数仅需要填写在请求地址内。

返回

返回一个已存在的 transfer 对象或者一个错误,详见 错误

定义

GET https://api.pingxx.com/v1/transfers/{TRANSFER_ID}
\Pingpp\Transfer::retrieve('TRANSFER_ID');
Transfer.retrieve({TRANSFER_ID});
Pingpp::Transfer.retrieve({TRANSFER_ID})
pingpp.transfers.retrieve({TRANSFER_ID});
pingpp.Transfer.retrieve('TRANSFER_ID')
transfer, err := transfer.Get("TRANSFER_ID")
retrieve(String id)

请求示例

curl https://api.pingxx.com/v1/transfers/tr_HqbzHCvLOaL4La1ezHfDWTqH \
-u sk_test_ibbTe5jLGCi5rzfH4OqPW9KC:
\Pingpp\Pingpp::setApiKey('sk_test_ibbTe5jLGCi5rzfH4OqPW9KC');

\Pingpp\Transfer::retrieve('tr_HqbzHCvLOaL4La1ezHfDWTqH');
Pingpp.apiKey = "sk_test_ibbTe5jLGCi5rzfH4OqPW9KC";

Transfer.retrieve("tr_HqbzHCvLOaL4La1ezHfDWTqH");
require "pingpp"
Pingpp.api_key = "sk_test_ibbTe5jLGCi5rzfH4OqPW9KC"
Pingpp::Transfer.retrieve("tr_HqbzHCvLOaL4La1ezHfDWTqH")
var pingpp = require('pingpp')('sk_test_ibbTe5jLGCi5rzfH4OqPW9KC');
pingpp.transfers.retrieve(
   "tr_HqbzHCvLOaL4La1ezHfDWTqH",
   function(err, transfer) {
     // YOUR CODE
   }
);
import pingpp
pingpp.api_key = 'sk_test_ibbTe5jLGCi5rzfH4OqPW9KC'
pingpp.Transfer.retrieve('tr_HqbzHCvLOaL4La1ezHfDWTqH')
pingpp.Key = "sk_test_ibbTe5jLGCi5rzfH4OqPW9KC"
transfer, err := transfer.Get("tr_HqbzHCvLOaL4La1ezHfDWTqH")
try {
    Transfer tr = Transfer.retrieve("evt_lqVSy5gbL0A68pS8YKvJzdWZ");
    Console.WriteLine(tr);
} catch (Exception e) {
    Console.WriteLine(e.Message.ToString());
}

返回示例

{
    "id": "tr_HqbzHCvLOaL4La1ezHfDWTqH",
    "object": "transfer",
    "type": "b2c",
    "created": 1432724825,
    "time_transferred": null,
    "livemode": true,
    "status": "pending",
    "app": "app_1Gqj58ynP0mHeX1q",
    "channel": "wx_pub",
    "order_no": "123456789",
    "amount": 100,
    "amount_settle": 100,
    "currency": "cny",
    "recipient": "o7zpMs5MW2-52GAy5hRrjdYVCktU",
    "description": "Your Description",
    "transaction_no": "1000018301201505200184147302",
    "failure_msg":null,
    "extra": {
        "user_name": "User Name",
        "force_check": true
    }
}