Skip to content

7.5 Max TV API Documentation

Overview

This document describes the multi-step API for fetching details and processing payments related to Max TV services. It includes request and response formats for both the Detail Fetch API and the Payment API.

Detail Fetch API

Request URL: {{base_url}}/api/servicegroup/details/max-tv/
Request Method: POST

Service Params


{
    "token": "token",
    "customer_id": "0000405146",  // (Numeric value)
    "reference": "unique reference id"
}

Response


{
    "customer_name": "vod test All",
    "cid_stb_smartcard": "0000405146",
    "amount": 600,
    "tvs": [
        {
            "stb_no": "6030637000423863",
            "smartcard_no": "6030637000423863"
        }
    ],
    "session_id": 51,
    "status": true
}

Error Response


{
    "status": false,
    "error_code": "4000",
    "message": "Can't fulfill request",
    "error": "client_error",
    "details": "Invalid customer id / stb no. / smartcard no.",
    "error_data": {},
    "state": "Error"
}

Payment API

Request URL: {{base_url}}/api/use/max-tv/
Request Method: POST

Service Params


{
    "token": "token",
    "customer_id": "0000405146",
    "amount": 100,
    "session_id": 51,
    "reference": "unique reference id"
}

Response


{
    "status": true,
    "state": "Success",
    "message": "Successfully Completed Transaction",
    "extra_data": {},
    "detail": "Successful",
    "id": 5035
}