After the shopper rejects or accepts the first offer at a place on script version 1.5 or later, and feedback is enabled for it, this returns an item with type: "survey" instead of the next offer. Its children are standard segments that use field, show_when and events, and its links.next_offer requests the offer the shopper would have seen next, at the same index. The survey’s submit buttons post an offer_feedback event, with data.source set to decline or accept, and the item’s events.view posts a survey_viewed event.

Supported Formats

application/json

Path Parameters

integration_id
string
required

The ID of the integration

  • Must be a String
flow_id
string
required

The ID of the flow

  • Must be a String

Query Parameters

integration_type
string
optional nil allowed blank allowed

The client integration type

  • Must be a String
integration_version
string
optional nil allowed blank allowed

The client integration version

  • Must be a String

Query Parameters

placement
string
required

The placement context where the offer will be displayed (e.g., order_confirmation, order_status)

  • Must be a String
first_name
string
optional nil allowed blank allowed

The first name of the user for personalization

  • Must be a String

Returns

Response - Offer created

Code 201 - application/json
data
array
required

Details

  • Must be an Array of nested elements
links
array
required
  • Must be an Array of nested elements

Response - No offers found

Code 202 - application/json
data
array
required
  • Must be an array of any type

Response - Unable to find the integration

Code 404 - application/json
errors
array
required
  • Must be an Array of nested elements

Response - The site is blocked

Code 403 - application/json
errors
array
required
  • Must be an Array of nested elements

Response - Unable to find the placement

Code 422 - application/json
errors
array
required
  • Must be an Array of nested elements