การยืนยันตัวตน และรับ Access Token

Post /stamp/SubmitFilingAuth

การยืนยันตัวตน และรับ Access Token สำหรับการส่งข้อมูล ตรวจสอบผลการส่งข้อมูล ตรวจสอบผลการชำระเงิน และขอภาพแบบฯ ใบเสร็จรับเงิน URL: https://sample.rd.go.th/stamp/SubmitFilingAuth

Request Header

Name Type Required Description
Content-type String Required Content type of request payload Value: - application/json

Request Body

Name Type Required Description
username String(20) Required รหัสผู้ใช้งาน
password String(20) Required รหัสผ่านผู้ใช้งาน
nonce String(20) Required วันเวลาที่ส่ง request รูปแบบ “YYYY-MM-DDTHH:MM:SS” เช่น “2018-12-10 15:45:00”

Example Request

POST https://sample.rd.go.th/stamp/SubmitFilingAuth

Header


    {
        "Content-type": "application/json"
    }
                                                                 

Body


    {
        "username": "<Your Username>",
        "password": "<Your Password>",
        "nonce": "2018-12-10 15:45:00"
    }
                                                                 

Response

Name Type Description
responseCode String รหัสข้อความของกรมสรรพากร
responseMessage String รายละเอียดข้อความ
username String รหัสผู้ใช้งาน
tokenId String Access token สำหรับตรวจสอบสิทธิ์การใช้งาน
sender Object รายละเอียดผู้นำส่ง
id String รหัสผู้นำส่ง

Example Response


    {
        "responseCode": "I07000",
        "responseMessage": "ทำรายการเรียบร้อย",
        "username": "USER0001",
        "tokenId":  "eyJhbGciOiJIUzI1NiJ9.eyJpZCI6eyJzdGF0dXMiOiIiL
        CJ1c2VyTmFtZSI6IlVTRVIwMDAxIiwic2VuZGVyTmlkIjoiMTIxMjEyMTIx
        MjEyMSIsInNlbmRlclRpbiI6IiIsInNlbmRlcklkIjoiVFNEMDAwMDEiLCJ
        zZW5kZXJOYW1lIjoi4Lia4Lij4Li04Lip4Lix4LiXIOC4l-C4lOC4quC4re
        C4m-5iOC4suC4meC4seC5ieC4mSDguIjguLPguIHguLHguJQgIiwiYnJhY2h
        UeXBlIjoiIiwiYnJhbmNoTm8iOiIifSwiaWF0IjoxNTY4NjA3MjYwL
        CJleHAiOjE1Njg2Mjg4.-42HNg3F8RbrY_EonhMqxb2wxshpdX5naj9Ux-Q0",
        "sender": {
            "id": "XYZ00001"
        }
    }
                                                            

Response Code

Business Code Description
I07000 สำเร็จ
I07003 ไม่สามารถเข้าสู่ระบบได้ เนื่องจากรหัสผู้ใช้ หรือรหัสผ่านไม่ถูกต้อง
E07116 ไม่สามารถเข้าสู่ระบบได้ เนื่องจาก nonce ไม่ได้อยู่ในช่วงเวลาที่กำหนด
See list of Generic Response Code