Step 5 of 9

Step 5: Act as Supplier - Confirm Contract

For contracts where trader is supplier, they can confirm contracts like any supplier.

📍 Page Location

URL: /dashboard/authenticated

📸 Visual Representation of the Page

Step 5: Act as Supplier - Confirm Contract
TRADER🔔 Notifications

My Contracts (Dual Role)

Contract IDMy RoleProductStatusActions
contract-001BUYERWheatPENDING DEPOSIT
contract-002SUPPLIERRicePENDING CONFIRMATION

🎨 Detailed Visual Description

Contracts with trader as supplier show "Confirm as Supplier" button. Same supplier workflow applies.

Key Visual Elements:

  • Supplier actions
  • Contract confirmation
  • Status updates

⚙️ Backend Process

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

Process Flow:
1. Validates trader is supplierEmail
2. Confirms contract
3. Updates status to pending_deposit

Database Operations:

  • Table: database.contracts
  • Action: Confirm contract as supplier

➡️ Next Action

Contract confirmed, waiting for buyer deposit