Skip to content

Payment Status

Retrieves the current status of any payment — farmer payout, MFI deposit, or loan disbursement — by its payment ID.

GET /payments/{payment_id}

Auth: COOPERATIVE, MFI, or ADMIN token. Cooperatives can only see payments related to their cooperative. MFIs can only see their own deposits.

Terminal window
curl https://api.asilichain.xyz/payments/PAY-2026-004821-001 \
-H "Authorization: Bearer {token}"
{
"payment_id": "PAY-2026-004821-001",
"payment_type": "FARMER_PAYOUT",
"status": "COMPLETED",
"farmer_id": "UG-KAS-2024-001234",
"batch_id": "BATCH-2026-004821",
"cooperative_id": "COOP-MBALE-001",
"amount_usdc": 518.50,
"amount_ugx": 1910882,
"exchange_rate": 3684.5,
"kotanipay_reference": "KP-2026-XYZ",
"mtn_transaction_id": "MTN20260420123456",
"reason": "NET_COFFEE_PAYMENT",
"created_at": "2026-04-20T12:00:00Z",
"completed_at": "2026-04-20T12:00:47Z",
"elapsed_seconds": 47,
"retry_count": 0
}
{
"payment_id": "DEP-2026-MFI-0001",
"payment_type": "MFI_DEPOSIT",
"status": "COMPLETED",
"mfi_id": "MFI-UGAFODE-001",
"amount_usdc": 97500.00,
"source_currency": "UGX",
"source_amount": 364000000,
"transfi_payment_id": "TF-2026-PAY-0001",
"mantle_tx_hash": "0xfde789...",
"vault_shares_issued": 97500000,
"created_at": "2026-04-20T13:45:00Z",
"completed_at": "2026-04-20T14:00:00Z"
}
{
"payment_id": "DISB-2026-004821-001",
"payment_type": "LOAN_DISBURSEMENT",
"status": "COMPLETED",
"farmer_id": "UG-KAS-2024-001234",
"batch_id": "BATCH-2026-004821",
"loan_id": "LOAN-2026-004821",
"amount_usdc": 450.00,
"amount_ugx": 1657200,
"kotanipay_reference": "KP-2026-ABC",
"mtn_transaction_id": "MTN20260415093022",
"created_at": "2026-04-15T09:00:00Z",
"completed_at": "2026-04-15T09:00:52Z",
"elapsed_seconds": 52
}
StatusApplies toMeaning
PENDINGAllCreated, not yet sent to payment rail
PROCESSINGPayoutsSent to Kotani Pay, awaiting MTN confirmation
COMPLETEDAllSuccessfully delivered
FAILEDAllRejected by payment rail
RETRY_1PayoutsFirst retry in progress (30s delay)
RETRY_2PayoutsSecond retry in progress (60s delay)
RETRY_3PayoutsThird retry in progress (120s delay)
MANUAL_REVIEWPayoutsAll retries exhausted — human intervention needed
REFUNDEDDepositsDeposit reversed (exceptional — contact support)
Terminal window
GET /payments?batch_id=BATCH-2026-004821
{
"payments": [
{
"payment_id": "DISB-2026-004821-001",
"payment_type": "LOAN_DISBURSEMENT",
"status": "COMPLETED",
"amount_usdc": 450.00,
"completed_at": "2026-04-15T09:00:52Z"
},
{
"payment_id": "PAY-2026-004821-001",
"payment_type": "FARMER_PAYOUT",
"status": "COMPLETED",
"amount_usdc": 518.50,
"completed_at": "2026-04-20T12:00:47Z"
}
],
"total": 2
}
CodeTrigger
PAYMENT_NOT_FOUNDpayment_id not recognised
INSUFFICIENT_PERMISSIONSToken does not have access to this payment