Loading...

Description

Updates the Coupon Campaign offer details.


Request URL

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

Request Properties

Parameter Description Mandatory
accountId Account Id Yes
campaignId Campaign Id Yes
RegularOffer Regular offer (without coupon) Yes
NewOffer Coupon offer Yes
ImageUrl Offer image ID Yes
TermsAndConditions Terms and conditions of this offer No
UrlBase URL to use as base when sending to user No

Response Properties

Property Description
AccountId The account this offer belongs to
CampaignId The campaign this offer is for
ImageURL Offer image URL
NewOffer Coupon offer (when coupon applied)
RegularOffer Regular offer (without coupon)
TermsAndConditions Terms and conditions of this offer
UrlBase URL to use as base when sending to user

C#
PHP


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;

var context = new T70Context();

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

//Get Coupon Offer

couponOfferRepo.Update(item);

}

}

 

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