Skip to main content
POST
Add products to selection

Authorizations

Authorization
string
header
required

API key or access token

Path Parameters

discoveryId
string
required

Discovery ID

Minimum string length: 1
Example:

"abc123-def456-ghi789"

Body

application/json

Request to add products to a discovery session

products
object[]
required

Products to add to the selection

Required array length: 1 - 100 elements
replace
boolean

When true, replaces all existing products instead of merging

campaignId
string

Optional campaign association check. When provided, the server verifies this discovery session is attached to the campaign before reporting success.

Example:

"campaign_ea5e33dd-d65b-44c7-a3e8-8e1db1d137b4"

Response

Add products to selection

Response containing the selected-products cart. It does not return discovery results.

discoveryId
string
required

Discovery ID

products
object[]
required

Selected products in the discovery session

totalProducts
integer
required

Total number of products in the selected-products cart. A value of 0 means no product has been selected yet; it is not the number of products discovery returned.

Required range: -9007199254740991 <= x <= 9007199254740991
selectionSummary
string

Plain-language explanation that this response is the selected-products cart, not the discovery result set.

budgetContext
object

Budget allocation context

campaignBound
boolean

Whether this discovery session is attached to an active campaign. When false, the products are saved to the session but no active campaign reflects them yet.

campaignWarning
string

Guidance shown only when campaignBound is false: either the session is not attached to any campaign, or the campaign it was attached to has been archived. Pass campaignId for an active campaign (or restore the archived one) so the campaign reflects the products.

warnings
string[]

Non-blocking notices about this submission, e.g. two submitted selections shared the same identity (no selectionId, or a repeated selectionId) and were merged into a single package.