Skip to content

提交及查询营销补差付款信息

营销补差付款

给核销了商家券的商户做营销资金补差

请求参数类型描述
jsonobject声明请求的JSON数据结构
stock_idstring商家券批次号
coupon_codestring商家券Code
transaction_idstring微信支付订单号
payer_merchantstring营销补差扣款商户号
payee_merchantstring营销补差入账商户号
amountinteger补差付款金额
descriptionstring补差付款描述
out_subsidy_nostring业务请求唯一单号
php
$instance->v3->marketing->busifavor->subsidy->payReceipts->postAsync([
  'json' => [
    'stock_id'       => '128888000000001',
    'coupon_code'    => 'ABCD12345678',
    'transaction_id' => '4200000913202101152566792388',
    'payer_merchant' => '1900000001',
    'payee_merchant' => '1900000002',
    'amount'         => 100,
    'description'    => '20210115DESCRIPTION',
    'out_subsidy_no' => 'subsidy-abcd-12345678',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/marketing/busifavor/subsidy/pay-receipts')->postAsync([
  'json' => [
    'stock_id'       => '128888000000001',
    'coupon_code'    => 'ABCD12345678',
    'transaction_id' => '4200000913202101152566792388',
    'payer_merchant' => '1900000001',
    'payee_merchant' => '1900000002',
    'amount'         => 100,
    'description'    => '20210115DESCRIPTION',
    'out_subsidy_no' => 'subsidy-abcd-12345678',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/marketing/busifavor/subsidy/pay-receipts']->postAsync([
  'json' => [
    'stock_id'       => '128888000000001',
    'coupon_code'    => 'ABCD12345678',
    'transaction_id' => '4200000913202101152566792388',
    'payer_merchant' => '1900000001',
    'payee_merchant' => '1900000002',
    'amount'         => 100,
    'description'    => '20210115DESCRIPTION',
    'out_subsidy_no' => 'subsidy-abcd-12345678',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->marketing->busifavor->subsidy->payReceipts->post([
  'json' => [
    'stock_id'       => '128888000000001',
    'coupon_code'    => 'ABCD12345678',
    'transaction_id' => '4200000913202101152566792388',
    'payer_merchant' => '1900000001',
    'payee_merchant' => '1900000002',
    'amount'         => 100,
    'description'    => '20210115DESCRIPTION',
    'out_subsidy_no' => 'subsidy-abcd-12345678',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/marketing/busifavor/subsidy/pay-receipts')->post([
  'json' => [
    'stock_id'       => '128888000000001',
    'coupon_code'    => 'ABCD12345678',
    'transaction_id' => '4200000913202101152566792388',
    'payer_merchant' => '1900000001',
    'payee_merchant' => '1900000002',
    'amount'         => 100,
    'description'    => '20210115DESCRIPTION',
    'out_subsidy_no' => 'subsidy-abcd-12345678',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/marketing/busifavor/subsidy/pay-receipts']->post([
  'json' => [
    'stock_id'       => '128888000000001',
    'coupon_code'    => 'ABCD12345678',
    'transaction_id' => '4200000913202101152566792388',
    'payer_merchant' => '1900000001',
    'payee_merchant' => '1900000002',
    'amount'         => 100,
    'description'    => '20210115DESCRIPTION',
    'out_subsidy_no' => 'subsidy-abcd-12345678',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
subsidy_receipt_idstring补差付款单号
stock_idstring商家券批次号
coupon_codestring商家券Code
transaction_idstring微信支付订单号
payer_merchantstring营销补差扣款商户号
payee_merchantstring营销补差入账商户号
amountinteger补差付款金额
descriptionstring补差付款描述
statusstring补差付款单据状态
fail_reasonstring补差付款失败原因
success_timestring补差付款完成时间
out_subsidy_nostring业务请求唯一单号
create_timestring补差付款发起时间

参阅 官方文档

查询营销补差付款单列表

查询商家券营销补差付款单列表

请求参数类型描述
queryobject声明请求的查询参数
stock_idstring商家券批次号
coupon_codestring商家券Code
out_subsidy_nostring补差付款请求单号
php
$instance->v3->marketing->busifavor->subsidy->payReceipts->getAsync([
  'query' => [
    'stock_id'       => '128888000000001',
    'coupon_code'    => 'ABCD12345678',
    'out_subsidy_no' => 'subsidy-abcd-12345678',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/marketing/busifavor/subsidy/pay-receipts')->getAsync([
  'query' => [
    'stock_id'       => '128888000000001',
    'coupon_code'    => 'ABCD12345678',
    'out_subsidy_no' => 'subsidy-abcd-12345678',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/marketing/busifavor/subsidy/pay-receipts']->getAsync([
  'query' => [
    'stock_id'       => '128888000000001',
    'coupon_code'    => 'ABCD12345678',
    'out_subsidy_no' => 'subsidy-abcd-12345678',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->marketing->busifavor->subsidy->payReceipts->get([
  'query' => [
    'stock_id'       => '128888000000001',
    'coupon_code'    => 'ABCD12345678',
    'out_subsidy_no' => 'subsidy-abcd-12345678',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/marketing/busifavor/subsidy/pay-receipts')->get([
  'query' => [
    'stock_id'       => '128888000000001',
    'coupon_code'    => 'ABCD12345678',
    'out_subsidy_no' => 'subsidy-abcd-12345678',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/marketing/busifavor/subsidy/pay-receipts']->get([
  'query' => [
    'stock_id'       => '128888000000001',
    'coupon_code'    => 'ABCD12345678',
    'out_subsidy_no' => 'subsidy-abcd-12345678',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
pay_receipt_listobject[]补差付款单据列表
subsidy_receipt_idstring补差付款单号
stock_idstring商家券批次号
coupon_codestring商家券Code
transaction_idstring微信支付订单号
payer_merchantstring营销补差扣款商户号
payee_merchantstring营销补差入账商户号
amountinteger补差付款金额
descriptionstring补差付款描述
statusstring补差付款单据状态
fail_reasonstring补差付款失败原因
success_timestring补差付款完成时间
out_subsidy_nostring业务请求唯一单号
create_timestring补差付款发起时间

参阅 官方文档

Published on the GitHub by TheNorthMemory