Loading...

Description

Deletes the Coupon Campaign offer details.


Request URL

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

Request Properties

Parameter Description Mandatory
accountId Account Id Yes
campaignId Camapign Id Yes

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, then delete it

couponOfferRepo.Delete(item);

}

}

 

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