Loading...

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

Description

Lists the external coupon list definition and their details

Path Parameters

accountId integer The account ID the external coupon list belongs to. required

Response Properties application/json

Id integer Global identifier for the external coupon list.
AccountId integer The account ID that external coupon list belongs to
Name string Name of the external coupon list
Description string Description for the external coupon list
Inheritable boolean external coupon list can be shared with the child accounts or not
TotalCodesAvailable integer Total number of codes available


                    

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;

var context = new T70Context();

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

var list =externalCouponRepo.GetAll();

}

}