Skip to content

企业商户作废员工企业支付额度卡

企业商户作废员工企业支付额度卡。该接口允许服务商作废已下发给员工的企业支付额度卡,作废后该额度卡将无法继续使用,可指定作废原因。当额度卡使用错误、发放错误或需要提前回收额度时,企业可通过此接口作废额度卡。

请求参数类型描述
employee_idstring微信授权关系ID
card_nostring企业支付额度卡卡号
jsonobject声明请求的JSON数据结构
sp_mchidstring服务商商户号
sub_mchidstring出资子商户号
reasonstring作废原因
php
$instance->v3->webizpay->employees->_employee_id_->quotaCards->_card_no_->cancel->postAsync([
  'employee_id' => 'WeBizPay_a968402a-73bb-43e2-9e1a-8371b0ca3d7c',
  'card_no' => '1068019671702503425',
  'json' => [
    'sp_mchid'  => '12341234',
    'sub_mchid' => '43214321',
    'reason'    => '商户主动作废',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/webizpay/employees/{employee_id}/quota-cards/{card_no}/cancel')->postAsync([
  'employee_id' => 'WeBizPay_a968402a-73bb-43e2-9e1a-8371b0ca3d7c',
  'card_no' => '1068019671702503425',
  'json' => [
    'sp_mchid'  => '12341234',
    'sub_mchid' => '43214321',
    'reason'    => '商户主动作废',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/webizpay/employees/{employee_id}/quota-cards/{card_no}/cancel']->postAsync([
  'employee_id' => 'WeBizPay_a968402a-73bb-43e2-9e1a-8371b0ca3d7c',
  'card_no' => '1068019671702503425',
  'json' => [
    'sp_mchid'  => '12341234',
    'sub_mchid' => '43214321',
    'reason'    => '商户主动作废',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->webizpay->employees->_employee_id_->quotaCards->_card_no_->cancel->post([
  'employee_id' => 'WeBizPay_a968402a-73bb-43e2-9e1a-8371b0ca3d7c',
  'card_no' => '1068019671702503425',
  'json' => [
    'sp_mchid'  => '12341234',
    'sub_mchid' => '43214321',
    'reason'    => '商户主动作废',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/webizpay/employees/{employee_id}/quota-cards/{card_no}/cancel')->post([
  'employee_id' => 'WeBizPay_a968402a-73bb-43e2-9e1a-8371b0ca3d7c',
  'card_no' => '1068019671702503425',
  'json' => [
    'sp_mchid'  => '12341234',
    'sub_mchid' => '43214321',
    'reason'    => '商户主动作废',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/webizpay/employees/{employee_id}/quota-cards/{card_no}/cancel']->post([
  'employee_id' => 'WeBizPay_a968402a-73bb-43e2-9e1a-8371b0ca3d7c',
  'card_no' => '1068019671702503425',
  'json' => [
    'sp_mchid'  => '12341234',
    'sub_mchid' => '43214321',
    'reason'    => '商户主动作废',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
sp_mchidstring服务商商户号
sub_mchidstring出资子商户号
employee_idstring微信授权关系ID
card_nostring企业支付额度卡卡号
card_statestring卡片状态
ACTIVE | DISABLED 枚举值之一
card_disabled_timestring卡片失效时间

参阅 官方文档

Published on the GitHub by TheNorthMemory