ขอภาพแบบ อ.ส.9 และรหัสตรวจสอบการชำระ
Post /stamp/ReqFormReceiptFile
สำหรับให้ผู้นำส่ง ขอภาพแบบฯ ใบเสร็จการชำระอากร และรหัสตรวจสอบการชำระอากรแสตมป์ URL: https://sample.rd.go.th/stamp/ReqFormReceiptFile
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/ReqFormReceiptFile
Header
{
"Content-type": "application/json",
"X-auth-token": "TbDd2e5HoQ0q0YhJ4hS2rLVWchNS5
ilKb4Xmi5PIghWJjOc1OeB"
}
Body
{
"eInstrument": {
"sender": {
"id": "XYZ00001",
},
"rdForm": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.e
yJyZXF1ZXN0VHlwZSI6IjMiLCJpbnQMDkpZmlAxMzE5OTAifX1dfQ.
mQwVsmNM3sxv0tZ-kHwgVO8s5N1i-arC5QbJZ43YR1jlcOOlGjl
Dv8DKyMCDfKwS13WiCU1l6OTDmvG_bPxIcfPYOq7EHZid7DfcCeIe
AsuZV1Uvf4aqNfFBcIwkt9bi-XNn0g0rzRLYQrzxcomSK86Jb7DD
4PeNPnTs-8oXIa5DC3aM99hpi9JucXq7VVgg_wFkJadad5qZtbYu
lz4RRI8V_gyCNg4Hp-fnk8E3hXsrauWt0BQiKsHb_Kjf1dhFXNRE
sMgkRMXqz_k0KUJeY0MA"
}
}
ตารางข้อมูล rdForm
Name | Type | Required | Description |
---|---|---|---|
requestType | String(1) | Required | ประเภทของการขอรายละเอียด 1 = รหัสสำหรับตรวจสอบการชำระอากรแสตมป์เท่านั้น 2 = ไฟล์ใบเสร็จรับเงิน 3 = ไฟล์แบบ อ.ส.9 |
instInfo | Object | Required | ตราสาร |
refNo | String(20) | Required | หมายเลขอ้างอิงของแบบ อ.ส.9 |
specifiedTaxRegistration | Object | Required | ข้อมูลการลงทะเบียนผู้เสียภาษีอากร |
id | String(13) | Required | เลขประจำตัวผู้เสียภาษีอากรของผู้ยื่นขอเสียอากรแสตมป์ |
Example rdForm
{
"requestType": "2",
"instInfo": [
{
"refNo": "P0900022092",
"specifiedTaxRegistration": {
"id": "1111111111119"
}
}
]
}
Response
Name | Type | Description |
---|---|---|
eInstrument | Object | Root Element |
responseCode | String | รหัสข้อความของกรมสรรพากร |
responsMessage | String | รายละเอียดข้อความ |
rdForm | Object | Element ข้อความตอบกลับการนำส่งข้อมูลตราสารอิเล็กทรอนิกส์ |
instInfo | Object | ตราสารที่นำส่ง |
refNo | String | หมายเลขอ้างอิงของแบบ อ.ส.9 |
specifiedTaxRegistration | Object | ข้อมูลการลงทะเบียนผู้เสียภาษีอากร |
id | String | เลขประจำตัวผู้เสียอากรของผู้ยื่นขอเสียอากรแสตมป์ |
duty | Object | รายละเอียดการชำระเงิน |
dutyAmount | Decimal | อากร |
surchargeAmount | Decimal | เงินเพิ่ม |
totalAmount | Decimal | รวมอากรและเงินเพิ่ม |
fineAmount | Decimal | ค่าปรับอาญา |
receiptNo | Decimal | เลขที่ใบเสร็จรับเงิน |
receiptDate | Decimal | วันที่ออกใบเสร็จรับเงิน |
checkPayCode | String | รหัสตรวจสอบการชำระอากรแสตมป์ |
checkPayQR | Base64Binary | QRCode สำหรับตรวจสอบการชำระอากรแสตมป์ |
pdfFiles | Object | Element ไฟล์ภาพแบบฯ, ใบเสร็จรับเงิน ที่ผ่านการ ลงลายมือชื่อ |
formFileData | Base64Binary | ไฟล์ภาพแบบ อ.ส.9 |
receiptFile | Object | ไฟล์ภาพใบเสร็จ |
dutyReceipt | Base64Binary | ไฟล์ภาพใบเสร็จรับเงิน อ.ส.9 |
fineReceipt | Base64Binary | ไฟล์ภาพใบเสร็จรับเงิน ค่าปรับอาญา |
Example Response
{
"eInstrument": {
"responseCode": "I07000",
"responsMessage": "ทำรายการเรียบร้อย",
"rdForm": {
"instInfo": [
{
"refNo": "P0900022092",
"specifiedTaxRegistration": {
"id": "1111111111119"
},
"duty": {
"dutyAmount": 10000.0,
"surchargeAmount": 0.0,
"totalAmount": 10000.0,
"fineAmount": 0.0,
"receiptNo": "62200006207",
"receiptDate": "2019-09-17"
},
"checkPayCode": "19906209170070014367",
"checkPayQR": "QRCode in QR format",
"pdfFiles": {
"formFileData": "AS9 form PDF file in
Base64Binary format",
"receiptFile": {
"dutyReceipt": "Duty receipt PDF file in
Base64Binary format",
"fineReceipt": "Fine receipt PDF file in
Base64Binary format"
}
}
}
]
}
}
}
Response Code
Business Code | Description |
---|---|
I07000 | สำเร็จ |
E07000 | ไม่สำเร็จ |
E07104 | กรุณาเข้าสู่ระบบอีกครั้ง เนื่องจาก Token ID หมดอายุ |