create_source
Creates a payment source to initiate Omise payments via internet banking, Alipay, convenience stores, installments, PromptPay, or TrueMoney, defining amount, currency, and method details.
Instructions
Create a payment source for various payment methods
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": {
"type": "<type>",
"amount": "<amount>",
"currency": "<currency>"
},
"name": "create_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bank | No | Bank code for internet banking | |
| type | Yes | Payment method type | |
| store | No | Convenience store chain | |
| amount | Yes | Amount in the smallest currency unit | |
| currency | Yes | Currency code (THB, USD, etc.) | |
| metadata | No | Additional metadata for the source | |
| return_uri | No | Return URI for payment completion | |
| national_id | No | National ID for PromptPay | |
| phone_number | No | Phone number for TrueMoney | |
| mobile_number | No | Mobile number for PromptPay | |
| platform_type | No | Platform type for Alipay | |
| installment_term | No | Installment term (3, 6, 9, 10, 12, 18, 24, 36 months) |