API Reference

OneCharge Partner API v1

REST + JSON ผ่าน HTTPS อ่านอย่างเดียว ทุก request ต้องมี API key และอ่านได้เฉพาะข้อมูลของทีมเจ้าของ key

Base URL

https://open-api.onecharge.co.th

การยืนยันตัวตน

Authorization: Bearer <key>เรื่อง key และ scope →

ลองเรียกจากหน้านี้

ใส่ test key ในช่องมุมขวาบน แล้วกด “ส่ง” ในแต่ละ endpoint

รูปแบบ response

รายการ

รายการ
{
  "data": [ … ],
  "pagination": {
    "limit": 100,
    "has_more": true,
    "next_cursor": "eyJ0Ijoi…"
  }
}

ชิ้นเดียว

JSON
{
  "data": { … }
}

Error

JSON
{
  "error": {
    "code": "not_found",
    "message": "Session not found",
    "request_id": "3f0c9d1e-…"
  }
}

เวลาเป็น UTC · ช่วง from–to ไม่เกิน 31 วัน · การแบ่งหน้า · ความหมายของ error