Platform Technology

API Flow — Escrow + Wallet System

Complete API documentation for developers integrating with DiGiFaMaR's escrow-protected marketplace

Complete API Flow

The DiGiFaMaR API follows a secure 6-step process from product search to escrow release, with automatic refund protection built in.

GET /api/products

Search products by query and location

POST /api/orders

Create a new order between buyer and farmer

POST /api/escrow/pay

Funds locked in escrow

6-digit escrow code generated

Farmer wallet updated (status: pending)

POST /api/orders/confirm-receipt

Buyer confirms delivery, triggering escrow code generation

POST /api/escrow/release

Farmer enters 6-digit code → Funds released instantly to farmer wallet

POST /api/escrow/refund

Automatic trigger after 24 hours if delivery not confirmed. Full refund processed to buyer's payment method.

Authentication

All API requests require JWT Bearer token authentication

Coming Soon

DiGiFaMaR Global

Expanding Agricultural Trade Beyond Borders

Following our successful U.S. rollout, DiGiFaMaR's infrastructure is being optimized to support agricultural trade across Africa. We're building a platform to connect African farmers with global markets, enabling fair trade and sustainable commerce.

Local Empowerment

Supporting smallholder farmers with modern tools and fair market access

Fair Trade

Transparent pricing and secure escrow transactions for all parties

Market Growth

Connecting African agriculture to regional and international buyers

Ready to Shop Fresh?

Browse our marketplace of verified USA farmers and discover fresh, local produce delivered straight to your door.