Update Coupon Definition

Request URL

PUT   https://api.3seventy.com/api/v2.1/account/{accountId}/campaign/{campaignId}/coupon

Request Properties

Parameter Description Mandatory
accountId The account to which the coupon will report to. Yes
campaignId The coupon campaign to define Yes
CouponTypeId The type of coupon that's being defined, Static or Dynamic. Yes
Prefix The prefix code for the coupon. No
StaticCode The static code for the coupon. Yes
ExternalId1 A user definable ID value. No
ExternalId2 A second user definable ID value. No
ValidFrom The date we should start allowing coupons to be redeemed. No
ValidTo THe date we should stop allowing coupons to be redeemed. No
MaxUses The maximum number of allowed uses per customer. No
ValidDateTypeId Coupon Code valid DateTypeId i.e. None or Static or Rolling No
ValidRollingDays Number of days that coupon code is valid for the Rolling date type Coupon Code No
ValidRollingOffSet Rolling offset days of the coupon code No
ExternalListId External Coupon List Id value No
ExternalCouponList External Coupon List details No


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Linq;
using ThreeSeventy.Vector.Client;
using ThreeSeventy.Vector.Client.Enums;
using ThreeSeventy.Vector.Client.Models;

public class Program

private static void Main(string[] args)

const int accountId = XXXX;

const int campaignId = XXXX;

const int couponOfferId = XXXX;

var context = new T70Context();

var couponOfferRepo = context.Repository<CouponOffer>(new { AccountId = accountId , CampaignId = campaignId});

//Get the coupon Offer that needs to update





Stay tuned for JAVA code snippet
Stay tuned for RUBY code snippet
Stay tuned for PHP code snippet