Giter VIP home page Giter VIP logo

thai-tax-refund's Introduction

thai-tax-refund

check status for thai tax refund

https://www.rd.go.th/publish/27942.0.html

Installation

available on pip https://pypi.org/project/thaitaxrefund/

pip install thaitaxrefund

Usage

Command line usage

thaitaxrefund THAI_ID THAI_FIRSTNAME THAI_LASTNAME [--year=<THAI_YEAR> --json]

command line example

thaitaxrefund 1111111111111 บิ๊ก ตู่
import thaitaxrefund

thai_id = '1111111111111'
thai_name = 'บิ๊ก'
thai_surname = 'ตู่'
result = thaitaxrefund.check(thai_id, thai_name, thai_surname, thai_year=2562)

Example result

{
    "process_text": "พิจารณาคืนภาษี",
    "code": "MSG107",
    "countByName": -1,
    "countByNameNid": 1,
    "countByNid": -1,
    "criteria": {
        "dln": "",
        "fName": "บิ๊ก",
        "formCode": "",
        "lName": "ตู่",
        "nid": "1111111111111",
        "taxYear": "2562",
        "tin": "",
        "txpTtlText": ""
    },
    "formData": {
        "dln": "ภงด91000000000000000000000",
        "fName": "บิ๊ก",
        "formCode": "ภงด91",
        "lName": "ตู่",
        "nid": "1111111111111",
        "taxYear": "2562",
        "tin": "1111111111",
        "txpTtlText": "นาย"
    },
    "formDetailList": [
        {
            "effDate": "12/03/2563",
            "ofcName": "กองบริหารการเสียภาษีทางอิเล็กทรอนิกส์",
            "pndType": "ภ.ง.ด.91",
            "seq": 1
        }
    ],
    "formSendDocDetail": null,
    "ipAddress": "xxx.xxx.xxx.xxx",
    "message": "อยู่ระหว่างดำเนินการ หากมีข้อสงสัย โปรดติดต่อ<br>สำนักงานสรรพากรพื้นที่กรุงเทพมหานคร 26<br>หมายเลขโทรศัพท์ 0-2454-8475,0-2454-8618-20 ต่อ 125-127,0-2454-8623-24 ต่อ 125-127",
    "messageEN": "In process. Please contact Revenue Branch Office<br>Bangkok Area Revenue Office 26<br>Tel. 0-2454-8475,0-2454-8618-20 ต่อ 125-127,0-2454-8623-24 ต่อ 125-127",
    "processPicName": "process_3",
    "reqDoc": false,
    "reqNewK39": false,
    "searchPromptPay": false,
    "uploadConsiderDoc": true,
    "uploadDoc": false,
    "urlReqNewK39": "",
    "urlSearchPromptPay": "",
    "urlUploadDocument": "",
}

thai-tax-refund's People

Contributors

kittinan avatar

Stargazers

Nutchanon Ninyawee avatar PhakphumV avatar meddlesome avatar Pattarawat Chormai avatar

Watchers

 avatar James Cloos avatar

thai-tax-refund's Issues

Command line interface

Hi,

This repo is interesting. I like the idea. It would be very convenient if the module provides a command line interface. The most efficient way to implement that is to using docopt.

Once it has such an option, many integration opportunities can be done easily.

For example, one can set a private Travis CI and a CRON job for monitoring the refund.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.