调用 GetCoupon 接口,根据卡券 ID 或关联卡券 ID,查询卡券库中的指定卡券信息。
下表仅列出该接口特有的请求参数和部分公共参数。更多信息详见公共参数。
| 参数 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
| Action | String | 是 | GetCoupon | 接口名称。当前 API 的名称为 GetCoupon。 |
| Version | String | 是 | 2023-08-01 | 接口版本。当前 API 的版本为 2023-08-01。 |
Id | Long | 否 |
| 卡券 ID。您可通过调用 ListCoupons 接口获取 ID。 说明
|
ThirdPartyId | String | 否 |
| 关联卡券 ID,即您自有商城系统中的卡券 ID。 说明
|
| 参数 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| Coupons | Array of Coupons | - | 查询到的卡券列表。 |
| 参数 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| Id | Long | 1823****3443 | 卡券 ID。 |
| Name | String | 手机优惠券 | 卡券名称。 |
| Description | String | 满 500 减 50 | 卡券描述。 |
ThirdPartyId | String |
| 关联卡券 ID,即您自有商城系统中的卡券 ID。 |
| Pic | String | https://www.example.com/a.png | 卡券图片的 URL,包含协议头。 |
IsRepeatPickupEnable | Integer |
| 卡券是否允许重复领取。取值如下:
|
GET https://livesaas.volcengineapi.com/?Action=GetCoupon&Version=2023-08-01&Id=1823****3443
{ "ResponseMetadata": { "RequestId": "20230604110420****100232280022D31", "Action": "GetCoupon", "Version": "2023-08-01", "Service": "livesaas", "Region": "cn-north-1", "SystemTime": 1697446406 }, "Result": { "Coupons": [ { "Id": 1823****3443, "Name": "手机优惠券", "Description": "满 500 减 50", "ThirdPartyId": "uuid1", "Pic": "https://www.example.com/a.png", "IsRepeatPickupEnable": 1 } ] } }