Skip to content
Aegis
Connecting

Action

5b586589-d995-453a-82a3-743947aa81b7

NegotiateDiscount offerBlocked

Offer ₹3,99,000.00 to settle invoice inv_0001_d1975fd9

Stopped by daily discount budget paise

Proposal

What the module wants to do and why, in its own words.

Money impact
costs ₹21,000.00
Expected recovery
₹3,99,000.00
Entity
Invoice inv_0001_d1975fd9
Trigger event
evt_0009_e4f456d8
Idempotency key
b2b_negotiator:invoice:inv_0001_d1975fd9:1

Explanation

  1. Round 1 discount computed in integer paise.
  2. Offer is within the configured bounds.

Guardrails

Every bound evaluated before anything could run (C-B1).

9 passed, 1 failed

  • Invoice amount minimumpassed
    limit ₹50,000.00actual ₹4,20,000.00

    Only B2B invoices of at least ₹50,000 enter negotiation.

  • Floor amountpassed
    limit ₹3,57,000.00actual ₹3,99,000.00

    An automated offer never goes below the immutable invoice floor.

  • Max discount pctpassed
    limit 15actual 5

    Discount ceiling is loaded from guardrails.

  • Max negotiation roundspassed
    limit 3actual 1

    Round count is bounded by the merchant setting.

  • Counter floorpassed
    limit ₹3,57,000.00actual

    A below-floor counter is recorded for human override rather than accepted automatically.

  • Negotiation transitionpassed
    limit noneactual offer_sent

    State transitions are deterministic.

  • Kill switchpassed
    limit noactual no
  • Message cooldown hourspassed
    limit 24actual
  • Quiet hours localpassed
    limit {"end":8,"start":21,"timezone":"Asia/Kolkata"}actual {"hour":12,"timezone":"Asia/Kolkata"}
  • Daily discount budget paisefailed
    limit ₹50,000.00actual ₹63,000.00

    daily discount budget would be exceeded

Diagnosis

This action was proposed without a diagnosis: its trigger is projected deterministically.

Outbound payload

Nothing was sent. This is the payload the proposal carries.

{
  "email": {
    "body": "We can offer ₹3,99,000.00 if payment is completed by 2026-09-09T06:38:50.473Z.",
    "subject": "A practical way to settle your invoice"
  },
  "round": 1,
  "degraded": true,
  "whatsapp": {
    "to": "",
    "text": {
      "body": "We can offer ₹3,99,000.00 if payment is completed by 2026-09-09T06:38:50.473Z."
    },
    "type": "text",
    "messaging_product": "whatsapp"
  },
  "clampedBy": "none",
  "offerPaise": 39900000,
  "validUntil": "2026-09-09T06:38:50.473Z",
  "discountPct": 5
}

Timeline

Created 06 Sept, 12:08:59

  1. Proposed by b2b negotiator
    Reason: Daily discount budget paise

Raw proposal

The stored JSON, exactly as persisted.

{
  "kind": "discount_offer",
  "module": "b2b_negotiator",
  "payload": {
    "email": {
      "body": "We can offer ₹3,99,000.00 if payment is completed by 2026-09-09T06:38:50.473Z.",
      "subject": "A practical way to settle your invoice"
    },
    "round": 1,
    "degraded": true,
    "whatsapp": {
      "to": "",
      "text": {
        "body": "We can offer ₹3,99,000.00 if payment is completed by 2026-09-09T06:38:50.473Z."
      },
      "type": "text",
      "messaging_product": "whatsapp"
    },
    "clampedBy": "none",
    "offerPaise": 39900000,
    "validUntil": "2026-09-09T06:38:50.473Z",
    "discountPct": 5
  },
  "summary": "Offer ₹3,99,000.00 to settle invoice inv_0001_d1975fd9",
  "entityId": "inv_0001_d1975fd9",
  "customerId": "cus_0006_6d33b430",
  "entityType": "invoice",
  "explanation": [
    "Round 1 discount computed in integer paise.",
    "Offer is within the configured bounds."
  ],
  "moduleVersion": "v1",
  "idempotencyKey": "b2b_negotiator:invoice:inv_0001_d1975fd9:1",
  "moneyImpactPaise": -2100000,
  "requiresApproval": false,
  "scheduleFollowUp": {
    "kind": "negotiation_expiry",
    "runAt": "2026-09-09T06:38:50.473Z",
    "payload": {
      "round": 1,
      "invoiceId": "inv_0001_d1975fd9"
    },
    "dedupeKey": "negotiation_expiry:inv_0001_d1975fd9:1"
  },
  "expectedRecoveryPaise": 39900000
}
Made with 💖 by Nabhanyu for Razorpay AI Buildathon