Get Customer IDs of User Coupon
To get the customer IDs of a User Coupon with a promotion
獲取特定 promotion 的 User Coupon 及 Customer IDs (獲取領取型優惠券的已領取顧客名單)
GET https://open.shopline.io/v1/user_coupons?promotion_id={{draw_type_promotion_id}}
Request Example
curl --request GET \
--url https://open.shopline.io/v1/user_coupons?promotion_id=some_draw_type_promotion_id \
--header 'Accept: application/json'
Query Params
Parameter | Column Type | Description | Example |
---|---|---|---|
promotion_id | String | Promotion ID | 5f47c96a86a983001614a830 |
Sample Response
{
"items": [
{
"id": "63eb06163c858b003b1833d0",
"user_id": "6268e03b4055ee001e7ddeb0"
}
],
"pagination": {
"current_page": 1,
"per_page": 24,
"total_count": 1,
"total_pages": 1
}
}
Response Param
Field | Type | Description | Example |
---|---|---|---|
items[].id | String | User Coupon ID | 5f47c96a86a983001614a830 |
items[].user_id | String | User ID | 5f47c96a86a983001614a831 |
pagination | Pagination | Pagination Data 頁面資訊資訊 |
Updated 12 months ago