{
    "info": {
        "_postman_id": "a83f9e20-7b3b-4e12-8e1d-c353c7c88b12",
        "name": "Nepal Recharge B2B API Suite",
        "description": "Official Postman Collection for Nepal Recharge B2B Partner APIs.\n\n### Instructions:\n1. In Postman, select the environment **Nepal Recharge - Production** (or set `base_url` to `https://nepalrecharge.com/api/v1` and `auth_token`).\n2. Put your API key into `{{auth_token}}`.\n3. Hit any endpoint!",
        "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
    },
    "variable": [
        {
            "key": "base_url",
            "value": "https://nepalrecharge.com/api/v1",
            "type": "string"
        },
        {
            "key": "auth_token",
            "value": "",
            "type": "string"
        },
        {
            "key": "secret_key",
            "value": "",
            "type": "string"
        }
    ],
    "event": [
        {
            "listen": "prerequest",
            "script": {
                "type": "text/javascript",
                "exec": [
                    "// Strict HMAC-SHA256 Signature Automation",
                    "if (pm.request.body && pm.request.body.raw && pm.request.method !== 'GET') {",
                    "    var secret = pm.environment.get('secret_key') || pm.collectionVariables.get('secret_key');",
                    "    if (secret) {",
                    "        var signature = CryptoJS.HmacSHA256(pm.request.body.raw, secret).toString();",
                    "        pm.request.headers.upsert({key: 'x-signature', value: signature});",
                    "    }",
                    "}"
                ]
            }
        }
    ],
    "item": [
        {
            "name": "1. Wallet & Balance APIs",
            "item": [
                {
                    "name": "Check Wallet Balance",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "x-auth-token",
                                "value": "{{auth_token}}"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/wallet/balance",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "wallet",
                                "balance"
                            ]
                        }
                    }
                }
            ]
        },
        {
            "name": "2. Nepal Recharge & Packages APIs",
            "item": [
                {
                    "name": "Pre-Check Account / Number (Bill / Mobile)",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "x-auth-token",
                                "value": "{{auth_token}}"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"operator_id\": 1,\n    \"operator_type_id\": 1,\n    \"connection_no\": \"9841234567\",\n    \"amount\": 50\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        },
                        "url": {
                            "raw": "{{base_url}}/np/recharge/check",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "np",
                                "recharge",
                                "check"
                            ]
                        }
                    }
                },
                {
                    "name": "Execute Nepal Mobile Topup (Type 1)",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "x-auth-token",
                                "value": "{{auth_token}}"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"operator_id\": 1,\n    \"operator_type_id\": 1,\n    \"connection_no\": \"9841234567\",\n    \"amount\": 50,\n    \"reference_no\": \"ORD-TOPUP-1790579683\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        },
                        "url": {
                            "raw": "{{base_url}}/np/recharge/execute",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "np",
                                "recharge",
                                "execute"
                            ]
                        }
                    }
                },
                {
                    "name": "Execute Nepal Data / Voice Pack (Type 3)",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "x-auth-token",
                                "value": "{{auth_token}}"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"operator_id\": 2,\n    \"operator_type_id\": 3,\n    \"connection_no\": \"9801234567\",\n    \"package_code\": \"9\",\n    \"amount\": 49,\n    \"reference_no\": \"ORD-DATA-1790579683\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        },
                        "url": {
                            "raw": "{{base_url}}/np/recharge/execute",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "np",
                                "recharge",
                                "execute"
                            ]
                        }
                    }
                },
                {
                    "name": "Execute Nepal DTH Television (Type 2)",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "x-auth-token",
                                "value": "{{auth_token}}"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"operator_id\": 36,\n    \"operator_type_id\": 2,\n    \"connection_no\": \"10001234567\",\n    \"amount\": 399,\n    \"reference_no\": \"ORD-DTH-1790579683\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        },
                        "url": {
                            "raw": "{{base_url}}/np/recharge/execute",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "np",
                                "recharge",
                                "execute"
                            ]
                        }
                    }
                },
                {
                    "name": "Execute Nepal Internet / ISP (Type 5)",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "x-auth-token",
                                "value": "{{auth_token}}"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"operator_id\": 20,\n    \"operator_type_id\": 5,\n    \"connection_no\": \"online_renew\",\n    \"package_id\": 800011,\n    \"amount\": 4520,\n    \"reference_no\": \"ORD-ISP-1790579683\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        },
                        "url": {
                            "raw": "{{base_url}}/np/recharge/execute",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "np",
                                "recharge",
                                "execute"
                            ]
                        }
                    }
                },
                {
                    "name": "Fetch Live Packages for Operator (Type 3 Data Packs)",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "x-auth-token",
                                "value": "{{auth_token}}"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"operator_id\": 8,\n    \"operator_type_id\": 3,\n    \"connection_no\": \"9747673099\",\n    \"reference_no\": \"PKG1790592742191\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        },
                        "url": {
                            "raw": "{{base_url}}/np/recharge/package",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "np",
                                "recharge",
                                "package"
                            ]
                        }
                    }
                },
                {
                    "name": "Fetch Live Packages for Operator (Type 5 Internet / ISP)",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "x-auth-token",
                                "value": "{{auth_token}}"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"operator_id\": 20,\n    \"operator_type_id\": 5,\n    \"connection_no\": \"online_renew\",\n    \"reference_no\": \"PKG-ISP-1790592742\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        },
                        "url": {
                            "raw": "{{base_url}}/np/recharge/package",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "np",
                                "recharge",
                                "package"
                            ]
                        }
                    }
                }
            ]
        },
        {
            "name": "3. Utility & Operator Catalogs (Secured)",
            "item": [
                {
                    "name": "List All Operators",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "x-auth-token",
                                "value": "{{auth_token}}"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/np/utility/operators",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "np",
                                "utility",
                                "operators"
                            ]
                        }
                    }
                },
                {
                    "name": "List Operator Categories / Types",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "x-auth-token",
                                "value": "{{auth_token}}"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/np/utility/operators/type",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "np",
                                "utility",
                                "operators",
                                "type"
                            ]
                        }
                    }
                },
                {
                    "name": "Get Plans for Operator",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "x-auth-token",
                                "value": "{{auth_token}}"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/utility/operators/2/plans",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "utility",
                                "operators",
                                "2",
                                "plans"
                            ]
                        }
                    }
                }
            ]
        }
    ]
}