younifyd
Menu

Generate Coupon Rejections

Summarize coupon redemption failures in session

GET/v1/coupon_rejections

Use it in a workflow

  1. Add a step and choose the Talon.One connector.
  2. Pick the Generate Coupon Rejections action (under management).
  3. Fill in the fields below, then reference the result from later steps as {{generateCouponRejections.response.data}}.

Request

Query parameters

sessionIntegrationIdstringrequired

The integration ID of the session to summarize.

applicationIdnumber

Filter results by Application ID.

languagestring

The [ISO-639](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) code of the language in which the summary will be generated.

couponCodestring

The coupon code for which to get the rejection reason.

Response

Returns 200 with an object. Read it in later steps with {{generateCouponRejections.response.data.<field>}}.

dataarray<object>
idinteger (int64)required

ID of the evaluation record.

eventIDinteger (int64)required

ID of the event.

sessionIDstring

ID of the customer session set by your integration layer.

profileIDstring

ID of the customer profile set by your integration layer.

statusstringrequired

Status defines if the coupon code was applied or rejected.

couponCodestringrequired

Coupon code passed for evaluation.

languagestringrequired

Language of the summary.

summarystringrequired

A summary of the reasons for coupon redemption failure.

createdAtstring (date-time)required

Timestamp when the request was made.

updatedAtstring (date-time)required

Timestamp when the request was last updated.

json
{
  "data": [
    {
      "summary": "Session total was less than the required total.",
      "eventID": 1011,
      "createdAt": {},
      "profileID": "a48f10dddb5c9493aad194e49bb9c1dac",
      "language": "en",
      "id": 1,
      "sessionID": "1",
      "couponCode": "ABC123",
      "status": "rejected",
      "updatedAt": {}
    }
  ]
}

Need more? See the Talon.One guide for connection setup and behaviour shared by every action.

Generate Coupon Rejections — Talon.One — Documentation