终止合作关系
该接口主要为商户提供营销资源的终止授权能力,便于商户管理运营现存的合作关系。
请求参数 | 类型 | 描述 |
---|---|---|
json | object | 声明请求的JSON 数据结构 |
partner | object | 合作方信息 |
type | string | 合作方类别APPID | MERCHANT 枚举值之一 |
appid | string | 合作方APPID |
merchant_id | string | 合作方商户ID |
authorized_data | object | 被授权数据 |
business_type | string | 授权业务类别FAVOR_STOCK | BUSIFAVOR_STOCK 枚举值之一 |
stock_id | string | 授权批次ID |
headers | object | 声明请求的头参数 |
Idempotency-Key | string | 业务请求幂等值 |
php
$instance->v3->marketing->partnerships->terminate->postAsync([
'json' => [
'partner' => [
'type' => 'APPID',
'appid' => '',
'merchant_id' => '',
],
'authorized_data' => [
'business_type' => 'FAVOR_STOCK',
'stock_id' => '',
],
],
'headers' => [
'Idempotency-Key' => '',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/marketing/partnerships/terminate')->postAsync([
'json' => [
'partner' => [
'type' => 'APPID',
'appid' => '',
'merchant_id' => '',
],
'authorized_data' => [
'business_type' => 'FAVOR_STOCK',
'stock_id' => '',
],
],
'headers' => [
'Idempotency-Key' => '',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/marketing/partnerships/terminate']->postAsync([
'json' => [
'partner' => [
'type' => 'APPID',
'appid' => '',
'merchant_id' => '',
],
'authorized_data' => [
'business_type' => 'FAVOR_STOCK',
'stock_id' => '',
],
],
'headers' => [
'Idempotency-Key' => '',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->marketing->partnerships->terminate->post([
'json' => [
'partner' => [
'type' => 'APPID',
'appid' => '',
'merchant_id' => '',
],
'authorized_data' => [
'business_type' => 'FAVOR_STOCK',
'stock_id' => '',
],
],
'headers' => [
'Idempotency-Key' => '',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/marketing/partnerships/terminate')->post([
'json' => [
'partner' => [
'type' => 'APPID',
'appid' => '',
'merchant_id' => '',
],
'authorized_data' => [
'business_type' => 'FAVOR_STOCK',
'stock_id' => '',
],
],
'headers' => [
'Idempotency-Key' => '',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/marketing/partnerships/terminate']->post([
'json' => [
'partner' => [
'type' => 'APPID',
'appid' => '',
'merchant_id' => '',
],
'authorized_data' => [
'business_type' => 'FAVOR_STOCK',
'stock_id' => '',
],
],
'headers' => [
'Idempotency-Key' => '',
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
terminate_time | string | 终止合作关系时间 |
参阅 官方文档