Skip to main content
Unlisted page
This page is unlisted. Search engines will not index it, and only users having a direct link can access it.

Report sponsored product price candidates

POST /v2/ian/sp_price_candidate

Reports how a partner ranked, filtered, or displayed the candidates returned by Get sponsored product candidates. Instacart enables this endpoint for specific enhanced integration partners. For the full workflow, see Enhanced integration.

Field tables on this page are generated from the OpenAPI specification.

Security​

NameInDescription
AuthorizationheaderThe Authorization header with the bearer token acquired during authentication.

Parameters​

NameInTypeRequiredDescription
X-Retailer-IdheaderstringOptional

The retailer slug identifying the banner to serve ads for. Required only for multi-banner accounts. Instacart assigns slugs during onboarding. An unknown or missing slug returns 400 with the message Bad X-Retailer-Id. A slug that does not match your account returns 401 with the message the given location code doesn't match the oauth token used.

X-Retailer-Id is the retailer slug identifying the banner to serve ads for. Required only for multi-banner accounts. Instacart assigns slugs during onboarding. An unknown or missing slug returns 400 with the message Bad X-Retailer-Id. A slug that does not match your account returns 401 with the message the given location code doesn't match the oauth token used. For more information, see Identifiers.

Request​

FieldTypeRequiredDescription
page_contextSponsoredProductPriceCandidatesPageContextRequired

Specific page context for the requested ads.

session_contextSessionContextRequired

Context related to the user session.

SponsoredProductPriceCandidatesPageContext Object​

FieldTypeRequiredDescription
page_querySponsoredProductPriceCandidatesQueryRequired

The query used to specify price related attributes for the candidate.

common_queryCommonQueryRequired

The query used to specify common attributes.

SponsoredProductPriceCandidatesQuery Object​

FieldTypeRequiredDescription
price_queryPriceQueryRequired

The query used for pricing.

PriceQuery Object​

FieldTypeRequiredDescription
ic_request_idstringRequired

Unique request identifier generated by Instacart.

ad_slots_availableintegerOptional

Number of ad slots the partner had available for display

tagsArray(string)Optional

Array of tags associated with the price query.

candidatesArray(Candidate)Required

Array of candidate objects representing price candidates.

Candidate Object​

FieldTypeRequiredDescription
object_tracking_idstringRequired

Unique identifier for the candidate object.

positionintegerRequired

Position of the candidate in display order. -1 for filtered candidate.

relative_scorenumberOptional

The relative score or ranking of the candidate.

filter_reasonstringOptional

Reason for filtering this candidate (e.g., 'relevance').

selectedbooleanOptional

Flag indicating if the candidate was selected for display.

None.

SessionContext Object​

FieldTypeRequiredDescription
user_idstringOptional

Unique user ID of the user performing the query. Maximum 50 characters.

user_ipstringOptional

The IP address of the end user. Maximum 50 characters.

user_agentstringOptional

The user agent of the device making the request. Maximum 50 characters.

test_onlybooleanOptional

When true, the campaigns created for Carrot Ads testing are guaranteed to participate in the ads auction along with other campaigns. Default is false.

Send one price_query that includes the ic_request_id from the candidate response and a candidates array. For a candidate you filtered out, set position to -1 and include filter_reason when you have one. Include a positive relative_score for a candidate you serve. You can omit relative_score for a candidate you filter out.

page_context.common_query.partner_request_id is required. Send the same UUID you sent on Get sponsored product candidates. The generated field tables omit it. selected on each candidate indicates whether that candidate is displayed. It is optional for sponsored products.

Request examples​

curl --request POST \
--url https://connect-ian.instacart.com/v2/ian/sp_price_candidate \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Retailer-Id: string' \
--data '{
"page_context": {
"page_query": {
"price_query": {
"ic_request_id": "string",
"ad_slots_available": 1,
"tags": [
"string"
],
"candidates": [
{
"object_tracking_id": "string",
"position": 1,
"relative_score": 1,
"filter_reason": "string",
"selected": true
}
]
}
},
"common_query": {}
},
"session_context": {
"user_id": "string",
"user_ip": "string",
"user_agent": "string",
"test_only": true
}
}'

Response​

FieldTypeRequiredDescription
messagestringRequired

Sponsored product price candidates response.

A successful request returns message set to Successfully processed.

4xx errors​

When the request is rejected as an invalid argument, the endpoint returns 400 with error code 1001. error.message is the message returned for that error. Correct the request and retry.

Response examples​

Success

{
"message": "Successfully processed"
}

4XX Errors

Error responses return either a single error or multiple errors.

HTTP CodeCauseError MessageError CodeError Meta
400empty page context"can't be blank"1001{"key":"page_context"}
400empty session context"Couldn't find user_id in the request"4001Not applicable