Skip to main content
Skip table of contents

Queue listener attributes information

Overview

A queue listener allows you to monitor a “listener queue” for the arrival of data. Data arrives in the form of JSON packages – placed on the queue either by an external system, or at submission of a web form. Within the setup of queue listeners, there are sets of parameters that are defined that reside in either the header section or within the repeater section of the JSON payloads.

Configured attributes

Header parameters

The header parameters are where the higher-level information resides within the JSON payload in regard to the data being passed. These data points are needed one time within the payload to populate the desired fields and information within an offer. For example: billing address, shipping address, brand, etc.

Header Parameters

Payload Field Name

Data Type

Sample Values

Action Date

action_date

date

04/07/2023

Action Type

action_type

nvarchar(100)

welcome, receipt

Billing Address 1

bill_addr1

nvarchar(128)

2604 Washington Rd

Billing Address 2

bill_addr2

nvarchar(128)

Attn: Locker 29

Billing City

bill_city

nvarchar(64)

Augusta

Billing First Name

bill_first_name

nvarchar(60)

Thomas

Billing Last Name

bill_last_name

nvarchar(60)

Woods

Billing State

bill_state

nvarchar(64)

GA

Billing Zip Code

bill_zip

nvarchar(16)

30904

Birthdate

birthdate

date

04/07/2022

Brand

brand

nvarchar(50)

Callaway

Campaign Code

campaign_code

nvarchar(50)

GreenJacket2023

Carrier

carrier

nvarchar(50)

UPS

Cart Total

cart_total

numeric(20,2)

150.99

Client ID

client_id

bigint

3124678

Coupon Amount

coupon_amt

numeric(20,2)

25.00

Coupon Code

coupon_code

nvarchar(50)

25Off

Customer ID

customer_id

bigint

4568795

Email

email

nvarchar(255)

TomWoods@gmail.com

Home Address 1

home_addr1

nvarchar(128)

123 Main St

Home Address 2

home_addr2

nvarchar(128)

Apt 29

Home City

home_city

nvarchar(64)

Wellesley

Home Phone

home_phone

nvarchar(15)

781-562-8052

Home State

home_state

nvarchar(64)

MA

Home Zip Code

home_zip

nvarchar(16)

01865

Individual ID

individual_id

bigint

1325648

List ID

list_id

nvarchar(50)

Masters2023

Loyalty ID

loyalty_id

bigint

2156489

Member ID

member_id

bigint

8974531

Merchandise Total

merch_total

numeric(20,2)

125.89

Message

message

nvarchar(500)

Thank You

Mobile Phone

mobile_phone

nvarchar(15)

781-587-9531

First Name

name_first

nvarchar(60)

Robert

Last Name

name_last

nvarchar(60)

Fowler

Order Date

order_date

datetime

12/04/2022

Order Number

order_number

bigint

132154

Order Status

order_status

nvarchar(20)

Shipped

Order Total

order_total

numeric(20,2)

250.00

Payment Amount 1

pay_amt1

numeric(20,2)

50.00

Payment Amount 2

pay_amt2

numeric(20,2)

50.00

Payment Amount 3

pay_amt3

numeric(20,2)

50.00

Payment Amount 4

pay_amt4

numeric(20,2)

50.00

Payment Amount 5

pay_amt5

numeric(20,2)

50.00

Payment Expiration 1

pay_exp1

date

Payment Expiration 2

pay_exp2

date

12/15/2024

Payment Expiration 3

pay_exp3

date

11/17/2025

Payment Expiration 4

pay_exp4

date

12/19/2025

Payment Expiration 5

pay_exp5

date

8/15/2023

Payment Name 1

pay_name1

nvarchar(25)

Cash

Payment Name 2

pay_name2

nvarchar(25)

Credit Card

Payment Name 3

pay_name3

nvarchar(25)

Credit Card

Payment Name 4

pay_name4

nvarchar(25)

Gift Card

Payment Name 5

pay_name5

nvarchar(25)

Credit Card

Payment Number 1

pay_num1

bigint

Payment Number 2

pay_num2

bigint

8879458923461236

Payment Number 3

pay_num3

bigint

3214521896175315

Payment Number 4

pay_num4

bigint

3214965937851486

Payment Number 5

pay_num5

bigint

2315687961781356

Payment Type 1

pay_type1

nvarchar(15)

Payment Type 2

pay_type2

nvarchar(15)

Visa

Payment Type 3

pay_type3

nvarchar(15)

Mastercard

Payment Type 4

pay_type4

nvarchar(15)

GiftCard

Payment Type 5

pay_type5

nvarchar(15)

Amex

Phone Number

phone_number

nvarchar(15)

781-541-6572

Recipient First Name

recip_name_first

nvarchar(50)

Alan

Recipient Last Name

recip_name_last

nvarchar(50)

Palmer

Shipping Address 1

ship_addr1

nvarchar(128)

9000 Bay Hill Boulevard

Shipping Address 2

ship_addr2

nvarchar(128)

Attn: Pro Shop

Shipping City

ship_city

nvarchar(64)

Bay Hill

Shipping First Name

ship_first_name

nvarchar(60)

Vincent

Shipping Last Name

ship_last_name

nvarchar(60)

Hovland

Shipping State

ship_state

nvarchar(64)

FL

Ship to Store

ship_to_store

nvarchar(50)

Shipping Zip Code

ship_zip

nvarchar(16)

01835

Shipping

shipping

numeric(20,2)

5.99

Store Address 1

store_addr1

nvarchar(128)

789 Washington St

Store City

store_city

nvarchar(64)

Burlington

Store ID

store_id

bigint

123146

Store State

store_state

nvarchar(64)

MA

Store Zip Code

store_zip

nvarchar(16)

45136

Tax Amount

tax

numeric(20,2)

5.01

Total Cost

total_cost

numeric(20,2)

130.00

Transaction ID

transaction_id

bigint

13215648

Repeater parameters

The repeater parameters are where the more detailed information resides within the JSON payload in regard to the data being passed. These data points can be sent multiple times within the payload to populate the desired fields and information within an offer. For example, you’re sending an order confirmation email and would like to populate all of the items the customer has purchased within the message. Within the repeater fields, you are able to send multiple sections in the payload to account for each of the items with information such as item description, item cost, item quantity, and also URLs for each item to display within the email message.

Repeater Parameters

Payload Field Name

Data Type

Sample Values

Discount Segment

discount_seg

nvarchar(25)

Discount Type

discount_type

nvarchar(25)

Buy3Get1Free

Discount Description

discount_desc

nvarchar(25)

Buy3Get1Free

Discount Amount

discount_amt

numeric(20,2)

54.99

Item Coupon Code

item_coupon_code

nvarchar(50)

Buy3Get1Free

Item Description

item_desc

nvarchar(500)

Golf Balls

Item Image Source URL

item_img_src_url

nvarchar(500)

https://www.titleist.com/dw/image/v2/AAZW_PRD/on/demandware.static/-/Sites-titleist-master/default/dw7086bc18/T2028S_01.png?sw=650&sh=650&sm=fit&sfrm=png

Item Name

item_name

nvarchar(100)

Pro v1 Golf Ball

Item Price

item_price

numeric(20,2)

54.99

Item Quantity

item_qty

nvarchar(50)

4

Item SKU

item_sku

nvarchar(50)

21890145

Item Tax

item_tax

numeric(20,2)

2.50

Item Total

item_total

numeric(20,2)

57.49

Item URL

item_url

nvarchar(500)

2023 Titleist Pro V1 | Buy Pro V1 Golf Balls | Titleist

Order Item ID

order_item_id

bigint

321549

Product Image URL

product_image_url

nvarchar(500)

https://www.titleist.com/dw/image/v2/AAZW_PRD/on/demandware.static/-/Sites-titleist-master/default/dwf8a4dc28/T2028S-H7_01.png?sw=650&sh=650&sm=fit&sfrm=png

Product URL

product_url

nvarchar(500)

Explore Golf Balls | Titleist Pro V1, Pro V1x, AVX & More

Unit Price

unit_price

numeric(20,2)

54.99

Sample JSON payload

MESSAGE BODY

JSON
{
  "TriggerKey": "7a406c38-62f0-46a8-b813-5ddf74029436",
  "SendAddress": "TomWoods@gmail.com",
  "Parameters": {
    "action_date": "04/07/2023 12:00:00 AM",
    "action_type": "welcome",
    "bill_addr1": "2604 Washington Rd",
    "bill_addr2": "Attn: Locker 29",
    "bill_city": "Augusta",
    "bill_first_name": "Thomas",
    "bill_last_name": "Woods",
    "bill_state": "GA",
    "bill_zip": "30904",
    "birthdate": "04/07/2022 12:00:00 AM",
    "brand": "Callaway",
    "campaign_code": "GreenJacket2023",
    "carrier": "UPS",
    "cart_link": "default",
    "cart_total": "150.99",
    "client_id": "3124678",
    "coupon_amt": "25.00",
    "coupon_code": "25Off",
    "customer_id": "4568795",
    "email": "TomWoods@gmail.com",
    "home_addr1": "123 Main St",
    "home_addr2": "Apt 29",
    "home_city": "Wellesley",
    "home_phone": "781-562-8052",
    "home_state": "MA",
    "home_zip": "01865",
    "individual_id": "1325648",
    "list_id": "Masters2023",
    "loyalty_id": "2156489",
    "member_id": "8974531",
    "merch_total": "125.89",
    "message": "Thank You",
    "mobile_phone": "781-587-9531",
    "name_first": "Robert",
    "name_last": "Fowler",
    "order_date": "12/04/2022 12:00:00 AM",
    "order_number": "132154",
    "order_status": "Shipped",
    "order_total": "250.00",
    "pay_amt1": "50.00",
    "pay_amt2": "50.00",
    "pay_amt3": "50.00",
    "pay_amt4": "50.00",
    "pay_amt5": "50.00",
    "pay_exp1": "",
    "pay_exp2": "12/15/2024 12:00:00 AM",
    "pay_exp3": "11/17/2025 12:00:00 AM",
    "pay_exp4": "12/19/2025 12:00:00 AM",
    "pay_exp5": "08/15/2023 12:00:00 AM",
    "pay_name1": "Cash",
    "pay_name2": "Credit Card",
    "pay_name3": "Credit Card",
    "pay_name4": "Gift Card",
    "pay_name5": "Credit Card",
    "pay_num1": "",
    "pay_num2": "8879458923461236",
    "pay_num3": "3214521896175315",
    "pay_num4": "3214965937851486",
    "pay_num5": "2315687961781356",
    "pay_type1": "",
    "pay_type2": "Visa",
    "pay_type3": "MasterCard",
    "pay_type4": "GiftCard",
    "pay_type5": "Amex",
    "phone_number": "781-541-6572",
    "recip_first_name": "Alan",
    "recip_last_name": "Palmer",
    "reward_create_date": "1/1/1900 12:00:00 AM",
    "reward_expiration_date": "1/1/1900 12:00:00 AM",
    "reward_expiration_value": "0.00",
    "reward_value": "0.00",
    "ship_addr1": "9000 Bay Hill Boulevard",
    "ship_addr2": "Attn: Pro Shop",
    "ship_city": "Bay Hill",
    "ship_first_name": "Viktor",
    "ship_last_name": "Hovland",
    "ship_state": "FL",
    "ship_to_store": "",
    "ship_zip": "01835",
    "shipping": "5.99",
    "store_addr1": "789 Washington St",
    "store_city": "Burlington",
    "store_id": "123146",
    "store_state": "MA",
    "tax": "5.01",
    "total_cost": "130.00",
    "transaction_id": "13215648"
  },
  "RepeaterParameters": [
    {
      "discount_amt": "54.99",
      "discount_desc": "Buy3Get1Free",
      "discount_seg": "",
      "discount_type": "Buy3Get1Free",
      "item_coupon_code": "Buy3Get1Free",
      "item_desc": "Golf Balls",
      "item_img_src_url": "https://www.titleist.com/dw/image/v2/AAZW_PRD/on/demandware.static/-/Sites-titleist-master/default/dw7086bc18/T2028S_01.png?sw=650&sh=650&sm=fit&sfrm=png",
      "item_name": "Pro V1 Golf Ball",
      "item_price": "54.99",
      "item_qty": "4",
      "item_sku": "21890145",
      "item_tax": "2.50",
      "item_total": "57.49",
      "item_url": "https://www.titleist.com/product/pro-v1/004PV1T.html",
      "order_item_id": "321549",
      "product_image_url": "https://www.titleist.com/dw/image/v2/AAZW_PRD/on/demandware.static/-/Sites-titleist-master/default/dwf8a4dc28/T2028S-H7_01.png?sw=650&sh=650&sm=fit&sfrm=png",
      "product_url": "https://www.titleist.com/explore-golf-balls/",
      "unit_price": "54.99"
    }
  ]
}
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.