Price quote
hitung_hargaExact price breakdown before ordering, without creating an order: unit price (with any running sale), subtotal for the quantity, promo code check and discount, total to pay, and whether the plan can be ordered in that quantity.
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": {
"produk": "<produk>"
},
"name": "hitung_harga"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | Optional: buyer's email, to check per-email code limits. | ||
| bahasa | No | Label language: id (Indonesian, default) or en. | |
| jumlah | No | ||
| produk | Yes | Plan slug from cari_paket. | |
| kodePromo | No | Promo code the user gave you, if any. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nama | No | ||
| promo | No | ||
| jumlah | Yes | ||
| produk | Yes | ||
| catatan | No | ||
| totalIdr | Yes | ||
| kodePromo | No | ||
| bisaDipesan | Yes | ||
| hematPersen | No | Saving versus the normal price, in percent. | |
| potonganIdr | No | ||
| subtotalIdr | Yes | ||
| biayaAdminIdr | No | ||
| promoBerakhir | No | ||
| hargaSatuanIdr | Yes | ||
| hematSatuanIdr | No | Saving per eSIM in IDR (normal price minus final price). A saving, never the price. | |
| labelHargaSatuan | No | Ready-to-show price line: final price, normal price, saving in % and IDR, and when the sale ends (WIB, UTC+7). | |
| hargaNormalSatuanIdr | No | Normal price before the sale, shown struck through next to the final price. Not what the user pays. |