Get Promotion
Function
To get detailed information for a specific promotion with its ID
使用優惠活動ID獲取特定一個優惠活動的詳細資料
URL
GET <<api_domain>>/v1/promotions/:id
Request parameters
Parameter | Type | Description | Example |
|---|---|---|---|
:id *Required |
| Promotion ID |
|
Response fields
Field | Type | Description | Example |
|---|---|---|---|
id |
| Promotion ID | 5e8445bcca53240021eab706 |
discount_percentage |
| Discount percentage
| 10.0 |
discount_amount | Discount amount
| Please check the link on the left | |
discountable_quantity |
| Quantity
| 3 |
discounted_point |
| Amount of point to redeem gift
| 100 |
discounted_price | Discounted price
| Please check the link on the left | |
discountable_product_ids |
| Ids of Discounted product |
|
discountable_category_ids |
| Ids of Discounted category |
|
conditions |
| Condition of the promotion to take effect
|
|
discount_on |
| Promotion target
| order |
discount_type |
| Discount type
| percentage |
is_accumulated |
| Is bundle pricing or bundle pricing accumulated? | true |
codes |
| Coupon Code |
|
requires_membership |
| Does it require membership?
| true |
whitelisted_membership_tier_ids |
| Specific Membership Tiers |
|
membership_tier_id |
| Promotion Membership Tier | 5e8445bcca53240021eab706 |
whitelisted_tag_contents |
| Specific tag contents |
|
user_max_use_count |
| Limit per member
| 1 |
max_use_count |
| How many times can this promotion be used?
| 20 |
use_count |
| Usage of this layer of promotion | 5 |
sum_use_count |
| Total usage of promotion | 14 |
drew_coupon_count | Integer | Total drew of promotion | 0 |
whitelisted_delivery_option_ids |
| Delivery options that applicable to the promotion |
|
whitelisted_payment_ids |
| Payment options that applicable to the promotion |
|
start_at |
| Promotion start time | 2020-07-09T04:00:00.000+00:00 |
end_at |
| Promotion end time
| null |
created_at |
| Promotion created time | 2020-07-09T04:00:00.000+00:00 |
updated_at |
| Promotion updated time | 2020-07-09T04:00:00.000+00:00 |
status |
| Promotion status
| active |
usable |
| Is promotion active
false: unpublished or not started or expired 活動下架 或是 尚未開始 或是 已過期 | true |
first_purchase_only |
| Is first purchase only | true |
show_coupon |
| Is promotion coupons showed | true |
for_affiliate_campaign |
| Is applicable to affiliate campaign | true |
is_contain_campaign |
| Is binded to affiliate campaign | true |
seo_keywords |
| SEO keywords | summer special |
seo_description_translations | Description of SEO | Please check the link on the left | |
seo_title_translations | Title of SEO | Please check the link on the left | |
title_translations | Promotion Title | Please check the link on the left | |
link | SEO Link | Please check the link on the left | |
available_platforms |
| Promotion available platforms |
|
is_partial_free_shipping |
| Is partial free shipping | true |
extended_promotion_id |
| Parent promotion id
| 5f06a6cb0a3509004853443a |
extend_promotions |
| Child layer promotion and condition
|
|
Response Example
{
"id":"62aaf4d83dc888003b2ce6de",
"discount_percentage":3,
"discount_amount":null,
"discountable_quantity":null,
"discounted_point":null,
"discounted_price":null,
"discountable_product_ids":[
"629821a3b6aafb0007f5091b"
],
"conditions":[
{
"id":"62aaf4d83dc888003b2ce6df",
"min_item_count":null,
"min_price":{
"cents":666,
"currency_symbol":"NT$",
"currency_iso":"TWD",
"label":"NT$666",
"dollars":666
},
"type":null,
"whitelisted_product_ids":[
"62440ebeeeaf010008c40ee4",
"62440ebeeeaf010008c40ed8"
],
"whitelisted_category_ids":[
],
"blacklisted_product_ids":[
]
}
],
"created_at":"2022-06-16T09:16:08.251+00:00",
"updated_at":"2022-06-16T09:17:57.118+00:00",
"title_translations":{
"en":"44444"
},
"discountable_category_ids":[
],
"discount_on":"item",
"discount_type":"percentage",
"is_accumulated":false,
"codes":[
],
"show_coupon":false,
"membership_tier_id":null,
"requires_membership":false,
"whitelisted_membership_tier_ids":[
],
"whitelisted_tag_contents":[
],
"user_max_use_count":0,
"max_use_count":11,
"use_count":0,
"sum_use_count":0,
"first_purchase_only":true,
"whitelisted_delivery_option_ids":[
"627cb1148466020038cc2fbd",
"627cabfca31d87001fc59d15",
"627cabc8a31d870019c59d15",
"627c851ce10d0e1df7c9a4c5",
"6195cd3207d5e70049c9506c"
],
"whitelisted_payment_ids":[
"6267a9289ad3fd00340665dc",
"62625477e74c640038cfd928",
"6195ccfd07d5e7004cc9506b"
],
"start_at":"2022-06-14T17:55:02.000+00:00",
"end_at":null,
"status":"active",
"usable":true,
"for_affiliate_campaign":false,
"is_contain_campaign":false,
"seo_keywords":"abc",
"seo_description_translations":{
},
"seo_title_translations":{
},
"link":null,
"available_platforms":[
"ec"
],
"is_partial_free_shipping":false,
"extended_promotion_id":"62aaf4d83dc88800322ce6e1",
"extend_promotions":[
{
"id":"5f06c48a436e2b004b471613",
"discount_percentage":null,
"discount_amount":null,
"discountable_quantity":null,
"discounted_point":10000,
"discounted_price":null,
"discountable_product_ids":[
"5f06a6ad2a051a0048caec6f"
],
"conditions":[
]
}
]
}Updated 13 days ago