Sign in

Create promotion

documented

Create a promotion.

POST /3dCartWebAPI/v1/PromotionsPromotionsno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://apirest.3dcart.com/3dCartWebAPI/v1/Promotions" \
  -X POST \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "SecureURL: {{$secure_url}}" \
  -H "PrivateKey: {{$private_key}}" \
  -H "Token: {{$token}}" \
  -d '{"PromotionName": "{{$title}}", "PromotionDescription": "{{$description}}", "PromotionStart": "{{$start}}", "PromotionEnd": "{{$end}}", "PromotionEnabled": {{$enabled}}, "PromotionByAmount": {{$byAmount}}, "PromotionCheckByAmount": {{$checkByAmount}}, "PromotionByQuantity": {{$byQuantity}}, "PromotionCheckByQuantity": {{$checkByQuantity}}, "PromotionByProduct": {{$byProduct}}, "PromotionAmount": {{$amount}}, "PromotionPercentage": {{$percentage}}, "PromotionPerItem": {{$perItem}}, "PromotionCategory": "{{$category}}", "PromotionProduct": "{{$product}}", "PromotionCoupon": "{{$coupon}}", "PromotionGroupID": "{{$group_id}}", "PromotionUserid": "{{$userid}}"}'
Create promotion · Shift4Shop · OpenIntegrations