OrderRequested
v0.0.1

Holds information about the customers order.
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 is triggered when the user confirms their order and wants to process their payment.

We have a frontend application that allows users to buy things from our store. The frontend application interacts with the Backet Service to trigger the OrderRequested event.

Consumer/Producer Diagram

OrderRequested Schema (json)
{
  "$id": "https://example.com/OrderRequested.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "OrderRequested",
  "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", "service"]
    },
    "data": {
      "type": "object",
      "properties": {
        "userId": {
          "type": "string",
          "description": "The ID of the user"
        },
        "orderId": {
          "type": "string",
          "description": "The ID the users order"
        }
      }
    }
  }
}
Edit this pageLast updated on 2024/1/16