终止合作关系
该接口主要为商户提供营销资源的终止授权能力,便于商户管理运营现存的合作关系。
请求参数 | 类型 | 描述 |
---|---|---|
json | object | 声明请求的JSON 数据结构 |
partner | object | |
type | string | |
appid | string | |
merchant_id | string | |
authorized_data | object | |
business_type | string | |
stock_id | string | |
headers | object | 声明请求的头参数 |
Idempotency-Key | string | 业务请求幂等值 |
php
$instance->v3->marketing->partnerships->terminate->postAsync([
'json' => [
'partner' => [
'type' => '',
'appid' => '',
'merchant_id' => '',
],
'authorized_data' => [
'business_type' => '',
'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' => '',
'merchant_id' => '',
],
'authorized_data' => [
'business_type' => '',
'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' => '',
'merchant_id' => '',
],
'authorized_data' => [
'business_type' => '',
'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' => '',
'merchant_id' => '',
],
'authorized_data' => [
'business_type' => '',
'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' => '',
'merchant_id' => '',
],
'authorized_data' => [
'business_type' => '',
'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' => '',
'merchant_id' => '',
],
'authorized_data' => [
'business_type' => '',
'stock_id' => '',
],
],
'headers' => [
'Idempotency-Key' => '',
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
terminate_time | string | 终止合作关系时间 |
参阅 官方文档