After escrow funds are released, AgroPulse creates payout records for the farmer and, where applicable, the rider. Each payout tracks the disbursement lifecycle fromDocumentation 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.
PENDING through PROCESSING to COMPLETED. Farmers and riders can view their own payouts; admin staff have full access and can process batches or mark individual payouts completed.
Endpoints
| Method | Path | Auth | Description |
|---|---|---|---|
GET | /api/payouts/ | Required | List payouts visible to the authenticated user |
POST | /api/payouts/ | Required | Create a payout manually |
GET | /api/payouts/{id}/ | Required | Retrieve a single payout |
PUT | /api/payouts/{id}/ | Required | Replace a payout record |
PATCH | /api/payouts/{id}/ | Required | Partially update a payout record |
DELETE | /api/payouts/{id}/ | Required | Delete a payout record |
POST | /api/payouts/{id}/mark_completed/ | Required | Mark a payout as completed with a bank reference |
GET | /api/payouts/my_payouts/ | Required | Current user’s payouts (farmer or rider) |
GET | /api/payouts/pending_farmer_payouts/ | Staff only | All pending farmer payouts |
Payout type and status values
payout_type| Value | Description |
|---|---|
FARMER | Disbursement to the farmer who fulfilled the order |
RIDER | Disbursement to the transporter who delivered the order |
| Value | Description |
|---|---|
PENDING | Payout created, not yet actioned |
PROCESSING | Batch processing has started |
COMPLETED | Bank transfer confirmed; completed_at is set |
FAILED | Transfer attempt failed |
Create a payout
UUID of the associated
Payment.FARMER or RIDER.Amount to disburse in NGN.
UUID of the
FarmerProfile. Required when payout_type is FARMER.UUID of the
TransporterProfile. Required when payout_type is RIDER.Mark payout completed
Transitions a payout inPENDING or PROCESSING status to COMPLETED. Requires a bank_reference from the external transfer. Also updates the corresponding PaymentSplit processing flag.
Bank or Squad transfer reference confirming the disbursement.
Query parameters
| Parameter | Type | Description |
|---|---|---|
payout_status | string | Filter by PENDING, PROCESSING, COMPLETED, or FAILED |
payout_type | string | Filter by FARMER or RIDER |
ordering | string | Sort by created_at or amount (prefix - for descending) |
Payout object
UUID of the payout record.
UUID of the associated payment.
UUID of the
FarmerProfile recipient. null for rider payouts.UUID of the
TransporterProfile recipient. null for farmer payouts.One of
FARMER or RIDER.Disbursement amount in NGN (decimal string).
One of
PENDING, PROCESSING, COMPLETED, FAILED.External bank or transfer reference.
null until completed.ISO 8601 timestamp when the payout was marked completed.
null until then.ISO 8601 timestamp of payout creation.