This page provides the list of events and associated payload for external events (via EventBridge) for the Shipping microservice.

External Events via EventBridge

The following events contain the entity changed in the event message payload.

List of Events

S.No.API callCall detailEvent TypeIdentifier
1.POSTShippingCalculationshippingservice/shipping/calculationresponse_shipping.shippingId

Payload

ShippingCalculation

Event Type: shippingservice/shipping/calculation


{
  "version": "0",
  "id": "21d08a55-713a-bebd-d07f-a4c148b8bcb1",
  "detail-type": "shippingservice/shipping/calculation",
  "source": "shippingservice",
  "account": "277827593990",
  "time": "2024-05-22T06:02:13Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "timestamp": 1716357733845,
    "payload": {
      "shipping": {
        "deliveryType": "PHYSICAL",
        "cartValue": 100,
        "deliveryAddress": {
          "firstName": "stephie",
          "lastName": "james",
          "middleName": "s",
          "companyName": "string",
          "addressLine1": "2/355",
          "addressLine2": "St.Patrick's Avenue",
          "addressLine3": "Uptown",
          "city": "New Orleans",
          "state": "California",
          "county": "string",
          "country": "US",
          "zip": "1000",
          "email": "externalevents1716357733816@mailinator.com",
          "phone": "234564",
          "mobile": "9876598701",
          "storeId": "4"
        },
        "properties": {
          "additionalProp1": "string",
          "additionalProp2": "string",
          "additionalProp3": "string"
        },
        "itemDetails": [
          {
            "itemId": "string",
            "itemDeliveredAlone": true,
            "itemDeliveryType": "PHYSICAL",
            "itemQuantity": 1,
            "sku": [
              {
                "skuId": "string",
                "skuName": "string",
                "skuType": "MAIN",
                "skuPrice": 0,
                "skuDiscount": 0,
                "skuDimension": {
                  "length": 0,
                  "width": 0,
                  "height": 0,
                  "unit": "string"
                },
                "skuWeight": {
                  "value": 0,
                  "unit": "string"
                }
              }
            ],
            "itemDeliveryAddress": {
              "firstName": "stephie",
              "lastName": "james",
              "middleName": "s",
              "companyName": "string",
              "addressLine1": "2/355",
              "addressLine2": "St.Patrick's Avenue",
              "addressLine3": "Uptown",
              "city": "New Orleans",
              "state": "California",
              "county": "string",
              "country": "US",
              "zip": "1000",
              "email": "externalevents1716357733816@mailinator.com",
              "phone": "234564",
              "mobile": "9876598701",
              "storeId": "4"
            },
            "itemProperties": {
              "additionalProp1": "string",
              "additionalProp2": "string",
              "additionalProp3": "string"
            }
          }
        ],
        "shippingDetails": {
          "providedBy": "cybersource",
          "responseCode": "0000",
          "responseMessage": "Success",
          "calculationTime": 1716357733834,
          "itemShippingDetails": [
            {
              "itemId": "string"
            }
          ]
        }
      }
    },
    "collectionId": "1123",
    "eventType": "shippingservice/shipping/calculation",
    "userId": "1",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

 

Revision History
2024-05-21 | SD – Page created and content uploaded.