Loading...

DELETE   https://api.3seventy.com/api/v2.1/account/{accountId}/external-couponlist/{externalCouponListId}

Description

Delete a specific external coupon list object and its associated coupons.

Path Parameters

accountId integer The account ID which owns the external coupon list. required
externalCouponListId integer The ID of the external coupon list to be deleted. required

C#


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 externalCouponListId = XXXX;

var context = new T70Context();

var externalCouponRepo = context.Repository<ExternalCouponList>(new { AccountId = accountId });

var item = externalCouponRepo.Get(externalCouponListId);

externalCouponRepo.Delete(item);

}

}