Skip to content

查询订单剩余待分金额

可调用此接口查询订单剩余待分金额

请求参数类型描述
transaction_idstring微信订单号
php
$instance->v3->brand->profitsharing->orders->_transaction_id_->amounts->getAsync([
  'transaction_id' => '4208450740201411110007820472',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/brand/profitsharing/orders/{transaction_id}/amounts')->getAsync([
  'transaction_id' => '4208450740201411110007820472',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/brand/profitsharing/orders/{transaction_id}/amounts']->getAsync([
  'transaction_id' => '4208450740201411110007820472',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->brand->profitsharing->orders->_transaction_id_->amounts->get([
  'transaction_id' => '4208450740201411110007820472',
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/brand/profitsharing/orders/{transaction_id}/amounts')->get([
  'transaction_id' => '4208450740201411110007820472',
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/brand/profitsharing/orders/{transaction_id}/amounts']->get([
  'transaction_id' => '4208450740201411110007820472',
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
transaction_idstring微信订单号
unsplit_amountinteger订单剩余待分金额

参阅 官方文档

Published on the GitHub by TheNorthMemory