Murah, Cepat dan Aman

LOGIN  |  REGISTER

API Documentation


The API is organized around REST. Our API has predictable, resource-oriented URLs, and uses HTTP response codes to indicate API errors. We use built-in HTTP features and HTTP verbs, which are understood by off-the-shelf HTTP clients. JSON is returned by all API responses, including errors.


Example Response:
            
                {
                    "userid": "DV-1082",
                    "name": "Aziz Lukmanto",
                    "email": "aziz@lukmanto.com",
                    "phone": "085634567890",
                    "balance": 151271,
                    "created_at": "2020-06-16 03:15:22",
                    "updated_at": "2020-07-04 11:59:37"
                }
            
        
Required Parameters:
            
                {
                    "product": "ML3",
                    "game_id": "A123",
                    "phone": "081234567890",
                    "email": "email@domain.com",
                }
            
        
Example Request:
            
                $ch = curl_init();

                curl_setopt($ch, CURLOPT_URL, "https://vouchergame.id/api/order");
                curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
                curl_setopt($ch, CURLOPT_HEADER, FALSE);

                curl_setopt($ch, CURLOPT_POST, TRUE);

                curl_setopt($ch, CURLOPT_POSTFIELDS, {
                    \"product\": \"ML3\",
                    \"game_id\": \"0112345\",
                    \"phone\": \"081234567890\",
                    \"email\": \"email@domain.com\",
                });

                curl_setopt($ch, CURLOPT_HTTPHEADER, array(
                "Content-Type: application/json"
                ));

                $response = curl_exec($ch);
                curl_close($ch);

                var_dump($response);
            
        
Example Response:
            
                {
                    "status": "success",
                    "data": "trx_id #852899 will be proccess..."
                }
            
        
Example Response:
            
                {
                    "status": "success",
                    "data": [
                        {
                            "trx_id": "838771",
                            "date": "2020-07-04 11:59:31",
                            "total": 800,
                            "product": "ML3",
                            "game_id": "A123",
                            "phone": "081234567890",
                            "email": "email@domain.com",
                            "status": 1,
                            "sn": null
                        }
                    ]
                }
            
        
Example Response:
            
                {
                    "status": "success",
                    "data": [
                        {
                            "date": "2020-07-04 11:59:31",
                            "total": "Rp 800",
                            "type": "Debet",
                            "notes": "Order ML3",
                            "balance": 151271
                        }
                    ]
                }
            
        
Copyright © 2020 Vouchergame.id - Murah, Cepat dan Aman