Mircate
  1. How to
Mircate
  • Introduction
  • Authentication
  • Errors
  • Change Logs
  • PIM
    • Get Products
      POST
    • Get Product Settings
      GET
    • Get Catalog Settings
      GET
    • Upsert Product
      POST
    • Upsert Category
      POST
    • Bulk Product Upsert
      POST
    • Check Batch Status
      POST
    • Delete Product
      POST
    • Attach Product Attribute Image
      POST
    • Attach Category Image
      POST
    • Get Image
      GET
    • Upsert Attributes
      POST
    • Delete Attribute
      POST
    • Upsert Attribute Options
      POST
    • Upsert Attribute Option
      POST
    • Delete Attribute Option
      POST
  • Promotion
    • Calculate
      POST
    • Start Transaction
      POST
    • Commit Transaction
      POST
    • Revert Transaction
      POST
    • Cancel Transaction
      POST
    • Get Active Promotions
      GET
  • Loyalty
    • Receive Event
    • Calculate
    • Start Transaction
    • Commit Transaction
    • Cancel Transaction
    • List Measurements
  • Wallet
    • Get Wallet
    • Create Wallet
    • Create Account
    • Get Account
    • Get Accounts
    • List Accounts
    • List Transactions
    • Add Account
    • Remove Account
    • Fix
    • Load
    • Spend
    • Refund
    • Cancel
  • Talking Product
    • Create Product
    • Update Product
    • Delete Product
    • Get Product
    • List Product
  • Merchant
    • Sales Channel
      • Reserve Stock
      • Cancel Stock
      • Commit Stock
      • Refund Stock
      • Get Current Stock
    • Product Supplier
      • Receive Stock
      • Receive Price
      • Get Stock/Price History
      • Check Batch Status
      • Remove My Products
      • Clean My Products
      • Export Stock/Price
      • List Exports
      • Get Exported Files
    • Global Products
      • Receive Products
      • Get Global Products
      • Remove Global Products
  • Common
    • Dataset
      • Create
      • Update
      • Delete
      • Value Upsert
      • Value Delete
      • List Sources
      • List Values
  • How to
    • Creating a Promotion Template
    • Promotion Transaction Flow
    • Understanding PIM Product Statuses
  1. How to

Promotion Transaction Flow

The steps for promotional cart calculation are outlined below:
Promotional Cart Calculation Process:
During the process of adding and removing items from the cart, applicable promotions in the cart are checked using the "calculate" method. As a result of this process, the discount amounts arising from promotions are calculated, and the final total amount of the cart is determined.
Before Payment:
When cart operations are completed and it transitions to the payment stage, the finalized cart information along with the details of promotions in this cart is used to call the "startTransaction" method.
Commitment Process Upon Successful Payment:
If the customer's payment is successfully completed, this transaction is processed through the "commit" step. This confirms the use of the promotions specified in the "startTransaction" step and signifies the completion of the order due to the customer's successful payment.
Autocancel on Timeout:
A transaction initiated with the "startTransaction" step is automatically canceled by the system if it is not "committed" within a specified period (e.g., within 30-40 minutes). This indicates that the customer's payment time has expired, and the transaction has been canceled, thus indicating that the specified promotions could not be utilized. In cases of limited usage promotions, if the customer did not benefit from this promotion, the "autocancel" process allows the customer to avail of the same promotion in their next transaction.
This process flow ensures the accurate calculation of the shopping cart, successful processing of payment transactions, and proper application of promotions. Additionally, it informs customers that their transaction will be automatically canceled if they exceed a certain time limit, ensuring transparency and fairness in the use of promotions.
Modified at 2024-09-18 06:01:30
Previous
Creating a Promotion Template
Next
Understanding PIM Product Statuses
Built with