Step 3 of 7

Step 3: Confirm Contract

Supplier confirms the contract, making it active and ready for buyer deposit.

📍 Page Location

URL: /dashboard/authenticated (contract action)

📸 Visual Representation of the Page

Step 3: Confirm Contract
SUPPLIER🔔 Notifications

My Contracts

Contract IDProductValueStatusActions
contract-001Wheat$2,627,500PENDING SUPPLIER CONFIRMATION

🎨 Detailed Visual Description

After clicking "Confirm Contract", status changes to "PENDING_DEPOSIT". Button disappears, replaced with "Awaiting Buyer Deposit" status.

Key Visual Elements:

  • One-click confirmation
  • Status update
  • Visual feedback

⚙️ Backend Process

API Endpoint: POST /api/contracts/:contractId/confirm

Process Flow:
1. Validates user is the supplier
2. Updates contract.status to "pending_deposit"
3. Logs audit event: contract_confirmed
4. Returns updated contract

Database Operations:

  • Table: database.contracts
  • Action: Update contract status

➡️ Next Action

Contract status changes, buyer can now pay deposit