Sign in

Update promotion

documented

Update a promotion.

PUT /3dCartWebAPI/v1/Promotions/{promotionId}Promotionsno 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/{{$promotionId}}" \
  -X PUT \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "SecureUrl: {{SHIFT4SHOP_SECURE_URL}}" \
  -H "PrivateKey: {{SHIFT4SHOP_SECRET}}" \
  -H "Token: {{SHIFT4SHOP_TOKEN}}" \
  -d '{"PromotionID": {{$promotionId}}, "PromotionName": "{{$PromotionName}}", "PromotionDescription": "{{$PromotionDescription}}", "PromotionStart": "{{$PromotionStart}}", "PromotionEnd": "{{$PromotionEnd}}", "PromotionEnabled": {{$PromotionEnabled}}, "PromotionByAmount": {{$PromotionByAmount}}, "PromotionCheckByAmount": {{$PromotionCheckByAmount}}, "PromotionByQuantity": {{$PromotionByQuantity}}, "PromotionCheckByQuantity": {{$PromotionCheckByQuantity}}, "PromotionByProduct": {{$PromotionByProduct}}, "PromotionByCategory": "{{$PromotionByCategory}}", "PromotionAmount": {{$PromotionAmount}}, "PromotionPercentage": {{$PromotionPercentage}}, "PromotionPerItem": {{$PromotionPerItem}}, "PromotionCategory": "{{$PromotionCategory}}", "PromotionProduct": "{{$PromotionProduct}}", "PromotionFreeShipping": {{$PromotionFreeShipping}}, "PromotionFreeProduct": "{{$PromotionFreeProduct}}", "PromotionProduct1ID": {{$PromotionProduct1ID}}, "PromotionProduct1Quantity": {{$PromotionProduct1Quantity}} }'
Update promotion · Shift4Shop · OpenIntegrations