สอบถามผลการนำส่งข้อมูลขอเสียอากร

Post /stamp/CheckFilingStatus

สำหรับให้ผู้นำส่งตรวจสอบผลการนำส่งข้อมูลที่นำส่งให้กรมสรรพากรแล้ว URL: https://sample.rd.go.th/stamp/CheckFilingStatus

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": "TbDd2e5HoQ0q0YhJ4hS2rLVWchNS5il
                        Kb4Xmi5PIghWJjOc1OeB"
    }        
                                                                 

Body


    {
        "eInstrument": {
            "sender": {
                "id": "XYZ00001",
            },
        "rdForm": " eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhcGlSZWZObyI
        6IjIwMTkwOTE2MDAwMDAwMDA3MTgxIiwicmVzcG9uc2VQYXlt
        ZW50VHlwZSI6IjQifQ.CyiHUO0d6LxpRzvaVol_M
        WHjOYlggLdZzuPaZaAUnfA71N0Kpo8NXotFn_9ZegyUxLs_
        u1jQtKdgnVcwucFpxmHgnK5OlnHe77FtcP351PYeYmYTHQSb4YHIAhGHVChY
        mRHptMwOzBuzRtHwSWqZ8K7dfgA2Bgcw9D5__orM0byktHMqs4_ZltyUlF2
        LfSk7_6hYawtieEA5-woLNodUDVtVYmfsQtK4FrP9ts1OO28uBqsRvu90jKV1n
        SElUNu5Cep6D7pFkx0zsNk-FPnH0p-QsDgD79tCvS5WdFq0Z0Fzdw04oDaV
        FfrCfZ0FklQoxEYB-PHZOqlC69XpMBlPQ”   
        }
    }
                                                
                                                                 

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

Name Type Required Description
apiRefNo String(20) Required เลขอ้างอิงของการนำส่งข้อมูลตราสาร
responsePaymentType String(1) Required 1 = QRPayment อย่างเดียว
2 = PayInSlip อย่างเดียว
3 = เอาเฉพาะข้อมูลชุดชำระ
4 = ทั้งหมด

Example rdForm


    {
        "apiRefNo": "20190916000000007181",
        "responsePaymentType": "4"
    }
                                                            

Response

Name Type Description
eInstrument Object Root Element
responseCode String รหัสข้อความของกรมสรรพากร
responsMessage String รายละเอียดข้อความ
rdForm Object Element ข้อความตอบกลับการนำส่งข้อมูลตราสารอิเล็กทรอนิกส์
apiRefNo String รหัสผู้นำส่ง
instInfo Object ตราสารที่นำส่ง
id String หมายเลขอ้างอิงตราสารอิเล็กทรอนิกส์
refNo String หมายเลขอ้างอิงของแบบ อ.ส.9
specifiedTaxRegistration Object ข้อมูลการลงทะเบียนผู้เสียภาษีอากร
id String เลขประจำตัวผู้เสียอากรของผู้ยื่นขอเสียอากรแสตมป์
paymentInfo Object ข้อมูลการชำระเงินค่าอากรแสตมป์
ref1 String Reference 1 (เลขประจำตัวผู้เสียอากรแสตมป์)
ref2 String Reference 2 (รหัสควบคุมหรือรหัสข้อความชำระเงินของกรมสรรพากร)
expireDate Date วันสุดท้ายของการชำระเงิน
totalAmount Decimal รวมจำนวนเงินที่ต้องชำระ (อากร+เงินเพิ่ม+ค่าปรับอาญา)
totalDuty Decimal อากร
totalSurcharge Decimal เงินเพิ่ม
totalFine Decimal ค่าปรับอาญา
payInSlipFile Base64Binary ไฟล์ Pay In Slip เพื่อนำไปชำระที่หน่วยรับชำระของกรมสรรพากร
qrPayment Base64Binary QR Code สำหรับจ่ายเงิน

Example Response


    {
        "eInstrument": {
            "responseCode": "I07000",
            "responsMessage": "ทำรายการเรียบร้อย",
            "rdForm": {
                "apiRefNo": "20190916000000007182",
                "instInfo": [
                    {
                        "id": "Test123400001",
                        "refNo": "P0900022091",
                        "specifiedTaxRegistration": {
                            "id": "1111111111119"
                        }
                    },
                ], 
                "paymentInfo": {
                    "ref1": "1111111111119",
                    "ref2": "160051308330972",
                    "expireDate": "2019-09-16",
                    "totalAmount": 20000.0,
                    "totalDuty": 20000.0,
                    "totalSurcharge": 0.0,
                    "totalFine": 0.0,
                    "payInSlipFile": " PayInSlip PDF file in 
                                        Base64Binary format ",
                    "qrPayment": ""
                }
            }
        }
    }                                   
                                                            

Response Code

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