{"id":13829330,"url":"https://zenateconnect.github.io/RevenueDepartmentService/","last_synced_at":"2025-07-09T09:33:00.657Z","repository":{"id":217322556,"uuid":"189838445","full_name":"ZenateConnect/RevenueDepartmentService","owner":"ZenateConnect","description":"ระบบจัดการ Service ของกรมสรรพากร โดยใช้ RESTful API .NET Core 2.2/3.1 ในการเชื่อมต่อกับ SOAP Web Service และแปลงข้อมูลให้อยู่ในรูปแบบของ JSON และใช้ Swagger","archived":false,"fork":false,"pushed_at":"2021-04-04T07:13:26.000Z","size":66,"stargazers_count":7,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-20T11:17:05.783Z","etag":null,"topics":["rd","rdws","revenue","revenue-api","revenue-department"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ZenateConnect.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-02T11:32:31.000Z","updated_at":"2022-09-27T08:27:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"2fb92075-fad5-4d3c-bedc-6f01539a9c6d","html_url":"https://github.com/ZenateConnect/RevenueDepartmentService","commit_stats":null,"previous_names":["zenateconnect/revenuedepartmentservice"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ZenateConnect/RevenueDepartmentService","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZenateConnect%2FRevenueDepartmentService","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZenateConnect%2FRevenueDepartmentService/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZenateConnect%2FRevenueDepartmentService/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZenateConnect%2FRevenueDepartmentService/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZenateConnect","download_url":"https://codeload.github.com/ZenateConnect/RevenueDepartmentService/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZenateConnect%2FRevenueDepartmentService/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264431252,"owners_count":23607207,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["rd","rdws","revenue","revenue-api","revenue-department"],"created_at":"2024-08-04T10:00:33.045Z","updated_at":"2025-07-09T09:33:00.317Z","avatar_url":"https://github.com/ZenateConnect.png","language":"C#","funding_links":[],"categories":["Government/Official Data"],"sub_categories":[],"readme":"# RESTful API กรมสรรพากร / The Revenue Department Service\n\nระบบจัดการ Service ของกรมสรรพากร โดยใช้ RESTful API ในการเชื่อมต่อกับ SOAP Web Service และแปลงข้อมูลให้อยู่ในรูปแบบของ JSON และใช้ Swagger\nCode ทั้งหมดนี้เป็นเพียง Code ตั้งต้น เพื่อนำไปต่อยอดต่อไป\n\nDocument ของกรมสรรพากร: \u003ca href='http://www.rd.go.th/publish/42545.0.html' target='_blank'\u003ehttp://www.rd.go.th/publish/42545.0.html\u003c/a\u003e\nAPI นี้จะประกอบไปด้วย Service ดังนี้ (รายละเอียดสามารถดูได้ตามลิงค์ที่แนบไว้)\n\n1. Common Service: \u003ca href='http://www.rd.go.th/publish/42539.0.html' target='_blank'\u003eคลิกเพื่อดู Document\u003c/a\u003e\n2. TIN Service: \u003ca href='http://www.rd.go.th/publish/42533.0.html' target='_blank'\u003eคลิกเพื่อดู Document\u003c/a\u003e\n3. VRT Service: \u003ca href='http://www.rd.go.th/publish/42534.0.html' target='_blank'\u003eคลิกเพื่อดู Document\u003c/a\u003e\n4. VAT Service: \u003ca href='http://www.rd.go.th/publish/42535.0.html' target='_blank'\u003eคลิกเพื่อดู Document\u003c/a\u003e\n5. GEM Service: \u003ca href='http://www.rd.go.th/publish/42532.0.html' target='_blank'\u003eคลิกเพื่อดู Document\u003c/a\u003e\n\n# Branch\n\n- master - .NET Core 2.2 (Legacy code)\n- Development - .NET Core 3.1 and update response follow RESTful API\n\n# Swagger Document\n\nสามารถดูรายละเอียดต่างๆของ API โดย \u003ca href='https://app.swaggerhub.com/apis-docs/sixnaskunz/RevenueDeptApi/v1' target='_blank'\u003eคลิกที่นี่\u003c/a\u003e\n\n# Software Requirement\n\n1. Visual Studio 2017 or latest\n2. .NET Core 2.2\n3. .NET Core Runtime 2.2\n4. Swashbuckle.AspNetCore v.4.0.1\n5. System.ServiceModel.Http v.4.4.0\n\n# วิธีการการ Add Trusted Root Certification Authorities\n\nเบื้องต้นให้เราติดตั้ง Cer ทั้งสองตัวคือ adhq1.cer และ ADHQ5.cer ก่อน โดย Cer. จะอยู่ในโฟลเดอร์ Resources\nหรือ Download ที่ [Client Certificate](https://www.rd.go.th/fileadmin/images/image_webservices/Download_Cert_071260.zip)\n\nถ้าหากยังไม่สามารถเรียก API กรมสรรพากรได้ ให้ทำการ Add Cer. ที่ชื่อ adhq1.cer เข้าไปที่ Trusted Root Certification Authorities ก่อน\nจึงจะสามารถใช้งาน API ของทางกรมสรรพากรได้\n\nส่วนวิธี Add Trusted Root Certification Authorities สำหรับ Windows 10\n\n1. เปิด Run \u003e certlm.msc หรือ กด Start แล้ว Search พิมพ์ว่า \"Certificates\" แล้วเลือก Manage User Certificates\n2. หาเมนูที่ชื่อ Trusted Root Certification Authorities \u003e Certificates\n3. คลิกขวาที่ Certificates เลือก Import และเลือกที่อยู่ของ adhq1.cer ตัวนี้\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/zenateconnect.github.io%2FRevenueDepartmentService%2F","html_url":"https://awesome.ecosyste.ms/projects/zenateconnect.github.io%2FRevenueDepartmentService%2F","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/zenateconnect.github.io%2FRevenueDepartmentService%2F/lists"}