{
    "openapi": "3.1.0",
    "info": {
        "title": "Sumbu — API H2H Fireflazz",
        "version": "1.0.0",
        "summary": "Pesan produk top up dari sistemmu sendiri, dibayar dari saldo.",
        "description": "Sumbu adalah jalur H2H Fireflazz: sambungkan sistemmu ke katalog top up\nkami tanpa perlu punya toko di sini.\n\n## Yang perlu diketahui lebih dulu\n\n- **Semua jawaban berbentuk sama.** `{\"ok\": true, \"data\": …}` saat\n  berhasil, `{\"ok\": false, \"kode\": \"…\", \"pesan\": \"…\"}` saat tidak.\n  `kode` untuk dibaca mesin dan tak pernah berubah; `pesan` untuk dibaca\n  manusia dan boleh kami perbaiki kapan saja.\n- **`ref_id` adalah kunci idempotensi.** Nomor pesanan milikmu sendiri.\n  Mengirimnya dua kali mengembalikan pesanan yang sudah ada, bukan\n  membeli lagi — kirim ulang dengan tenang saat jaringanmu putus.\n- **Pesanan dibayar dari saldo**, dipotong saat pesanan dibuat. Pesanan\n  yang gagal mengembalikan saldonya sendiri seketika, tanpa menunggu\n  admin.\n- **Harga sudah final.** Tak ada fee yang ditambahkan belakangan.\n- **Jangan pakai `urllib` bawaan Python atau `libwww-perl`.** Keduanya\n  ditolak lapisan keamanan di depan kami sebelum permintaannya sampai ke\n  API, jadi yang kamu terima 403 tanpa isi JSON. `requests`, Guzzle,\n  axios, okhttp, dan curl semuanya lolos.",
        "contact": {
            "name": "Admin Sumbu",
            "url": "https://sumbu.fireflazz.com/dokumentasi"
        }
    },
    "servers": [
        {
            "url": "https://sumbu.fireflazz.com/v1",
            "description": "Produksi. Satu-satunya host yang melayani API ini."
        }
    ],
    "security": [
        {
            "bearerAuth": []
        }
    ],
    "tags": [
        {
            "name": "Akun",
            "description": "Saldo dan profil."
        },
        {
            "name": "Katalog",
            "description": "Daftar harga."
        },
        {
            "name": "Pesanan",
            "description": "Membuat dan memantau pesanan."
        },
        {
            "name": "Saldo",
            "description": "Isi saldo lewat QRIS."
        }
    ],
    "paths": {
        "/saldo": {
            "get": {
                "tags": [
                    "Akun"
                ],
                "summary": "Saldo sekarang",
                "description": "Ringan dan sengaja dipisah dari /profil: inilah endpoint yang dipanggil paling sering, biasanya sebelum tiap pesanan.",
                "operationId": "saldo",
                "responses": {
                    "200": {
                        "description": "Saldo terbaca",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean",
                                            "const": true
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "saldo": {
                                                    "type": "integer",
                                                    "examples": [
                                                        125000
                                                    ]
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/TanpaToken"
                    },
                    "403": {
                        "$ref": "#/components/responses/Ditolak"
                    },
                    "429": {
                        "$ref": "#/components/responses/TerlaluCepat"
                    }
                }
            }
        },
        "/profil": {
            "get": {
                "tags": [
                    "Akun"
                ],
                "summary": "Profil akun",
                "operationId": "profil",
                "responses": {
                    "200": {
                        "description": "Profil terbaca",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean",
                                            "const": true
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "nama": {
                                                    "type": "string"
                                                },
                                                "email": {
                                                    "type": "string",
                                                    "format": "email"
                                                },
                                                "saldo": {
                                                    "type": "integer"
                                                },
                                                "callback": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "format": "uri"
                                                },
                                                "sejak": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "format": "date-time"
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/TanpaToken"
                    }
                }
            }
        },
        "/harga": {
            "get": {
                "tags": [
                    "Katalog"
                ],
                "summary": "Daftar harga",
                "description": "Seluruh katalog dalam satu panggilan, tanpa paginasi. Pakai `sejak` untuk menarik yang berubah saja — itu pertanyaan pertama tiap pagi, dan jauh lebih murah daripada menarik ulang semuanya.\n\nHarga modal kami tidak pernah ikut dalam jawaban mana pun.",
                "operationId": "daftarHarga",
                "parameters": [
                    {
                        "name": "sejak",
                        "in": "query",
                        "required": false,
                        "description": "Hanya produk yang harganya berubah pada atau sesudah waktu ini.",
                        "schema": {
                            "type": "string",
                            "format": "date-time"
                        },
                        "example": "2026-08-15T00:00:00+07:00"
                    },
                    {
                        "name": "kategori",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string"
                        },
                        "example": "Pulsa & Data"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Daftar harga",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean",
                                            "const": true
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "jumlah": {
                                                    "type": "integer"
                                                },
                                                "produk": {
                                                    "type": "array",
                                                    "items": {
                                                        "$ref": "#/components/schemas/Produk"
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/TakTerbaca"
                    }
                }
            }
        },
        "/pesanan": {
            "post": {
                "tags": [
                    "Pesanan"
                ],
                "summary": "Buat pesanan",
                "description": "Memotong saldo saat pesanan dibuat.\n\nKirim `harga` kalau kamu menyimpan daftar harga di sistemmu: bila tak lagi cocok, pesanan **ditolak** dengan harga terbaru alih-alih ditagih diam-diam dengan angka berbeda. Modal penyedia bergerak tiap hari, dan reseller yang menjual di bawah modal karena daftarnya basi baru sadar setelah ratusan transaksi.",
                "operationId": "buatPesanan",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PesananBaru"
                            },
                            "example": {
                                "ref_id": "INV-2026-0001",
                                "produk_id": 5447,
                                "tujuan": "123456789",
                                "zona": "2001",
                                "harga": 21500
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Pesanan dibuat",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean",
                                            "const": true
                                        },
                                        "duplikat": {
                                            "type": "boolean",
                                            "const": false
                                        },
                                        "data": {
                                            "$ref": "#/components/schemas/Pesanan"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "200": {
                        "description": "ref_id sudah pernah dipakai — ini pesanan yang sudah ada, bukan pesanan baru",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean",
                                            "const": true
                                        },
                                        "duplikat": {
                                            "type": "boolean",
                                            "const": true
                                        },
                                        "data": {
                                            "$ref": "#/components/schemas/Pesanan"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "402": {
                        "$ref": "#/components/responses/SaldoKurang"
                    },
                    "404": {
                        "$ref": "#/components/responses/ProdukTakAda"
                    },
                    "409": {
                        "$ref": "#/components/responses/HargaBerubah"
                    },
                    "503": {
                        "$ref": "#/components/responses/PenyediaGangguan"
                    },
                    "422": {
                        "$ref": "#/components/responses/IsiTakSah"
                    }
                }
            },
            "get": {
                "tags": [
                    "Pesanan"
                ],
                "summary": "Riwayat pesanan",
                "operationId": "daftarPesanan",
                "parameters": [
                    {
                        "name": "status",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "paid",
                                "processing",
                                "success",
                                "failed",
                                "refunded"
                            ]
                        }
                    },
                    {
                        "name": "per_halaman",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 100,
                            "default": 50
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Riwayat",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean",
                                            "const": true
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "jumlah": {
                                                    "type": "integer"
                                                },
                                                "halaman": {
                                                    "type": "integer"
                                                },
                                                "dari": {
                                                    "type": "integer"
                                                },
                                                "pesanan": {
                                                    "type": "array",
                                                    "items": {
                                                        "$ref": "#/components/schemas/Pesanan"
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/pesanan/{ref_id}": {
            "get": {
                "tags": [
                    "Pesanan"
                ],
                "summary": "Status satu pesanan",
                "description": "Memakai `ref_id` milikmu sendiri, bukan kode internal kami. Hanya pesanan milik akun token ini yang bisa dibaca.",
                "operationId": "statusPesanan",
                "parameters": [
                    {
                        "name": "ref_id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "maxLength": 64
                        },
                        "example": "INV-2026-0001"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Status pesanan",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean",
                                            "const": true
                                        },
                                        "data": {
                                            "$ref": "#/components/schemas/Pesanan"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/PesananTakAda"
                    }
                }
            }
        },
        "/deposit": {
            "post": {
                "tags": [
                    "Saldo"
                ],
                "summary": "Buat tagihan isi saldo (QRIS)",
                "description": "Nominal yang kamu sebut adalah SALDO yang akan masuk; yang ditagih sudah termasuk biaya pembayaran. Transfer bank tanpa biaya tersedia lewat panel untuk akun yang sudah berbelanja.",
                "operationId": "buatDeposit",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "saldo"
                                ],
                                "properties": {
                                    "saldo": {
                                        "type": "integer",
                                        "minimum": 50000,
                                        "description": "Saldo yang mau ditambahkan, dalam rupiah. Setoran PERTAMA minimal 100.000, sesudahnya minimal 50.000."
                                    }
                                }
                            },
                            "example": {
                                "saldo": 1000000
                            }
                        }
                    }
                },
                "responses": {
                    "422": {
                        "$ref": "#/components/responses/IsiTakSah"
                    },
                    "201": {
                        "description": "Tagihan dibuat",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean",
                                            "const": true
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "ref": {
                                                    "type": "string"
                                                },
                                                "dibayar": {
                                                    "type": "integer",
                                                    "description": "Yang harus dibayar, termasuk biaya."
                                                },
                                                "biaya": {
                                                    "type": "integer"
                                                },
                                                "masuk_saldo": {
                                                    "type": "integer"
                                                },
                                                "status": {
                                                    "type": "string"
                                                },
                                                "bayar_di": {
                                                    "type": "string",
                                                    "format": "uri"
                                                },
                                                "kedaluwarsa": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "format": "date-time"
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/deposit/{ref}": {
            "get": {
                "tags": [
                    "Saldo"
                ],
                "summary": "Status setoran",
                "operationId": "statusDeposit",
                "parameters": [
                    {
                        "name": "ref",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "example": "DEPA1B2C3D4E"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Status setoran",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean",
                                            "const": true
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "ref": {
                                                    "type": "string"
                                                },
                                                "dibayar": {
                                                    "type": "integer"
                                                },
                                                "biaya": {
                                                    "type": "integer"
                                                },
                                                "masuk_saldo": {
                                                    "type": "integer"
                                                },
                                                "status": {
                                                    "type": "string"
                                                },
                                                "lunas_pada": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "format": "date-time"
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/DepositTakAda"
                    }
                }
            }
        },
        "/nyala": {
            "get": {
                "summary": "Penanda hidup",
                "description": "Tanpa autentikasi. Hanya menjawab bahwa prosesnya menyala — tidak menyebutkan apa pun tentang keadaan dalam.",
                "operationId": "nyala",
                "security": [],
                "responses": {
                    "200": {
                        "description": "Menyala",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "waktu": {
                                            "type": "string",
                                            "format": "date-time"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    },
    "webhooks": {
        "pesanan.berubah": {
            "post": {
                "summary": "Status pesanan berubah",
                "description": "Kami POST ke alamat yang kamu pasang di panel setiap status pesanan berubah.\n\n**Periksa `X-Sumbu-Signature` selalu.** Alamat callback kamu terbuka untuk siapa pun yang menebaknya; tanpa pemeriksaan ini, orang lain bisa mengirim \"pesanan sukses\" palsu dan sistemmu akan mengirim barang yang tak pernah dibayar.\n\nTanda tangannya HMAC-SHA256 atas **badan mentah** dengan rahasia dari halaman Callback. Bandingkan atas teks mentah yang diterima, bukan atas hasil decode lalu encode ulang — dua encoder JSON tak pernah menghasilkan byte yang sama persis.\n\nJawab `2xx` kalau diterima. Jawaban `4xx` kami anggap penolakan permanen dan tidak diulang; `5xx` dan timeout diulang enam kali dengan jeda menaik (10 detik sampai sekitar setengah jam).",
                "parameters": [
                    {
                        "name": "X-Sumbu-Signature",
                        "in": "header",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "HMAC-SHA256 hex atas badan mentah."
                    },
                    {
                        "name": "X-Sumbu-Event",
                        "in": "header",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "pesanan.berubah"
                            ]
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "peristiwa": {
                                        "type": "string",
                                        "const": "pesanan.berubah"
                                    },
                                    "waktu": {
                                        "type": "string",
                                        "format": "date-time"
                                    },
                                    "data": {
                                        "$ref": "#/components/schemas/Pesanan"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Diterima. Apa pun 2xx dianggap berhasil."
                    },
                    "4XX": {
                        "description": "Ditolak permanen. Tidak akan diulang."
                    },
                    "5XX": {
                        "description": "Gangguan sementara. Akan diulang."
                    }
                }
            }
        }
    },
    "components": {
        "securitySchemes": {
            "bearerAuth": {
                "type": "http",
                "scheme": "bearer",
                "description": "Token dibuat di panel, halaman Token API. Ditampilkan sekali saja — yang kami simpan hanya sidik jarinya. Token bisa dibatasi ke daftar IP; permintaan dari luar daftar dijawab `ip_tak_diizinkan`."
            }
        },
        "schemas": {
            "Produk": {
                "type": "object",
                "description": "Satu nominal yang bisa dipesan. Harga sudah final.",
                "properties": {
                    "produk_id": {
                        "type": "integer",
                        "examples": [
                            5447
                        ]
                    },
                    "judul": {
                        "type": "string",
                        "examples": [
                            "Mobile Legends Indonesia"
                        ]
                    },
                    "judul_slug": {
                        "type": "string"
                    },
                    "kategori": {
                        "type": "string",
                        "examples": [
                            "Game"
                        ]
                    },
                    "nama": {
                        "type": "string",
                        "examples": [
                            "86 Diamond"
                        ]
                    },
                    "harga": {
                        "type": "integer",
                        "examples": [
                            21500
                        ]
                    },
                    "stok": {
                        "type": "string",
                        "enum": [
                            "ada",
                            "kosong"
                        ]
                    },
                    "diperbarui": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Kapan harga baris ini terakhir BERGERAK (ISO 8601, UTC) — bukan kapan daftar disegarkan. Penyegaran tanpa perubahan tidak menggesernya."
                    },
                    "tujuan": {
                        "$ref": "#/components/schemas/Isian",
                        "description": "Apa yang harus dikirim di `tujuan` untuk produk ini."
                    },
                    "zona": {
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/Isian"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "description": "`null` = judul ini tak memakai zona. Kalau ada dan `wajib`, pesanan tanpa `zona` ditolak. `jenis: sandi` = top up via login: isi `zona` dengan kata sandi akun (disimpan terenkripsi, tak pernah ditampilkan ulang)."
                    }
                }
            },
            "Isian": {
                "type": "object",
                "properties": {
                    "label": {
                        "type": "string",
                        "examples": [
                            "Server ID"
                        ]
                    },
                    "jenis": {
                        "type": "string",
                        "enum": [
                            "id",
                            "teks",
                            "hp",
                            "email",
                            "link",
                            "sandi"
                        ]
                    },
                    "wajib": {
                        "type": "boolean"
                    },
                    "pilihan": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        },
                        "description": "Kalau ada, hanya nilai dari daftar ini yang diterima."
                    },
                    "contoh": {
                        "type": "string"
                    }
                }
            },
            "PesananBaru": {
                "type": "object",
                "required": [
                    "ref_id",
                    "produk_id",
                    "tujuan"
                ],
                "properties": {
                    "ref_id": {
                        "type": "string",
                        "maxLength": 64,
                        "description": "Nomor pesanan milikmu. Kunci idempotensi: yang sama tak pernah membeli dua kali."
                    },
                    "produk_id": {
                        "type": "integer",
                        "description": "Dari daftar harga."
                    },
                    "tujuan": {
                        "type": "string",
                        "maxLength": 64,
                        "pattern": "^[A-Za-z0-9._@\\- ]+$",
                        "description": "ID pemain, nomor HP, email, atau username — lihat `tujuan` pada produk di daftar harga. Nomor HP boleh +62/62/0 dan berspasi."
                    },
                    "zona": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 64,
                        "description": "Server/zone untuk judul yang memerlukannya (lihat `zona` di daftar harga). Untuk judul top up via login (`jenis: sandi`) berisi kata sandi akun."
                    },
                    "harga": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Opsional tapi disarankan: harga yang kamu yakini. Tak cocok = pesanan ditolak dengan harga terbaru."
                    }
                }
            },
            "Pesanan": {
                "type": "object",
                "properties": {
                    "ref_id": {
                        "type": "string"
                    },
                    "ref": {
                        "type": "string",
                        "description": "Kode internal kami."
                    },
                    "produk_id": {
                        "type": "integer"
                    },
                    "produk": {
                        "type": "string"
                    },
                    "judul": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "tujuan": {
                        "type": "string"
                    },
                    "zona": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "harga": {
                        "type": "integer"
                    },
                    "status": {
                        "type": "string",
                        "enum": [
                            "diproses",
                            "sukses",
                            "gagal"
                        ],
                        "description": "Sengaja hanya tiga. `gagal` berarti saldo SUDAH kembali."
                    },
                    "sn": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Kode/serial, untuk produk yang punya."
                    },
                    "catatan": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "dibuat": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "diperbarui": {
                        "type": "string",
                        "format": "date-time"
                    }
                }
            },
            "Galat": {
                "type": "object",
                "properties": {
                    "ok": {
                        "type": "boolean",
                        "const": false
                    },
                    "kode": {
                        "type": "string",
                        "description": "Dibaca mesin. Tidak pernah berubah."
                    },
                    "pesan": {
                        "type": "string",
                        "description": "Dibaca manusia. Boleh berubah."
                    }
                }
            }
        },
        "responses": {
            "TanpaToken": {
                "description": "Token tidak dikirim atau tidak dikenali.",
                "content": {
                    "application/json": {
                        "schema": {
                            "$ref": "#/components/schemas/Galat"
                        },
                        "example": {
                            "ok": false,
                            "kode": "tak_dikenali",
                            "pesan": "…"
                        }
                    }
                }
            },
            "Ditolak": {
                "description": "Akun dibekukan, belum berjalur H2H, atau IP di luar daftar token.",
                "content": {
                    "application/json": {
                        "schema": {
                            "$ref": "#/components/schemas/Galat"
                        },
                        "example": {
                            "ok": false,
                            "kode": "bukan_akun_sumbu",
                            "pesan": "…"
                        }
                    }
                }
            },
            "SaldoKurang": {
                "description": "Saldo tak menutup harga. Tak ada pesanan yang dibuat.",
                "content": {
                    "application/json": {
                        "schema": {
                            "$ref": "#/components/schemas/Galat"
                        },
                        "example": {
                            "ok": false,
                            "kode": "saldo_kurang",
                            "pesan": "…"
                        }
                    }
                }
            },
            "HargaBerubah": {
                "description": "Harga yang dikirim tak lagi cocok (`harga_berubah`; harga terbaru ada di field `harga`), atau ref_id itu sudah dipakai pesanan lain di akun yang sama — termasuk lewat API etalase (`ref_id_terpakai`).",
                "content": {
                    "application/json": {
                        "schema": {
                            "$ref": "#/components/schemas/Galat"
                        },
                        "example": {
                            "ok": false,
                            "kode": "harga_berubah",
                            "pesan": "…"
                        }
                    }
                }
            },
            "ProdukTakAda": {
                "description": "Produk tidak ada, atau tidak ada di daftar harga.",
                "content": {
                    "application/json": {
                        "schema": {
                            "$ref": "#/components/schemas/Galat"
                        },
                        "example": {
                            "ok": false,
                            "kode": "produk_tak_tersedia",
                            "pesan": "…"
                        }
                    }
                }
            },
            "PesananTakAda": {
                "description": "Tidak ada pesanan dengan ref_id itu DI AKUN INI.",
                "content": {
                    "application/json": {
                        "schema": {
                            "$ref": "#/components/schemas/Galat"
                        },
                        "example": {
                            "ok": false,
                            "kode": "pesanan_tak_ada",
                            "pesan": "…"
                        }
                    }
                }
            },
            "DepositTakAda": {
                "description": "Tidak ada setoran dengan kode itu di akun ini.",
                "content": {
                    "application/json": {
                        "schema": {
                            "$ref": "#/components/schemas/Galat"
                        },
                        "example": {
                            "ok": false,
                            "kode": "deposit_tak_ada",
                            "pesan": "…"
                        }
                    }
                }
            },
            "PenyediaGangguan": {
                "description": "Penyedia sedang tak bisa melayani. Saldo tidak tersentuh.",
                "content": {
                    "application/json": {
                        "schema": {
                            "$ref": "#/components/schemas/Galat"
                        },
                        "example": {
                            "ok": false,
                            "kode": "penyedia_gangguan",
                            "pesan": "…"
                        }
                    }
                }
            },
            "TakTerbaca": {
                "description": "Nilai `sejak` bukan tanggal ISO 8601 yang bisa dibaca.",
                "content": {
                    "application/json": {
                        "schema": {
                            "$ref": "#/components/schemas/Galat"
                        },
                        "example": {
                            "ok": false,
                            "kode": "sejak_tak_terbaca",
                            "pesan": "…"
                        }
                    }
                }
            },
            "IsiTakSah": {
                "description": "Isi permintaan tidak lolos pemeriksaan: bentuk salah, zona wajib kosong (isi_tak_sah / zona_wajib), atau akun tujuan PASTI tak ada / beda region (tujuan_tak_ditemukan / tujuan_beda_region). Saldo tidak tersentuh.",
                "content": {
                    "application/json": {
                        "schema": {
                            "$ref": "#/components/schemas/Galat"
                        },
                        "example": {
                            "ok": false,
                            "kode": "isi_tak_sah",
                            "pesan": "…"
                        }
                    }
                }
            },
            "TerlaluCepat": {
                "description": "Batas laju terlampaui. Lihat header Retry-After.",
                "content": {
                    "application/json": {
                        "schema": {
                            "$ref": "#/components/schemas/Galat"
                        },
                        "example": {
                            "ok": false,
                            "kode": "terlalu_cepat",
                            "pesan": "…"
                        }
                    }
                }
            }
        }
    }
}