{
  "info": {
    "_postman_id": "9bad6559-5687-4e1b-a880-e0d36e5cdadd",
    "name": "Backend Game API - Final Catalog Admin Complete",
    "description": "ครบทุกเส้น Public / Customer / Admin Customer / Admin Game Catalog ตาม backend/api.php",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "_exporter_id": "12870228",
    "_collection_link": "https://go.postman.co/collection/12870228-9bad6559-5687-4e1b-a880-e0d36e5cdadd?source=collection_link"
  },
  "item": [
    {
      "name": "Public",
      "item": [
        {
          "name": "Health",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}?action=health",
              "host": [
                "{{base_url}}"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "health"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Public Categories",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}?action=public_categories",
              "host": [
                "{{base_url}}"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "public_categories"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Public Game Menus",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}?action=public_game_menus",
              "host": [
                "{{base_url}}"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "public_game_menus"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Public Providers",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}?action=public_providers",
              "host": [
                "{{base_url}}"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "public_providers"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Public Providers by Type Slot",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}?action=public_providers&type=slot",
              "host": [
                "{{base_url}}"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "public_providers"
                },
                {
                  "key": "type",
                  "value": "slot"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Public Games PG",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}?action=public_games&provider=pg",
              "host": [
                "{{base_url}}"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "public_games"
                },
                {
                  "key": "provider",
                  "value": "pg"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Public Games PG Refresh",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}?action=public_games&provider=pg&refresh=1",
              "host": [
                "{{base_url}}"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "public_games"
                },
                {
                  "key": "provider",
                  "value": "pg"
                },
                {
                  "key": "refresh",
                  "value": "1"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Public Games Direct Provider SA",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}?action=public_games&provider=sa",
              "host": [
                "{{base_url}}"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "public_games"
                },
                {
                  "key": "provider",
                  "value": "sa"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Public Game Menus - includes special",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/api.php?action=public_game_menus",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api.php"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "public_game_menus"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Public Providers - Special",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/api.php?action=public_providers&type=special",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api.php"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "public_providers"
                },
                {
                  "key": "type",
                  "value": "special"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Public Games - Joker Special",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/api.php?action=public_games&provider=joker&type=special",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api.php"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "public_games"
                },
                {
                  "key": "provider",
                  "value": "joker"
                },
                {
                  "key": "type",
                  "value": "special"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Public Games - EP Special",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/api.php?action=public_games&provider=ep&type=special",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api.php"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "public_games"
                },
                {
                  "key": "provider",
                  "value": "ep"
                },
                {
                  "key": "type",
                  "value": "special"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Public Games - sort popular",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/api.php?action=public_games&provider=joker&type=slot&sort=popular&order=desc",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api.php"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "public_games"
                },
                {
                  "key": "provider",
                  "value": "joker"
                },
                {
                  "key": "type",
                  "value": "slot"
                },
                {
                  "key": "sort",
                  "value": "popular"
                },
                {
                  "key": "order",
                  "value": "desc"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Public Games - sort name asc",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/api.php?action=public_games&provider=joker&type=slot&sort=name&order=asc",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api.php"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "public_games"
                },
                {
                  "key": "provider",
                  "value": "joker"
                },
                {
                  "key": "type",
                  "value": "slot"
                },
                {
                  "key": "sort",
                  "value": "name"
                },
                {
                  "key": "order",
                  "value": "asc"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Public Games - sort new",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/api.php?action=public_games&provider=ds&type=slot&sort=new&order=desc",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api.php"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "public_games"
                },
                {
                  "key": "provider",
                  "value": "ds"
                },
                {
                  "key": "type",
                  "value": "slot"
                },
                {
                  "key": "sort",
                  "value": "new"
                },
                {
                  "key": "order",
                  "value": "desc"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Public Providers - search brand keyword",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}/api.php?action=public_providers&type=slot&keyword=joker",
              "host": [
                "{{base_url}}"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "public_providers"
                },
                {
                  "key": "type",
                  "value": "slot"
                },
                {
                  "key": "keyword",
                  "value": "joker"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Public Games - search game keyword",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}/api.php?action=public_games&provider=joker&type=slot&keyword=mahjong&sort=name&order=asc",
              "host": [
                "{{base_url}}"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "public_games"
                },
                {
                  "key": "provider",
                  "value": "joker"
                },
                {
                  "key": "type",
                  "value": "slot"
                },
                {
                  "key": "keyword",
                  "value": "mahjong"
                },
                {
                  "key": "sort",
                  "value": "name"
                },
                {
                  "key": "order",
                  "value": "asc"
                }
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Customer",
      "item": [
        {
          "name": "Customer Register",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"action\": \"customer_register\",\n  \"username\": \"0817752955\",\n  \"password\": \"0817752955\",\n  \"fullname\": \"ทดสอบ ระบบ\",\n  \"phone_truewallet\": \"\",\n  \"bank_accnum\": \"1234567890\",\n  \"bank_type\": \"KTB\",\n  \"affiliate\": \"0.00\",\n  \"affiliate_invite_id\": 0\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{base_url}}?action=customer_register",
              "host": [
                "{{base_url}}"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "customer_register"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Customer Login",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"action\": \"customer_login\",\n  \"username\": \"0817752955\",\n  \"password\": \"0817752955\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{base_url}}?action=customer_login",
              "host": [
                "{{base_url}}"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "customer_login"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Customer Me",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}?action=customer_me",
              "host": [
                "{{base_url}}"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "customer_me"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Customer Balance",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}?action=customer_balance",
              "host": [
                "{{base_url}}"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "customer_balance"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Customer Lobbygame",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}?action=customer_lobbygame",
              "host": [
                "{{base_url}}"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "customer_lobbygame"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Customer Playgame Direct SA",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"action\": \"customer_playgame\",\n  \"provider\": \"sa\",\n  \"gamecode\": \"sa\",\n  \"language\": \"thai\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{base_url}}?action=customer_playgame",
              "host": [
                "{{base_url}}"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "customer_playgame"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Customer Playgame PG",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"action\": \"customer_playgame\",\n  \"provider\": \"pg\",\n  \"gamecode\": \"126\",\n  \"language\": \"thai\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{base_url}}?action=customer_playgame",
              "host": [
                "{{base_url}}"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "customer_playgame"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Customer Logout",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"action\": \"customer_logout\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{base_url}}?action=customer_logout",
              "host": [
                "{{base_url}}"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "customer_logout"
                }
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Admin Customer",
      "item": [
        {
          "name": "Admin Login",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"action\": \"admin_login\",\n  \"username\": \"admin\",\n  \"password\": \"0631631368\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{base_url}}?action=admin_login",
              "host": [
                "{{base_url}}"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "admin_login"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Admin Me",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}?action=admin_me",
              "host": [
                "{{base_url}}"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "admin_me"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Admin Customer Create",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"action\": \"admin_customer_create\",\n  \"username\": \"0822222222\",\n  \"password\": \"0822222222\",\n  \"fullname\": \"สมัครโดยแอดมิน\",\n  \"phone_truewallet\": \"\",\n  \"bank_accnum\": \"2222222222\",\n  \"bank_type\": \"KTB\",\n  \"affiliate\": \"0.00\",\n  \"affiliate_invite_id\": 0\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{base_url}}?action=admin_customer_create",
              "host": [
                "{{base_url}}"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "admin_customer_create"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Admin Customers List",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}?action=admin_customers_list&page=1&limit=20&keyword=",
              "host": [
                "{{base_url}}"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "admin_customers_list"
                },
                {
                  "key": "page",
                  "value": "1"
                },
                {
                  "key": "limit",
                  "value": "20"
                },
                {
                  "key": "keyword",
                  "value": ""
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Admin Customer Detail",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}?action=admin_customers_detail&id=1",
              "host": [
                "{{base_url}}"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "admin_customers_detail"
                },
                {
                  "key": "id",
                  "value": "1"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Admin Customer Update",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"action\": \"admin_customers_update\",\n  \"id\": 1,\n  \"username\": \"0817752955\",\n  \"fullname\": \"แก้ไขชื่อ\",\n  \"phone_truewallet\": \"\",\n  \"bank_accnum\": \"1234567890\",\n  \"bank_type\": \"KTB\",\n  \"affiliate\": \"0.00\",\n  \"affiliate_invite_id\": 0,\n  \"status\": 1\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{base_url}}?action=admin_customers_update",
              "host": [
                "{{base_url}}"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "admin_customers_update"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Admin Customer Balance",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}?action=admin_customer_balance&id=1",
              "host": [
                "{{base_url}}"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "admin_customer_balance"
                },
                {
                  "key": "id",
                  "value": "1"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Admin Credit Add",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"action\": \"admin_customer_credit_add\",\n  \"id\": 1,\n  \"amount\": \"10.00\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{base_url}}?action=admin_customer_credit_add",
              "host": [
                "{{base_url}}"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "admin_customer_credit_add"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Admin Credit Subtract",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"action\": \"admin_customer_credit_subtract\",\n  \"id\": 1,\n  \"amount\": \"5.00\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{base_url}}?action=admin_customer_credit_subtract",
              "host": [
                "{{base_url}}"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "admin_customer_credit_subtract"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Admin Credit Logs",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}?action=admin_customer_credit_logs&id=1&page=1&limit=20",
              "host": [
                "{{base_url}}"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "admin_customer_credit_logs"
                },
                {
                  "key": "id",
                  "value": "1"
                },
                {
                  "key": "page",
                  "value": "1"
                },
                {
                  "key": "limit",
                  "value": "20"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Admin Logout",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"action\": \"admin_logout\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{base_url}}?action=admin_logout",
              "host": [
                "{{base_url}}"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "admin_logout"
                }
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Admin Game Catalog",
      "item": [
        {
          "name": "Admin Game Providers",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}?action=admin_game_providers",
              "host": [
                "{{base_url}}"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "admin_game_providers"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Admin Game Providers by Type Slot",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}?action=admin_game_providers&type=slot",
              "host": [
                "{{base_url}}"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "admin_game_providers"
                },
                {
                  "key": "type",
                  "value": "slot"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Admin Game Provider Toggle Off",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"action\": \"admin_game_provider_toggle\",\n  \"provider\": \"pg\",\n  \"enabled\": false\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{base_url}}?action=admin_game_provider_toggle",
              "host": [
                "{{base_url}}"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "admin_game_provider_toggle"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Admin Game Provider Toggle On",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"action\": \"admin_game_provider_toggle\",\n  \"provider\": \"pg\",\n  \"enabled\": true\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{base_url}}?action=admin_game_provider_toggle",
              "host": [
                "{{base_url}}"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "admin_game_provider_toggle"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Admin Game Provider Reorder",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"action\": \"admin_game_provider_reorder\",\n  \"items\": [\n    {\n      \"provider\": \"pg\",\n      \"sort_order\": 1\n    },\n    {\n      \"provider\": \"sa\",\n      \"sort_order\": 2\n    },\n    {\n      \"provider\": \"bfs\",\n      \"sort_order\": 3\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{base_url}}?action=admin_game_provider_reorder",
              "host": [
                "{{base_url}}"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "admin_game_provider_reorder"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Admin Game Sort List",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/api.php?action=admin_game_sort_list&provider=joker&type=slot&sort=popular&order=desc",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api.php"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "admin_game_sort_list"
                },
                {
                  "key": "provider",
                  "value": "joker"
                },
                {
                  "key": "type",
                  "value": "slot"
                },
                {
                  "key": "sort",
                  "value": "popular"
                },
                {
                  "key": "order",
                  "value": "desc"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Admin Game Sort Update",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"action\": \"admin_game_sort_update\",\n  \"provider\": \"joker\",\n  \"items\": [\n    {\n      \"gamecode\": \"92\",\n      \"sort_order\": 999,\n      \"enabled\": true,\n      \"is_hot\": true,\n      \"is_new\": false,\n      \"is_recommend\": true\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{base_url}}/api.php?action=admin_game_sort_update",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api.php"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "admin_game_sort_update"
                }
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Customer WinLose & Refund",
      "item": [
        {
          "name": "Customer WinLose - All Providers",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}?action=customer_winlose&start=2026-07-11%2000:00:00&end=2026-07-11%2023:59:59",
              "host": [
                "{{base_url}}"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "customer_winlose"
                },
                {
                  "key": "start",
                  "value": "2026-07-11 00:00:00"
                },
                {
                  "key": "end",
                  "value": "2026-07-11 23:59:59"
                }
              ]
            },
            "description": ""
          },
          "response": []
        },
        {
          "name": "Customer WinLose - By Providers",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}?action=customer_winlose_games&start=2026-07-11%2000:00:00&end=2026-07-11%2023:59:59",
              "host": [
                "{{base_url}}"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "customer_winlose_games"
                },
                {
                  "key": "start",
                  "value": "2026-07-11 00:00:00"
                },
                {
                  "key": "end",
                  "value": "2026-07-11 23:59:59"
                }
              ]
            },
            "description": ""
          },
          "response": []
        },
        {
          "name": "Customer Refund List",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}?action=customer_refunds&page=1&limit=20",
              "host": [
                "{{base_url}}"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "customer_refunds"
                },
                {
                  "key": "page",
                  "value": "1"
                },
                {
                  "key": "limit",
                  "value": "20"
                }
              ]
            },
            "description": ""
          },
          "response": []
        },
        {
          "name": "Customer Refund Available",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}?action=customer_refunds&status=available&page=1&limit=20",
              "host": [
                "{{base_url}}"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "customer_refunds"
                },
                {
                  "key": "status",
                  "value": "available"
                },
                {
                  "key": "page",
                  "value": "1"
                },
                {
                  "key": "limit",
                  "value": "20"
                }
              ]
            },
            "description": ""
          },
          "response": []
        },
        {
          "name": "Customer Refund Detail",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}?action=customer_refund_detail&refund_id=1",
              "host": [
                "{{base_url}}"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "customer_refund_detail"
                },
                {
                  "key": "refund_id",
                  "value": "1"
                }
              ]
            },
            "description": ""
          },
          "response": []
        },
        {
          "name": "Customer Refund Claim",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}",
              "host": [
                "{{base_url}}"
              ]
            },
            "description": "",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"action\": \"customer_refund_claim\",\n  \"refund_id\": 1\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Admin WinLose & Refund",
      "item": [
        {
          "name": "Admin Customer WinLose - All Providers",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}?action=admin_customer_winlose&customer_id=1&start=2026-07-11%2000:00:00&end=2026-07-11%2023:59:59",
              "host": [
                "{{base_url}}"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "admin_customer_winlose"
                },
                {
                  "key": "customer_id",
                  "value": "1"
                },
                {
                  "key": "start",
                  "value": "2026-07-11 00:00:00"
                },
                {
                  "key": "end",
                  "value": "2026-07-11 23:59:59"
                }
              ]
            },
            "description": ""
          },
          "response": []
        },
        {
          "name": "Admin Customer WinLose - By Providers",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}?action=admin_customer_winlose_games&customer_id=1&start=2026-07-11%2000:00:00&end=2026-07-11%2023:59:59",
              "host": [
                "{{base_url}}"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "admin_customer_winlose_games"
                },
                {
                  "key": "customer_id",
                  "value": "1"
                },
                {
                  "key": "start",
                  "value": "2026-07-11 00:00:00"
                },
                {
                  "key": "end",
                  "value": "2026-07-11 23:59:59"
                }
              ]
            },
            "description": ""
          },
          "response": []
        },
        {
          "name": "Admin Refund List",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}?action=admin_refunds_list&page=1&limit=20",
              "host": [
                "{{base_url}}"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "admin_refunds_list"
                },
                {
                  "key": "page",
                  "value": "1"
                },
                {
                  "key": "limit",
                  "value": "20"
                }
              ]
            },
            "description": ""
          },
          "response": []
        },
        {
          "name": "Admin Refund List - Available",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}?action=admin_refunds_list&claim_status=available&page=1&limit=20",
              "host": [
                "{{base_url}}"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "admin_refunds_list"
                },
                {
                  "key": "claim_status",
                  "value": "available"
                },
                {
                  "key": "page",
                  "value": "1"
                },
                {
                  "key": "limit",
                  "value": "20"
                }
              ]
            },
            "description": ""
          },
          "response": []
        },
        {
          "name": "Admin Refund Detail",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}?action=admin_refund_detail&refund_id=1",
              "host": [
                "{{base_url}}"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "admin_refund_detail"
                },
                {
                  "key": "refund_id",
                  "value": "1"
                }
              ]
            },
            "description": ""
          },
          "response": []
        }
      ]
    }
  ],
  "event": [
    {
      "listen": "prerequest",
      "script": {
        "type": "text/javascript",
        "packages": {},
        "requests": {},
        "exec": [
          ""
        ]
      }
    },
    {
      "listen": "test",
      "script": {
        "type": "text/javascript",
        "packages": {},
        "requests": {},
        "exec": [
          ""
        ]
      }
    }
  ],
  "variable": [
    {
      "key": "base_url",
      "value": "http://localhost/backend/api.php"
    }
  ]
}