This is a html view of the json schema please take the json schema as reference DOWNLOAD THE JSON SCHEMA

CartSyncRequestEvent

Type: object

Event representing a cart synchronization request initiated from the opco backend. This applies only to opcos that persist the cart and is used when modifications are made to the cart at the backend level and need to be reflected in Spark. The event must include the opcoCartId as the message key (partition key) to ensure correct processing order for multiple events related to the same cart

No Additional Properties
Example:

{
    "eventHeader": {
        "source": "SPARK",
        "version": "v1"
    },
    "intent": "DELETE_CART",
    "opcoCartId": "4999569661752721025"
}

EventHeader

Type: object

This object is used to describe some technical meta information related to the event

Type: enum (of string)

The application source of this event

Must be one of:

  • "SPARK"
  • "OPCO"

Type: enum (of string)

The version of the json format event

Must be one of:

  • "v1"

Type: enum (of string)

The synhronization event intent.

Must be one of:

  • "DELETE_CART"
  • "UPDATE_CART"

Example:

"DELETE_CART"

Type: string

the opco cart identifier.


Example:

"4999569661752721025"