Appearance
Games API
ดึงข้อมูลสินค้า / แพ็กเกจเกมที่มีในระบบ
Auth required:
x-partner-id+x-signature— ดู Authentication
GET /games
ดึงรายการเกมทั้งหมด
Request
http
GET https://vendor.p2wtopup.com/api/v1/games
x-partner-id: {PARTNER_ID}
x-signature: {SIGNATURE}Response 200
json
{
"success": true,
"statusCode": 200,
"code": "OK",
"data": [
{
"id": "ROLTH",
"name": "Ragnarok Online Landverse",
"description": "",
"status": "sale",
"provider": [
{
"id": "A01",
"form": [
{
"type": "textbox",
"name": "gameid",
"placeHolder": "กรอก Game ID",
"title": "Game ID",
"required": true
},
{
"type": "select",
"name": "server",
"placeHolder": "กรุณาเลือก Server",
"title": "เลือก Server",
"option": [
{
"value": "",
"text": "กรุณาเลือก Server"
},
{
"value": "1",
"text": "Bigfoot"
}
],
"required": true
}
],
"order": 1,
"status": "sale"
}
]
},
],
"timestamp": "2026-03-16T10:00:00Z"
}GET /games/:id
ดึงรายละเอียดสินค้าตาม ID
Request
http
GET https://vendor.p2wtopup.com/api/v1/games/{id}
x-partner-id: {PARTNER_ID}
x-signature: {SIGNATURE}Path Parameters
| Parameter | Type | Required | คำอธิบาย |
|---|---|---|---|
id | string | ✅ | Game ID |
Response 200
URL: https://vendor.p2wtopup.com/api/v1/ROLTH
json
{
"success": true,
"statusCode": 200,
"code": "OK",
"data": [
{
"id": "ROLTH",
"name": "Ragnarok Online Landverse",
"provider": "A01",
"packages": [
{
"id": "ROLTH_A01_P001",
"name": "1,000 moonstone",
"price": 291.15,
"status": "sale"
},
{
"id": "ROLTH_A01_P002",
"name": "3,000 moonstone + 60 bonus",
"price": 970.5,
"status": "sale"
},
...
]
},
...
]
"timestamp": "2026-03-16T10:00:00Z"
}