AgroPulse holds buyer funds in escrow after every successful payment whereDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/OluwagbeminiyiA/agro_pulse-API/llms.txt
Use this file to discover all available pages before exploring further.
escrow_enabled is true. Funds stay locked until the linked order’s delivery status reaches DELIVERED. Once released, a farmer payout is created automatically from the payment split. This protects buyers from non-delivery and gives farmers confidence that payment is secured before dispatch.
Endpoints
| Method | Path | Auth | Description |
|---|---|---|---|
GET | /api/escrow/ | Required | List escrow accounts visible to the authenticated user |
GET | /api/escrow/{id}/ | Required | Retrieve a single escrow account |
POST | /api/escrow/{id}/release_funds/ | Required | Release held funds after delivery is confirmed |
GET | /api/escrow/held_funds/ | Required | List all escrow accounts with HELD status |
Release funds
Transitions an escrow account fromHELD to RELEASED and creates a FARMER payout for the farmer’s share of the payment split. The linked order’s delivery must already be in DELIVERED status; otherwise the request is rejected with 400.
Release status values
| Value | Meaning |
|---|---|
HELD | Funds are locked pending delivery confirmation |
RELEASED | Delivery confirmed; funds disbursed to farmer payout |
DISPUTED | A dispute has been raised against this escrow |
Query parameters
| Parameter | Type | Description |
|---|---|---|
farmer | UUID | Filter by farmer profile UUID |
release_status | string | Filter by HELD, RELEASED, or DISPUTED |
ordering | string | Sort by created_at or amount_held (prefix - for descending) |
EscrowAccount object
UUID of the escrow account.
UUID of the associated payment.
UUID of the
FarmerProfile whose funds are held.Amount held in escrow (decimal string, NGN).
One of
HELD, RELEASED, DISPUTED.ISO 8601 timestamp when funds were released.
null if still held.ISO 8601 timestamp when the escrow account was created.