Skip to main content
Gregory Whitaker 님이 #B2C Commerce에 질문했습니다

We have a Server Side campaign in Personalization Studio that uses an "In Cart" anchor type.  We cannot figure out how to send over a payload that will call the campaign and get it to use the products we send with it.  We don't know how those products are supposed to be structured in the payload and the type of interaction/item to send them as.  We've tried a bunch of AI items and none of them have worked, the same with everything we can find in the documentation ourselves and so far support can't provide it.  Anyone know how to do it?   

@* B2C Commerce * 

답변 4개
  1. 2025년 11월 2일 오후 6:09

    Hi, 

    You can trigger an

    “In Cart”

    server-side campaign using the standard Event API structure — no special sandbox needed. 

    Send a payload like this to your dataset’s Event API endpoint:

    {

    "source": { "channel": "Server", "pageType": "Cart" },

    "user": { "id": "USER-123" },

    "itemAction": "ViewCart",

    "cart": {

    "complete": [

    { "itemId": "SKU-001", "quantity": 2, "price": 19.99 },

    { "itemId": "SKU-002", "quantity": 1, "price": 12.50 }

    ]

    }

    }

    Key points:

    • Use "itemAction": "ViewCart" to activate the In Cart anchor.
    • cart.complete should list products with itemId, quantity, and price.
    • Make sure your itemId matches catalog IDs in Personalization Studio.
    • Include "source": { "channel": "Server" } so server-side campaigns return messages in the response.

    Reference: Event API | Marketing Cloud Personalization | Salesforce Developers

0/9000