Send coupon - SendCoupon
Function Overview
This operation allows a reseller to send a coupon to an end customer.
Request parameters
Name | Type | Required | Description | Example value |
SellerId | Long | Yes | The UID of the partner. | 3944837183 |
TemplateId | Long | Yes | The ID of the coupon template. | 295873 |
userAmountModelList | Struct | Yes | User balances | - |
amount | number | Yes | The amount of the coupon. | 100 |
uid | integer | Yes | The end user who receives the coupon. This is an Alibaba Cloud UID. | 1918******883 |
RequestId | string | Yes | The request ID. | dsnjvui9svvsd-14indw |
FromApp | string | Yes | The source of the request. | test-app |
Request examples
http(s)://resellertrade.aliyuncs.com?Action=SendCoupon
&SellerId=153******4157
&TemplateId=29***6632
&<Common request parameters>[
{
"fromApp":"budget-aliyun-inc-com",
"param":{
"bid":26842,
"operator":"12345",
"templateId":100013659884,
"userAmountModelList":[
{
"amount":1000,
"uid":134*******574567
}
]
},
"requestId":"request-210e800416502754648433444de6ba"
}
]Response parameters
Name | Type | Description | Example |
youhuiId | Long | The ID of the coupon template. | 295873 |
userAmountModelList | Struct | A list of users and amounts. | - |
amount | number | The amount of the coupon. | 100 |
uid | integer | The user who receives the coupon. This is an Alibaba Cloud UID. | 1918******883 |
RequestId | string | For end-to-end tracking, the response returns along the original invocation path. | 394847372djewhv |
Success | boolean | Marked successfully. | true |
Code | string | The error code. | success |
Message | string | The error message. | success |
Response example
[
{
"fromApp":"budget-aliyun-inc-com",
"param":{
"userAmountModelList":[
{
"amount":1000,
"uid":134********567,
"youhuiId":18338
}
]
},
"requestId":"request-210e800416502754648433444de6ba"
}
]