OneBiz Hub — Developer Portal

ระบบข้อมูลกลาง: ที่อยู่ · อัตราแลกเปลี่ยน · วันหยุด · กฎภาษี · ธนาคาร · e-Tax · นิติบุคคล — API เดียวสำหรับ OneBiz ERP, OneBiz Go และแอปภายนอก (v1.0.0)

สถานะระบบ / Status

กำลังโหลด…

เริ่มต้นใช้งาน / Quick start

ขอ API key จาก OneBiz License (OB-LIC) — obh_live_… สำหรับ production, obh_test_… สำหรับ sandbox (ข้อมูลนิติบุคคลจำลอง ไม่คิดค่าบริการ). ส่งทุกคำขอด้วย header Authorization: Bearer <key>. วันที่รับได้ทั้ง ค.ศ. และ พ.ศ.; ต้องการผลลัพธ์เป็น พ.ศ. ใส่ ?date_system=be.

curl -H "Authorization: Bearer $HUB_KEY" "https://hub.onebiz.info/v1/registry/verify/0105560012342?branch=00000"
curl -H "Authorization: Bearer $HUB_KEY" -X POST https://hub.onebiz.info/v1/rates/select \
     -H 'content-type: application/json' -d '{"currency":"USD","document_date":"2569-09-28","direction":"sale"}'
curl -H "Authorization: Bearer $HUB_KEY" "https://hub.onebiz.info/v1/datasets/fx.bot.daily/changes?since=$CURSOR"
pip install onebiz-hub-sdk
from onebiz_hub_sdk import HubClient, validate_tax_id
hub = HubClient("https://hub.onebiz.info", "obh_live_…")
validate_tax_id("0105560012342")          # offline checksum
hub.verify_partner("0105560012342")        # DBD + RD + branches + Odoo autofill payload
for page in hub.iter_changes("calendar.bank_holiday", cursor): ...

Envelope

ทุก record: dataset, key, version, valid_from, valid_to, payload, source, fetched_at, published_at, checksum ("sha256:" canonical JSON), stale, stale_since, deleted. Delta sync ด้วย /changes?since=<cursor>; initial load ด้วย /snapshot; webhook ลงลายมือชื่อ X-OneBiz-Signature: sha256=HMAC(secret, body).

Plans & scopes

PlanScopesRate limitMonthly quotas
Included (ทุก tenant)addr:read, rate:read, calendar:read, rule:read, bank:read, etax:read, registry:verify, webhook:manage, usage:read, insight:contribute60/minregistry:verify: 200
Proaddr:read, rate:read, calendar:read, rule:read, bank:read, etax:read, registry:verify, webhook:manage, usage:read, insight:contribute, hs:read, radar:check, ai:use, insight:read300/minregistry:verify: ∞, radar:check: 500, ai:use: 2000
Enterpriseaddr:read, rate:read, calendar:read, rule:read, bank:read, etax:read, registry:verify, webhook:manage, usage:read, insight:contribute, hs:read, radar:check, ai:use, insight:read, net:exchange1200/minregistry:verify: ∞, radar:check: 5000, ai:use: 20000
External APIusage:read, webhook:manage120/minregistry:verify: 1000
Sandboxaddr:read, ai:use, bank:read, calendar:read, etax:read, hs:read, insight:contribute, insight:read, net:exchange, radar:check, rate:read, registry:verify, rule:read, usage:read, webhook:manage60/minregistry:verify: 1000, radar:check: 200, ai:use: 200

Datasets

NameTitleLayerScopeCadenceDeliveryVersionPhase
addr.change_logบันทึกการเปลี่ยนแปลงเขตการปกครอง
Administrative change log
referenceaddr:readตามประกาศdelta0Phase 2
addr.districtอำเภอ / เขต
Districts (amphoe / khet)
referenceaddr:readรายปีsnapshot+delta1Phase 1
addr.provinceจังหวัด
Provinces
referenceaddr:readรายปีsnapshot+delta1Phase 1
addr.regionภาค
Regions
referenceaddr:readรายปีsnapshot+delta1Phase 2
addr.subdistrictตำบล / แขวง
Sub-districts (tambon / khwaeng)
referenceaddr:readรายปีsnapshot+delta1Phase 1
bank.branchสาขาธนาคาร
Bank branches
referencebank:readตามการเปลี่ยนแปลงsnapshot+delta0Phase 2
bank.cheque_clearingกฎวันเคลียริ่งเช็ค
Cheque clearing rules
referencebank:readตามประกาศdelta0Phase 3
bank.feeค่าธรรมเนียมโอนอ้างอิง
Bank fee reference
referencebank:readตามประกาศdelta0Phase 3
bank.masterธนาคารในประเทศไทย
Bank master
referencebank:readตามการเปลี่ยนแปลงsnapshot+delta0Phase 1
bank.payment_formatรูปแบบไฟล์โอนเงินเป็นชุด
Bulk payment file templates
referencebank:readตามการเปลี่ยนแปลงdelta0Phase 2
bank.payment_gatewayรายชื่อ payment gateway
Payment gateway directory
referencebank:readตามการเปลี่ยนแปลงdelta0Phase 3
bank.statement_formatรูปแบบ statement ธนาคาร
Bank statement formats
referencebank:readตามการเปลี่ยนแปลงdelta0Phase 2
calendar.bank_holidayวันหยุดสถาบันการเงิน
Financial-institution holidays
livecalendar:readรายปี + พิเศษdelta0Phase 1
calendar.dbd_filingกำหนดยื่นงบการเงิน / บอจ.5 / ประชุมผู้ถือหุ้น
DBD annual filing deadlines
rulescalendar:readรายปีdelta0Phase 2
calendar.gov_holidayวันหยุดราชการ
Government holidays
livecalendar:readรายปี + พิเศษdelta0Phase 1
calendar.regional_holidayวันหยุดเฉพาะพื้นที่
Regional holidays
livecalendar:readรายปีdelta0Phase 3
calendar.sso_deadlineกำหนดนำส่งเงินสมทบประกันสังคม
Social security deadlines
rulescalendar:readสร้างจากกฎ + วันหยุดdelta0Phase 1
calendar.tax_deadlineกำหนดยื่นภาษี
Tax filing deadlines
rulescalendar:readสร้างจากกฎ + วันหยุดdelta0Phase 1
commodity.referenceราคาอ้างอิงสินค้าโภคภัณฑ์
Commodity reference prices
liverate:readรายวันdelta0Phase 3
etax.certificate_authorityผู้ให้บริการออกใบรับรอง (CA)
Accepted certificate authorities
referenceetax:readตามประกาศdelta0Phase 2
etax.countryรหัสประเทศ ISO 3166
Country codes (ISO 3166)
referenceetax:readรายปีsnapshot+delta1Phase 1
etax.currencyรหัสสกุลเงิน ISO 4217
Currency codes (ISO 4217)
referenceetax:readรายปีsnapshot+delta1Phase 1
etax.document_typeรหัสประเภทเอกสาร e-Tax
e-Tax document type codes
referenceetax:readตามประกาศsnapshot+delta0Phase 1
etax.reason_codeรหัสเหตุผลใบเพิ่มหนี้/ใบลดหนี้
Debit/credit note reason codes
referenceetax:readตามประกาศsnapshot+delta0Phase 1
etax.registrantผู้ประกอบการที่ได้รับอนุมัติ e-Tax Invoice
e-Tax invoice registrants
referenceregistry:verifyรายเดือนdelta0Phase 2
etax.schema_versionทะเบียนเวอร์ชัน schema e-Tax
e-Tax schema versions
referenceetax:readตามประกาศdelta0Phase 1
etax.service_providerผู้ให้บริการนำส่ง e-Tax ที่ได้รับอนุมัติ
Approved e-Tax service providers
referenceetax:readตามประกาศdelta0Phase 2
etax.tax_typeรหัสประเภท/หมวดภาษี
Tax type & category codes
referenceetax:readตามประกาศsnapshot+delta0Phase 1
etax.unit_codeรหัสหน่วยสินค้า (UN/ECE Rec.20)
Unit codes (UN/ECE Rec.20)
referenceetax:readรายปีsnapshot+delta1Phase 1
fx.bot.dailyอัตราแลกเปลี่ยนเฉลี่ย ธปท. รายวัน
BOT daily average exchange rates
liverate:readรายวัน (วันทำการ)delta0Phase 1
fx.bot.month_endอัตราแลกเปลี่ยนสิ้นเดือน (สำหรับ revaluation)
Month-end revaluation rates
liverate:readรายเดือนdelta0Phase 2
fx.customsอัตราแลกเปลี่ยนกรมศุลกากร
Customs exchange rates
liverate:readตามรอบประกาศdelta0Phase 1
hs.codeพิกัดศุลกากร
Customs tariff (HS code)
referencehs:readตามปีพิกัดsnapshot+delta1Phase 2
radar.bankruptcyประกาศล้มละลาย/พิทักษ์ทรัพย์ (นิติบุคคล)
Bankruptcy / receivership notices
networkradar:checkรายวัน–รายสัปดาห์lookup0Phase 2
radar.sanctionsรายชื่อบุคคลที่ถูกกำหนด (สาธารณะ)
Designated persons list (public)
networkradar:checkรายสัปดาห์lookup0Phase 3
rate.bank_lendingอัตราดอกเบี้ยเงินกู้ MLR/MOR/MRR
Bank lending rates
liverate:readตามประกาศธนาคารdelta0Phase 2
rate.bot_policyอัตราดอกเบี้ยนโยบาย
BOT policy rate
liverate:readตามการประชุม กนง.delta0Phase 2
ref.tsicรหัสประเภทอุตสาหกรรม TSIC
Thailand Standard Industrial Classification
referenceregistry:verifyตามประกาศsnapshot+delta1Phase 1
registry.juristicข้อมูลนิติบุคคล
Juristic persons (lookup)
networkregistry:verifyตามคำขอ + cache 30 วันlookup0Phase 1
rule.citอัตราภาษีเงินได้นิติบุคคล
Corporate income tax tiers
rulesrule:readตามประกาศdelta0Phase 1
rule.deductionค่าลดหย่อนภาษี
PIT deduction catalogue
rulesrule:readรายปีภาษีdelta0Phase 1
rule.efiling_extensionกฎขยายเวลายื่นทางอินเทอร์เน็ต
e-Filing extension rules
rulesrule:readตามประกาศdelta0Phase 1
rule.efiling_formatรูปแบบไฟล์ยื่นแบบ ภ.ง.ด.3/53
e-Filing upload file format
rulesrule:readตามประกาศdelta0Phase 1
rule.filing_scheduleกำหนดการยื่นแบบ (กฎ)
Filing schedule rules
rulesrule:readตามประกาศdelta0Phase 1
rule.form_mappingประเภทเงินได้ ↔ แบบ ภ.ง.ด.
Income type → WHT form
rulesrule:readตามประกาศdelta0Phase 1
rule.fx_79_4กฎการเลือกอัตราแลกเปลี่ยนตามมาตรา 79/4
Revenue Code s.79/4 FX rule
rulesrate:readตามประกาศdelta0Phase 1
rule.goldenชุดตัวอย่างคำนวณ (golden test cases)
Golden test cases
rulesrule:readตามการเปลี่ยนกฎdelta0Phase 2
rule.local_taxภาษีท้องถิ่น (อัตราอ้างอิง)
Local tax reference
rulesrule:readตามประกาศdelta0Phase 3
rule.min_wageค่าแรงขั้นต่ำรายจังหวัด
Minimum wage by province
rulesrule:readตามประกาศdelta0Phase 1
rule.pitขั้นภาษีเงินได้บุคคลธรรมดา
Personal income tax brackets
rulesrule:readรายปีภาษีdelta0Phase 1
rule.provident_fundเกณฑ์กองทุนสำรองเลี้ยงชีพ
Provident fund rules
rulesrule:readตามประกาศdelta0Phase 2
rule.ssoอัตราเงินสมทบประกันสังคม
Social security contribution
rulesrule:readตามประกาศdelta0Phase 1
rule.stamp_dutyตารางอากรแสตมป์
Stamp duty table
rulesrule:readตามประกาศdelta0Phase 2
rule.statutory_interestดอกเบี้ยตามกฎหมาย (ป.พ.พ.)
Statutory interest (Civil Code)
rulesrate:readทุก 3 ปีdelta0Phase 2
rule.tfrs_noteบันทึกอ้างอิงมาตรฐาน TFRS
TFRS reference notes
rulesrule:readตามการเปลี่ยนแปลงdelta0Phase 3
rule.vatอัตราภาษีมูลค่าเพิ่ม
VAT rates
rulesrule:readตามประกาศdelta0Phase 1
rule.vat_exemptหมวดยกเว้น VAT มาตรา 81
VAT exemptions (s.81)
rulesrule:readตามประกาศdelta0Phase 1
rule.whtอัตราภาษีหัก ณ ที่จ่าย
Withholding tax matrix
rulesrule:readตามประกาศdelta1Phase 1
rule.wht_thresholdเกณฑ์ขั้นต่ำการหักภาษี ณ ที่จ่าย
WHT thresholds
rulesrule:readตามประกาศdelta1Phase 1

Errors

{"error": {"code": "SCOPE_DENIED", "message": "...", "details": ..., "request_id": "..."}} — 401 UNAUTHORIZED / KEY_REVOKED · 403 SCOPE_DENIED · 404 RECORD_NOT_FOUND / NOT_EFFECTIVE / RULE_NOT_FOUND · 422 VALIDATION_ERROR · 429 RATE_LIMITED / QUOTA_EXCEEDED (พร้อม Retry-After, X-RateLimit-*).

นโยบายเวอร์ชัน: เปลี่ยนแบบ additive ใน /v1; การเปลี่ยนที่ทำลายความเข้ากันได้จะออก /v2 และคง /v1 อย่างน้อย 6 เดือนพร้อม header Deprecation/Sunset.

Changelog

—
Generated 2026-09-28T01:28:25.695569+00:00 · Hub เป็นข้อมูลอ้างอิงจากแหล่งทางการที่แสดง provenance ทุกค่า ผู้ใช้ยังคงรับผิดชอบการยื่นภาษีและการตัดสินใจทางธุรกิจ