{
"data": {
"id": "lnk_01JZ4TDK6A0NV2HG6R3Q7E28Y9",
"projectId": "proj_123",
"name": "Summer grilling basket",
"publicName": "Shop the grilling list",
"retailer": "walmart",
"intent": "add_to_cart",
"status": "active",
"shortLink": "https://in2carts.com/abc123",
"shortId": "abc123",
"qrCode": {
"id": "qr_lnk_01JZ4TDK6A0NV2HG6R3Q7E28Y9_default",
"linkId": "lnk_01JZ4TDK6A0NV2HG6R3Q7E28Y9",
"identifier": "default",
"name": "Default QR code",
"imageUrl": "https://firebasestorage.googleapis.com/v0/b/incarts.appspot.com/o/qrcodes%2Fexample.png?alt=media",
"encodedUrl": "https://in2carts.com/qr/qr_lnk_01JZ4TDK6A0NV2HG6R3Q7E28Y9_default",
"isDefault": true,
"createdAt": "2026-05-20T07:19:00Z"
},
"createdAt": "2026-05-20T07:19:00Z"
}
}{
"error": {
"code": "validation_failed",
"message": "products is required for walmart add_to_cart links.",
"correlationId": "req_01JZ4TCZ7AG9P9W38V4VNQ7W4B",
"details": [
{
"field": "products",
"message": "At least one product is required."
}
]
}
}{
"error": {
"code": "validation_failed",
"message": "products is required for walmart add_to_cart links.",
"correlationId": "req_01JZ4TCZ7AG9P9W38V4VNQ7W4B",
"details": [
{
"field": "products",
"message": "At least one product is required."
}
]
}
}{
"error": {
"code": "validation_failed",
"message": "products is required for walmart add_to_cart links.",
"correlationId": "req_01JZ4TCZ7AG9P9W38V4VNQ7W4B",
"details": [
{
"field": "products",
"message": "At least one product is required."
}
]
}
}{
"error": {
"code": "validation_failed",
"message": "products is required for walmart add_to_cart links.",
"correlationId": "req_01JZ4TCZ7AG9P9W38V4VNQ7W4B",
"details": [
{
"field": "products",
"message": "At least one product is required."
}
]
}
}{
"error": {
"code": "unsupported_retailer_intent",
"message": "Kroger add-to-cart links are not supported.",
"correlationId": "req_01JZ4TCZ7AG9P9W38V4VNQ7W4B"
}
}{
"error": {
"code": "validation_failed",
"message": "products is required for walmart add_to_cart links.",
"correlationId": "req_01JZ4TCZ7AG9P9W38V4VNQ7W4B",
"details": [
{
"field": "products",
"message": "At least one product is required."
}
]
}
}{
"error": {
"code": "validation_failed",
"message": "products is required for walmart add_to_cart links.",
"correlationId": "req_01JZ4TCZ7AG9P9W38V4VNQ7W4B",
"details": [
{
"field": "products",
"message": "At least one product is required."
}
]
}
}Create a shoppable link
Create a shoppable Incarts link for a supported retailer intent or custom URL
{
"data": {
"id": "lnk_01JZ4TDK6A0NV2HG6R3Q7E28Y9",
"projectId": "proj_123",
"name": "Summer grilling basket",
"publicName": "Shop the grilling list",
"retailer": "walmart",
"intent": "add_to_cart",
"status": "active",
"shortLink": "https://in2carts.com/abc123",
"shortId": "abc123",
"qrCode": {
"id": "qr_lnk_01JZ4TDK6A0NV2HG6R3Q7E28Y9_default",
"linkId": "lnk_01JZ4TDK6A0NV2HG6R3Q7E28Y9",
"identifier": "default",
"name": "Default QR code",
"imageUrl": "https://firebasestorage.googleapis.com/v0/b/incarts.appspot.com/o/qrcodes%2Fexample.png?alt=media",
"encodedUrl": "https://in2carts.com/qr/qr_lnk_01JZ4TDK6A0NV2HG6R3Q7E28Y9_default",
"isDefault": true,
"createdAt": "2026-05-20T07:19:00Z"
},
"createdAt": "2026-05-20T07:19:00Z"
}
}{
"error": {
"code": "validation_failed",
"message": "products is required for walmart add_to_cart links.",
"correlationId": "req_01JZ4TCZ7AG9P9W38V4VNQ7W4B",
"details": [
{
"field": "products",
"message": "At least one product is required."
}
]
}
}{
"error": {
"code": "validation_failed",
"message": "products is required for walmart add_to_cart links.",
"correlationId": "req_01JZ4TCZ7AG9P9W38V4VNQ7W4B",
"details": [
{
"field": "products",
"message": "At least one product is required."
}
]
}
}{
"error": {
"code": "validation_failed",
"message": "products is required for walmart add_to_cart links.",
"correlationId": "req_01JZ4TCZ7AG9P9W38V4VNQ7W4B",
"details": [
{
"field": "products",
"message": "At least one product is required."
}
]
}
}{
"error": {
"code": "validation_failed",
"message": "products is required for walmart add_to_cart links.",
"correlationId": "req_01JZ4TCZ7AG9P9W38V4VNQ7W4B",
"details": [
{
"field": "products",
"message": "At least one product is required."
}
]
}
}{
"error": {
"code": "unsupported_retailer_intent",
"message": "Kroger add-to-cart links are not supported.",
"correlationId": "req_01JZ4TCZ7AG9P9W38V4VNQ7W4B"
}
}{
"error": {
"code": "validation_failed",
"message": "products is required for walmart add_to_cart links.",
"correlationId": "req_01JZ4TCZ7AG9P9W38V4VNQ7W4B",
"details": [
{
"field": "products",
"message": "At least one product is required."
}
]
}
}{
"error": {
"code": "validation_failed",
"message": "products is required for walmart add_to_cart links.",
"correlationId": "req_01JZ4TCZ7AG9P9W38V4VNQ7W4B",
"details": [
{
"field": "products",
"message": "At least one product is required."
}
]
}
}Authorizations
Headers
Stable client-generated key used to safely retry write requests.
8 - 128Client-supplied request correlation ID. The API echoes this value when provided.
8 - 128Body
- Walmart add-to-cart link
- Target product detail link
- Instacart product detail link
- Instacart shopping list link
- Instacart recipe link
- Direct retailer link
- Direct retailer link
- Direct retailer link
- Direct retailer link
- Direct retailer link
- Custom URL link
Request body for creating a shoppable link. Choose the variant that matches the retailer and link type you want to create.
Project that owns the link.
1 - 128"proj_123"
Internal name for the link, shown in your dashboards.
1 - 160"Summer grilling basket"
Link provider used for generation.
walmart Creates a Walmart add-to-cart link.
add_to_cart Retailer product selections for product and cart style links.
1 - 100 elementsShow child attributes
Show child attributes
Optional display name for public surfaces.
1 - 160"Shop the grilling list"
Destination URL for custom_url links.
"https://www.example.com/landing-page"
Fallback destination used when a better retailer URL can't be built.
"https://www.walmart.com/"
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Caller-supplied metadata stored with the resource. Do not put secrets here.
{ "campaignId": "cmp_123" }
Show child attributes
Show child attributes
Response
Link created.
Show child attributes
Show child attributes
