Skip to main content
POST
This endpoint accepts multiple request shapes for Amazon, Kroger, Walmart, Target, Instacart, and custom URLs. Use the Body tabs to switch schemas and the example dropdown above the code panel to load a pre-filled request.

Authorizations

X-Incarts-API-Key
string
header
required

Headers

Idempotency-Key
string

Stable client-generated key used to safely retry write requests.

Required string length: 8 - 128
X-Correlation-ID
string

Client-supplied request correlation ID. The API echoes this value when provided.

Required string length: 8 - 128

Body

application/json

Request body for creating a shoppable link. Choose the variant that matches the retailer and link type you want to create.

projectId
string
required

Project that owns the link.

Required string length: 1 - 128
Example:

"proj_123"

name
string
required

Internal name for the link, shown in your dashboards.

Required string length: 1 - 160
Example:

"Summer grilling basket"

retailer
enum<string>
required

Link provider used for generation.

Available options:
walmart
intent
enum<string>
required

Creates a Walmart add-to-cart link.

Available options:
add_to_cart
products
object[]
required

Retailer product selections for product and cart style links.

Required array length: 1 - 100 elements
publicName
string

Optional display name for public surfaces.

Required string length: 1 - 160
Example:

"Shop the grilling list"

customUrl
string<uri>

Destination URL for custom_url links.

Example:

"https://www.example.com/landing-page"

fallbackUrl
string<uri>

Fallback destination used when a better retailer URL can't be built.

Example:

"https://www.walmart.com/"

location
object
options
object
tracking
object
metadata
object

Caller-supplied metadata stored with the resource. Do not put secrets here.

Example:
defaultQrCode
object

Response

Link created.

data
object
required