สอบถามผลการชำระอากรแสตมป์

Post /stamp/CheckPaymentStatus

สำหรับให้ผู้นำส่งตรวจสอบผลการชำระอากร URL: https://sample.rd.go.th/stamp/CheckPaymentStatus

Request Header

Name Type Required Description
Content-type String Required Content type of request payload Value: - application/json
X-auth-token String Required Access token Value: - TokenId from Response API1

Request Body

Name Type Required Description
eInstrument Object Required Root element
sender Object Required รายละเอียดผู้นำส่ง
id String(20) Required รหัสผู้นำส่ง
rdForm String Required ข้อมูลแบบแสดงรายการที่อยู่ในรูปแบบ JWS (JSON Web Signature)

Example Request

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

Header


    {
        "Content-type": "application/json",
        "X-auth-token": "TbDd2e5HoQ0q0YhJ4hS2rLVWchNS5
        ilKb4Xmi5PIghWJjOc1OeB"
    }        
                                                                 

Body


    {
        "eInstrument": {
            "sender": {
                "id": "XYZ00001",
            },
            "rdForm": " eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhcGlSZWZObyI6
            IjIwMTkwOTE2MDAwMDAwMDA3MTgxIiwicmVzcG9uc2VQYXltZW50VHl
            wZSI6IjQifQ.CyiHUO0d6LxpRzvaVol_MWHjOYlggLdZzuPaZaAUnfA71N0Kpo8NX
            otFn_9ZegyUxLs_u1jQtKdgnVcwucFpxmHgnK5OlnHe77FtcP351PYeYmY
            THQSb4YHIAhGHVChYmRHptMwOzBuzRtHwSWqZ8K7dfgA2Bgcw9D
            5__orM0byktHMqs4_ZltyUlF2LfSk7_6hYawtieEA5-woLNodUDVtV
            YmfsQtK4FrP9ts1OO28uBqsRvu90jKV1nSElUNu5Cep6D7pFkx0zsNk
            -FPnH0p-QsDgD79tCvS5WdFq0Z0Fzdw04oDaVFfrCfZ0FklQoxEYB-
            PHZOqlC69XpMBlPQ"   
        }
    }
                                                
                                                                 

ตารางข้อมูล rdForm

Name Type Required Description
apiRefNo String(20) Required เลขอ้างอิงของการนำส่งข้อมูลตราสาร
instInfo Object Required ตราสาร
refNo String(20) Optional หมายเลขอ้างอิงของแบบ อ.ส.9

Example rdForm


    {
        "apiRefNo": "20190916000000007181",
        "instInfo": {
            "refNo": []
        }
    }
        หรือ
    {
        "apiRefNo": "20190916000000007181",
        "instInfo": {
            "refNo": ["<trefno0001>", ["<refno0002>",]
        }
    }
                                                            

Response

Name Type Description
eInstrument Object Root Element
responseCode String รหัสข้อความของกรมสรรพากร
responsMessage String รายละเอียดข้อความ
rdForm Object Element ข้อความตอบกลับการนำส่งข้อมูลตราสารอิเล็กทรอนิกส์
formStatus String สถานะของการชำระเงิน
1 = ชำระเงินสำเร็จ
2 = ยังไม่ชำระเงิน
instInfo Object ตราสารที่นำส่ง
refNo String หมายเลขอ้างอิงของแบบ อ.ส.9
instStatus String สถานะของการชำระเงินของหมายเลขอ้างอิง
1 = ชำระเงินสำเร็จ
2 = ยังไม่ชำระเงิน

Example Response


    {
        "eInstrument": {
            "responseCode": "I07000",
            "responsMessage": "ทำรายการเรียบร้อย",
            "rdForm": {
                "formStatus": 2,
                "instInfo": [
                    {
                        "refNo": "P0900022091",
                        "instStatus": "2"
                    },
                    {
                        "refNo": "P0900022092",
                        "instStatus": "2"
                    }
                ]
            }
        }
    }      
                                                            

Response Code

Business Code Description
I07000 สำเร็จ
E07000 ไม่สำเร็จ
E07104 กรุณาเข้าสู่ระบบอีกครั้ง เนื่องจาก Token ID หมดอายุ
See list of Generic Response Code