create_payin
Create a payin to accept funds from a payer, specifying amount, payer details, and return URL for redirect after payment.
Instructions
Create Payin — Create a new Payin resource - accepting funds from a Payer — [POST /payins]
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"amount": "<amount>",
"return_url": "<return_url>",
"payer": "<payer>"
},
"name": "create_payin"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payer | Yes | Information about the Payer. If providing name information, both `first_name` and `last_name` must be provided together. | |
| amount | Yes | Amount the Payer will be charged | |
| payment | No | ||
| reference | No | Merchant-defined reference identifier for this Payin | |
| return_url | Yes | URL where the Payer will be redirected after completing or canceling the Payin | |
| settlement | No | ||
| webhook_url | No | URL where Yugo will send webhook notifications for Payin status changes | |
| idempotency_key | No | Optional idempotency key for safe retries (max 36 chars, UUID recommended). Auto-generated if not provided. |