Loading...

Description

Lists the external coupon list definition and their details


Request URL

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

Request Properties

Parameter Description Mandatory
accountId The account ID the external coupon list belongs to. Yes

Response Properties

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

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;

var context = new T70Context();

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

var list =externalCouponRepo.GetAll();

}

}

 

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