Payout History
| Recipient | Amount | Currency | Status | TxHash | Date | Actions |
|---|
New Payout
API Documentation
GET /api.php?action=list
Returns a list of all payouts in JSON format.
GET /api.php?action=get&id={id}
Returns a single payout by its ID.
POST /api.php?action=create
Creates a new payout. Expects a JSON body:
{
"recipient_name": "John Doe",
"amount": "100.50",
"currency": "USDC",
"status": "pending",
"tx_hash": "0xabc...123"
}
POST /api.php?action=update&id={id}
Updates an existing payout. Expects a JSON body with the fields to update.
DELETE /api.php?action=delete&id={id}
Deletes a payout by its ID.
AI Agent Guide
Welcome, Agent
This guide explains how to programmatically interact with the Payout API.
Workflow
- List: GET
api.php?action=listto check state. - Create: POST to
api.php?action=createto initiate. - Update: POST to
api.php?action=update&id={id}after blockchain confirmation to setstatus: "completed"andtx_hash.
Best Practices
- Always include
tx_hashfor completed transactions. - Verify recipient and amount before marking as completed.
- Use
listto avoid duplicate entries.
For more details, see the agent.md file in the project root.