Complete API documentation for developers integrating with DiGiFaMaR's escrow-protected marketplace
The DiGiFaMaR API follows a secure 6-step process from product search to escrow release, with automatic refund protection built in.
Search products by query and location
Create a new order between buyer and farmer
Funds locked in escrow
6-digit escrow code generated
Farmer wallet updated (status: pending)
Buyer confirms delivery, triggering escrow code generation
Farmer enters 6-digit code → Funds released instantly to farmer wallet
Automatic trigger after 24 hours if delivery not confirmed. Full refund processed to buyer's payment method.
All API requests require JWT Bearer token authentication