This page provides the list of events and associated payload for external events (via EventBridge) for the Tax 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.POSTTaxCalculationtaxservice/taxcalculation/createresponse_tax.taxId

Payload

TaxCalculation

Event Type: taxservice/taxcalculation/create


{
  "version": "0",
  "id": "49fbb839-5701-2426-92d5-58f208da79b6",
  "detail-type": "taxservice/taxcalculation/create",
  "source": "taxservice",
  "account": "277827593990",
  "time": "2024-05-22T06:08:15Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "id": "83",
    "timestamp": 1716358095592,
    "payload": {
      "tax": {
        "taxId": "83",
        "taxType": "PERCENTAGE",
        "currency": "Sample 3",
        "deliverToAddress": {
          "firstName": "Liberty",
          "lastName": "Delgado",
          "middleName": "Hedwig Hansen",
          "companyName": "mh0OiLN8",
          "addressLine1": "ini2tr",
          "addressLine2": "57FB8Z8P",
          "addressLine3": "XefZxtER",
          "city": "Naperville",
          "state": "Kentucky",
          "county": "Colombia",
          "country": "Tunisia",
          "zip": "02458",
          "email": "externalevents1716358095553@mailinator.com",
          "phone": "913-348-0779",
          "mobile": "Sample 3",
          "canReceiveSMS": true
        },
        "deliverFromAddress": {
          "firstName": "Liberty",
          "lastName": "Delgado",
          "middleName": "Hedwig Hansen",
          "companyName": "mh0OiLN8",
          "addressLine1": "ini2tr",
          "addressLine2": "57FB8Z8P",
          "addressLine3": "XefZxtER",
          "city": "Naperville",
          "state": "Kentucky",
          "county": "Colombia",
          "country": "Tunisia",
          "zip": "02458",
          "email": "externalevents1716358095553@mailinator.com",
          "phone": "913-348-0779",
          "mobile": "Sample 3",
          "canReceiveSMS": true
        },
        "billingAddress": {
          "firstName": "Liberty",
          "lastName": "Delgado",
          "middleName": "Hedwig Hansen",
          "companyName": "mh0OiLN8",
          "addressLine1": "ini2tr",
          "addressLine2": "57FB8Z8P",
          "addressLine3": "XefZxtER",
          "city": "Naperville",
          "state": "Kentucky",
          "county": "Colombia",
          "country": "Tunisia",
          "zip": "02458",
          "email": "externalevents1716358095553@mailinator.com",
          "phone": "913-348-0779",
          "mobile": "Sample 3",
          "canReceiveSMS": true
        },
        "properties": {
          "additionalProp1": "kz237P",
          "additionalProp2": "7xEcd",
          "additionalProp3": "CTm6veM9E"
        },
        "itemDetails": [
          {
            "id": "16",
            "quantity": 7,
            "shippingPrice": 25,
            "shippingDiscount": 12,
            "shippingTaxationId": "shiptax",
            "skuDetails": [
              {
                "id": "F8Pptp",
                "productId": "69",
                "skuType": "BUNDLE",
                "name": "qrnQv8ONaY",
                "price": 347,
                "quantity": 1,
                "discount": 21
              }
            ],
            "deliverToAddress": {
              "firstName": "Liberty",
              "lastName": "Delgado",
              "middleName": "Hedwig Hansen",
              "companyName": "mh0OiLN8",
              "addressLine1": "ini2tr",
              "addressLine2": "57FB8Z8P",
              "addressLine3": "XefZxtER",
              "city": "Naperville",
              "state": "Kentucky",
              "county": "Colombia",
              "country": "Tunisia",
              "zip": "02458",
              "email": "externalevents1716358095553@mailinator.com",
              "phone": "913-348-0779",
              "mobile": "Sample 3",
              "canReceiveSMS": true
            },
            "itemVersion": 1012,
            "itemProperties": {
              "additionalProp1": "kz237P",
              "additionalProp2": "7xEcd",
              "additionalProp3": "CTm6veM9E"
            }
          }
        ],
        "taxDetails": {
          "totalItemTax": 0,
          "totalShippingTax": 0,
          "shippingTax": 0,
          "providedBy": "skava",
          "response": "VALIDATED",
          "calculationTime": 1716358095579,
          "itemBreakUp": [
            {
              "itemId": "16",
              "skuBreakUp": [
                {
                  "skuId": "F8Pptp",
                  "itemTax": 0
                }
              ],
              "shippingTax": 0
            }
          ]
        }
      }
    },
    "collectionId": "1042",
    "eventType": "taxservice/taxcalculation/create",
    "userId": "1",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_GUEST"
    ],
    "channel": "CSR"
  }
}

 

 

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