younifyd
Menu

Reopen Customer Session

Reopen customer session

PUT/v2/customer_sessions/{customerSessionId}/reopen

Use it in a workflow

  1. Add a step and choose the Talon.One connector.
  2. Pick the Reopen Customer Session action (under integration).
  3. Fill in the fields below, then reference the result from later steps as {{reopenCustomerSession.response.data}}.

Request

Path parameters

customerSessionIdstringrequired

The `integration ID` of the customer session. You set this ID when you create a customer session. You can see existing customer session integration IDs in the Campaign Manager's **Sessions** menu, or via the [List Application session](https://docs.talon.one/management-api#tag/Customer-data/operation/getApplicationSessions) endpoint.

Response

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

effectsarray<object>

The effects generated by the rules in your running campaigns. See [API effects](https://docs.talon.one/docs/dev/integration-api/api-effects).

experimentIdinteger (int64)

The ID of the experiment that campaign belongs to.

campaignIdinteger (int64)required

The ID of the campaign that triggered this effect.

rulesetIdinteger (int64)required

The ID of the ruleset that was active in the campaign when this effect was triggered.

ruleIndexinteger (int64)required

The position of the rule that triggered this effect within the ruleset.

ruleNamestringrequired

The name of the rule that triggered this effect.

effectTypestringrequired

The type of effect that was triggered. See [API effects](https://docs.talon.one/docs/dev/integration-api/api-effects).

triggeredByCouponinteger (int64)

The ID of the coupon that was being evaluated when this effect was triggered.

triggeredForCatalogIteminteger (int64)

The ID of the catalog item that was being evaluated when this effect was triggered.

conditionIndexinteger (int64)

The index of the condition that was triggered.

evaluationGroupIDinteger (int64)

The ID of the evaluation group. For more information, see [Managing campaign evaluation](https://docs.talon.one/docs/product/applications/managing-campaign-evaluation).

evaluationGroupModestring

The evaluation mode of the evaluation group. For more information, see [Managing campaign evaluation](https://docs.talon.one/docs/product/applications/managing-campaign-evaluation).

campaignRevisionIdinteger (int64)

The revision ID of the campaign that was used when triggering the effect.

campaignRevisionVersionIdinteger (int64)

The revision version ID of the campaign that was used when triggering the effect.

selectedPriceTypestring

The selected price type for the SKU targeted by this effect.

selectedPricenumber

The value of the selected price type to apply to the SKU targeted by this effect, before any discounts are applied.

adjustmentReferenceIdstring (uuid)

The reference identifier of the selected price adjustment for this SKU. This is only returned if the `selectedPrice` resulted from a price adjustment.

propsobjectrequired
json
{
  "effects": [
    {
      "rulesetId": 73,
      "ruleIndex": 2,
      "campaignRevisionVersionId": 5,
      "campaignId": 244,
      "conditionIndex": 786,
      "evaluationGroupMode": "stackable",
      "effectType": "rejectCoupon",
      "adjustmentReferenceId": "68851723-e6fa-488f-ace9-112581e6c19b",
      "props": "{}",
      "selectedPrice": 100,
      "evaluationGroupID": 3,
      "triggeredForCatalogItem": 786,
      "selectedPriceType": "member",
      "campaignRevisionId": 1,
      "ruleName": "Give 20% discount",
      "experimentId": 12,
      "triggeredByCoupon": 4928
    }
  ]
}

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

Reopen Customer Session — Talon.One — Documentation