RemovedItemFromCart
v0.0.1

Holds information about what the user removed from their cart.
When firing this event make sure you set the `correlation-id` in the headers. Our schemas have standard metadata make sure you read and follow it.

Details

This event can be triggered multiple times per customer. Everytime the customer adds an item to their shopping cart this event will be triggered.

We have a frontend application that allows users to buy things from our store. This front end interacts directly with the Basket Service to add items to the cart. The Basket Service will raise the events.

Consumer / Producer Diagram

RemovedItemFromCart Schema (json)
{
  "$id": "https://example.com/RemovedItemFromCart.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "RemovedItemFromCart",
  "type": "object",
  "properties": {
    "metadata": {
      "type": "object",
      "properties": {
        "correlationId": {
          "type": "string",
          "description": "The ID of the user"
        },
        "domain": {
          "type": "string",
          "description": "The domain of the event"
        },
        "service": {
          "type": "string",
          "description": "The name of the service that triggered the event"
        }
      },
      "required": ["correlationId", "domain"]
    },
    "data": {
      "type": "object",
      "properties": {
        "userId": {
          "type": "string",
          "description": "The ID of the user"
        },
        "itemId": {
          "type": "string",
          "description": "The ID of the shopping item"
        },
        "quantity": {
          "type": "number",
          "description": "How many items the user wants to remove to their shopping cart",
          "minimum": 1,
          "maximum": 100,
          "default": 1
        }
      }
    }
  }
}
Edit this pageLast updated on 2023/9/18