Reward Issuance with Quantity Details

The example below illustrates how point values are calculated for rewards with the payment configuration CONV_RATIO.

Example Scenarios

Scenario 1: Single/Bulk Issue Reward with No Quantity and No Payment Config

Input JSON:

{
  "mobile": "911886022308",
  "brand": "marvel_automation",
  "transactionNumber": "Transaction-1716621508000"
}

Details:

  • Quantity: null (defaults to 1)
  • Payment Config: null (no specific payment config used)

Calculations:

  • Redemption Value: 1 (default quantity).
  • Points Deducted: Quantity ÷ Ratio = 1 ÷ 0.35 ≈ 2.85 (rounded to 3).

Scenario 2: Single/Bulk Issue Reward with Explicit Quantity and No Payment Config

Input JSON:

{
  "mobile": "911886022308",
  "brand": "marvel_automation",
  "transactionNumber": "Transaction-1716621508000",
  "quantity": 40
}

Details:

  • Quantity: 40 (explicitly set).
  • Payment Config: null (no specific payment config used).

Calculations:

  • Redemption Value: 40 (explicitly provided quantity).
  • Points Deducted: Quantity ÷ Ratio = 40 ÷ 0.35 ≈ 114.29 (rounded to 114).

Scenario 3: Single/Bulk Issue Reward with Quantity and Payment Config that Includes Points

Input JSON:

{
  "mobile": "911886022308",
  "brand": "marvel_automation",
  "transactionNumber": "Transaction-1716621508000",
  "quantity": 40,
  "paymentConfig": {
    "id": 307,
    "points": 500
  }
}

Details:

  • Quantity: 40.
  • Payment Config: Points = 500.

Calculations:

  • Redemption Value: Points × Ratio = 500 × 0.35 = 175.
  • Points Deducted: 500 (directly used from the payment configuration).

Scenario 4: Single/Bulk Issue Reward with Quantity and Payment Config that Includes ID but Not Points

Input JSON:

{
  "mobile": "911886022308",
  "brand": "marvel_automation",
  "transactionNumber": "Transaction-1716621508000",
  "quantity": 40,
  "paymentConfig": {
    "id": 307
  }
}

Details:

  • Quantity: 40.
  • Payment Config: Contains an ID but not points (defaults to using quantity).

Calculations:

  • Redemption Value: 40 (quantity used directly).
  • Points Deducted: Quantity ÷ Ratio = 40 ÷ 0.35 ≈ 114.29 (rounded to 114).

Scenario 5: Bulk Issue Reward with Multiple Payment Configurations

Input JSON:

{
  "mobile": "919886022338",
  "brand": "marvel_automation",
  "transactionNumber": "Transaction-1716621508000",
  "rewards": [
    {
      "rewardId": 13649,
      "quantity": 40,
      "paymentConfig": {
        "id": 307,
        "points": 500
      }
    },
    {
      "rewardId": 14746,
      "quantity": 1
    }
  ]
}

Details:

  • Reward 1:
    • Reward ID: 13649.
    • Quantity: 40.
    • Payment Config: Points = 500.
    • Calculations:
      • Redemption Value = Points × Ratio = 500 × 0.35 = 175.
      • Points Deducted = 500 (directly used).
  • Reward 2:
    • Reward ID: 14746.
    • Quantity: 1.
    • Payment Config: None specified.
    • Outcome:
      • If multiple payment configs exist and none is specified, the system cannot process this reward and will fail for Reward 2 but proceed with Reward 1 using its default configuration.