HomeGuidesAPI ReferenceChangelogDiscussions
HomeLog In
Guides

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

ParameterColumn TypeDescriptionExample
promotion_idStringPromotion ID5f47c96a86a983001614a830

Sample Response

{
  "items": [
    {
      "id": "63eb06163c858b003b1833d0",
      "user_id": "6268e03b4055ee001e7ddeb0"
    }
  ],
  "pagination": {
    "current_page": 1,
    "per_page": 24,
    "total_count": 1,
    "total_pages": 1
  }
}

Response Param

FieldTypeDescriptionExample
items[].idStringUser Coupon ID5f47c96a86a983001614a830
items[].user_idStringUser ID5f47c96a86a983001614a831
paginationPaginationPagination Data 頁面資訊資訊