Welcome to

The best way to monetize

your private server

API Docs

To get started using the API, ensure that you have created your store and received your API key via the dashboard. You'll need to send this key with every request in the headers as Authorization: Bearer your_code_here. This lets us know who is using the api and thus getting you the correct information.

Api URL: https://api.runepay.app

GET /discounts

Returns a list of all discounts

Expected output:
                    
                    [
                        {
                            "id": 1,
                            "store_id": 1,
                            "code": "test",
                            "percentage": 10,
                            "start_time": 1615238100,
                            "expires": 1616274900,
                            "uses": null
                        }
                    ]
                    
                
Error output:
            
                { "error": "error message" }
            
        

GET /discounts/{code}

Returns a single discount based on the code

Expected output:
                    
                    {
                        "id": 1,
                        "store_id": 1,
                        "code": "test",
                        "percentage": 10,
                        "start_time": 1615238100,
                        "expires": 1616274900,
                        "uses": null
                    }
                    
                
Error output:
            
                { "error": "error message" }