Create an order
buat_pesananCreates an order for the user and emails them the order link. Only call this after the user chose the plan and explicitly confirmed this statement: "I have checked: my phone supports eSIM and is not carrier-locked (SIM Lock). I understand this eSIM is for internet only — no phone number, texts, or calls — and cannot be topped up." No money moves yet: the user pays online on their order page at pakeesim.com (payment gateway), and the result has the amount and that link (pembayaran.tautanBayar). Send a kunciIdempotensi so a retried call returns the same order instead of a duplicate. Limited to a few orders per email per 10 minutes.
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>",
"nama": "<nama>",
"email": "<email>",
"setujuKompatibel": "<setujuKompatibel>"
},
"name": "buat_pesanan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nama | Yes | Buyer's full name. | |
| Yes | Buyer's email; the order link and QR code are sent here. | ||
| bahasa | No | Label language: id (Indonesian, default) or en. | |
| jumlah | No | Number of eSIMs (one per phone). | |
| produk | Yes | Plan slug from cari_paket. | |
| catatan | No | Optional note, e.g. departure date. | |
| kodePromo | No | Optional promo code the user gave you. | |
| kunciIdempotensi | No | Optional unique key for this purchase (e.g. a UUID). Repeating the call with the same key, email and plan returns the same order for 24 hours. | |
| metodePembayaran | No | Optional online payment method id from info_checkout. Omit it to use the first listed method. | |
| setujuKompatibel | Yes | true only if the user confirmed their phone supports eSIM and is not carrier-locked. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| esim | No | ||
| token | No | ||
| status | Yes | ||
| tautan | No | ||
| totalIdr | Yes | ||
| diskonIdr | No | ||
| expiresAt | No | ||
| pembayaran | No | ||
| labelStatus | No | ||
| orderNumber | Yes | ||
| subtotalIdr | No | ||
| langkahBerikutnya | Yes |