When a payment is verified successfully and escrow is enabled, AgroPulse automatically calculates a three-way split: 80% to the farmer, 10% to the rider, and 10% as the platform fee. These figures are stored in aDocumentation 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.
PaymentSplit record linked to the payment. As payouts are completed, farmer_processed and rider_processed flags are set to true, giving you a clear audit trail of which disbursements have been fulfilled.
PaymentSplit records are created automatically on payment verification — you cannot create or modify them directly. Use the Payouts API to act on the amounts they contain.
Endpoints
| Method | Path | Auth | Description |
|---|---|---|---|
GET | /api/payment-splits/ | Required | List payment split records |
GET | /api/payment-splits/{id}/ | Required | Retrieve a single payment split record |
405 Method Not Allowed.
Example response
Query parameters
| Parameter | Type | Description |
|---|---|---|
ordering | string | Sort by created_at or farmer_amount (prefix - for descending) |
PaymentSplit object
UUID of the payment split record.
UUID of the associated payment.
Amount allocated to the farmer (80% of payment). Decimal string in NGN.
Amount allocated to the rider (10% of payment). Decimal string in NGN.
Amount retained as the platform fee (10% of payment). Decimal string in NGN.
true once the farmer payout linked to this split has been marked completed.true once the rider payout linked to this split has been marked completed.ISO 8601 timestamp of when the split was created.