midtrans_get_charge_example
Generate complete Midtrans charge request JSON examples with curl commands for specific payment methods. Creates ready-to-use request bodies with optional customer and item details.
Instructions
Generate a complete charge request JSON example for a specific payment method.
Creates a ready-to-use charge request body with all required fields and optionally includes customer_details and item_details.
Args: params: Contains payment method, and flags for optional sections.
Returns: str: Complete charge request JSON example with curl command and response format.
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": {
"params": "<params>"
},
"name": "midtrans_get_charge_example"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |