Get Company Payment Accounts
ดึงรายการบัญชีธนาคารของบริษัทที่ใช้สำหรับการจ่ายเงินเดือนและการชำระเงินต่างๆ
Endpoint
GET /api/v1/open-apis/organization/get-list-company-payment-accountRequest Parameters
ไม่มี parameters
Response Format
Success Response (HTTP 200)
{
"code": 200,
"message": "สำเร็จ",
"payload": [
{
"company_payment_account_id": "1",
"company_payment_account_code": "ACC001",
"company_payment_account_name": "บัญชีจ่ายเงินเดือน",
"bank_id": "1",
"bank_code": "002",
"bank_global_code": "BKKB",
"account_detail_1": "1234567890",
"account_detail_2": null,
"account_detail_3": null,
"account_detail_4": null,
"account_detail_5": null
}
]
}Error Response (HTTP 400)
{
"code": 400,
"message": "ไม่สำเร็จ",
"error": "Error message here"
}Response Fields
| Field | Type | Description |
|---|---|---|
company_payment_account_id | string | รหัสบัญชีในระบบ |
company_payment_account_code | string | รหัสบัญชี |
company_payment_account_name | string | ชื่อบัญชี |
bank_id | string | รหัสธนาคารในระบบ |
bank_code | string | รหัสธนาคารมาตรฐาน |
bank_global_code | string | รหัสธนาคารสากล |
account_detail_1 | string/null | รายละเอียดบัญชี 1 (เช่น เลขที่บัญชี) |
account_detail_2 | string/null | รายละเอียดบัญชี 2 |
account_detail_3 | string/null | รายละเอียดบัญชี 3 |
account_detail_4 | string/null | รายละเอียดบัญชี 4 |
account_detail_5 | string/null | รายละเอียดบัญชี 5 |
Code Examples
cURL
curl -X GET "https://openapi.humansoft.co.th/api/v1/open-apis/organization/get-list-company-payment-account" \
-H "Ocp-Apim-Subscription-Key: YOUR_API_KEY"Notes
- ใช้สำหรับดึงข้อมูลบัญชีธนาคารของบริษัทที่ใช้จ่ายเงินเดือน
- ฟิลด์
account_detail_1-5สามารถเก็บข้อมูลเพิ่มเติมได้ตามความต้องการ - ถ้าไม่มีข้อมูล payload จะเป็น array ว่าง
[]
Related APIs
- Get Bank List - ดึงรายการธนาคาร
Last updated on