---
title: Web API
description: "## Authentication (ยืนยันตัวตน) | URL | /gapi/v1/authen | | --- | --- | | Method | POST | Header : | Name | Required | Type | Description | | --- | --- | --- | --- | | Authorization…"
url: "https://gestampduty.com/docs/web-api/"
updated: "2025-08-08"
category: Input Data
---

# Web API

## Authentication (ยืนยันตัวตน)

| URL | /gapi/v1/authen |
| --- | --- |
| Method | POST |

Header :

| Name | Required | Type | Description |
| --- | --- | --- | --- |
| Authorization | Yes | String | ขึ้นต้นด้วย "Basic<1 space>" ต่อด้วย username “:” password ที่เข้ารหัสด้วย base64   เช่น Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ== |

Responses :

| Code | Description |
| --- | --- |
| 200 | Successfully |
| 401 | Unauthorized - The user was not found or incorrect |
| 403 | Forbidden – The user is not allow to use the API. |
| 404 | Not found - The token was not found or incorrect |

## Upload file (นำเข้าข้อมูล)

| URL | /gapi/v1/uploadfile |
| --- | --- |
| Method | POST |

Parameter :

| Name | Required | Type | Description |
| --- | --- | --- | --- |
| file | Yes | String | ไฟล์ที่ถูกแปลงเป็น string binary |
| userId | Yes | String | รหัสผู้ใช้งาน |
| companyAbbr | Yes | String | ชื่อย่อบริษัท (Abbr) ที่อยู่ใน Account Information |
| groupName | Yes | String | ชื่อกลุ่มผู้ใช้งาน ที่อยู่ใน Account Information |

Responses :

| Code | Description |
| --- | --- |
| 202 | Accepted |
| 401 | Unauthorized |
| 403 | Forbidden – The user is not allow to use the API. |
| 404 | Not found |
