Loading...

Description

Get all coupon codes associated with a perticular External coupon ListId


Request URL

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

Request Properties

Parameter Description Mandatory
accountId The account ID the external coupon list belongs to. Yes
externalCouponListId The External Coupon List Id who's coupon codes should be returned Yes

Response Properties

Property Description
ContactId The Customer who received the external coupon code
CouponCode The external coupon code
Created The date when the external coupon code is created
ListId External Coupon list Id associated with this Coupon Code
ReservationToken Platform.Services.AccountService.Data.ContentTemplate

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

var context = new CouponRestContext();

var list = context.GetCouponExternalCodeList(accountId, externalCouponListId);

}

}

 

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