GET rest/coupons/generate-test-recipient?couponId={couponId}&recipient={recipient}

Gets coupon or coupon book recipient data (code and url).

Request Information

URI Parameters

NameDescriptionTypeAdditional information
couponId

Coupon id.

globally unique identifier

Required

recipient

Recipient (phonenumber / email address / app id).

string

Required

Body Parameters

None.

Response Information

Resource Description

CouponRecipientData
NameDescriptionTypeAdditional information
recipient

Receiver of data

string

None.

code

Coupon code, internalId Enigma encoded

string

None.

url

Coupon site url, consisting of baseurl + / + [1-20] (shard) + B/C (book or coupon) + coupon code. Example: http://coupon.is/4BGH78XR

string

None.

status

Recipient status. 200 = OK, 409 = SKIP

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "recipient": "sample string 1",
  "code": "sample string 2",
  "url": "sample string 3",
  "status": 4
}

application/xml, text/xml

Sample:
<CouponRecipientData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.linkmobility.com/common/coupons">
  <code>sample string 2</code>
  <recipient>sample string 1</recipient>
  <status>4</status>
  <url>sample string 3</url>
</CouponRecipientData>