midtrans_get_json_object_schema
Retrieve JSON schemas for Midtrans API objects with field definitions, types, required fields, and examples to build correct payment integration requests.
Instructions
Get the detailed JSON object schema for Midtrans API request/response objects.
Includes field definitions, types, required status, descriptions, and example JSON for each object type.
Available objects: transaction_details, customer_details, item_details, seller_details, custom_expiry, credit_card_object, gopay_object, shopeepay_object, bank_transfer_object, echannel_object, qris_object, ovo_object, convenience_store_object, action_object, payment_amount_object, dana_object, google_pay_object.
Args: params: Contains the object type to get schema for.
Returns: str: Detailed schema with field table, example JSON, and usage notes.
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_json_object_schema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |