We use detailed contract level data on a portfolio of 197 coffee washing stations in 18 countries to identify the sources and consequences of credit markets imperfections. Due to moral hazard, default rates increase following unanticipated increases in world coffee prices just before (but not just after) the maturity date of the contract. Strategic default is deterred by relationships with the lender and foreign buyers: the value of informal enforcement amounts to 50% of the value of the sale contract for repaying borrowers. A RDD shows that firms are credit constrained. Additional loans are used to increase input purchases from farmers rather than substituting other sources of credit. Prices paid to farmers increase implying the existence of contractual externalities along the supply chain.

Publication type: 
Working Paper
Date: 
September 01, 2013