Show / Hide Table of Contents

    Lấy thông tin hệ thống

    api này có chức năng lấy về thông tin của công ty, để xác định là công ty thuộc loại có mã CQT hay không có mã CQT

    thông tin IsInvoiceWithCode trong data trả về của API đánh dấu công ty thuộc loại có mã CQT hay không mã CQT

    1. Request

    Method URL
    GET <BaseURL>/company

    1.1 Header

    Content-Type: application-json
    Authorization: Bearer <token>
    

    1.2 URI Parameter

    Name Diễn giải
    taxcode mã số thuế công ty

    1.3 Response

    {
        "Success": <false/true>,
        "Data": "<Dữ liệu token trả về>",
        "ErrorCode": "<Trống hoặc Mã lỗi>",
        "Errors": "",
        "CustomData":""
    }
    

    2. Ví dụ:

    2.1 Request

    https://testapi.meinvoice.vn/api/v3/company?taxcode=0105922241
    

    2.2 Response

    {
        "Success": true,
        "ErrorCode": null,
        "Errors": [],
        "Data": "{\"CompanyID\":15388,\"CompanyCode\":\"0105922241\",\"CompanyName\":\"CÔNG TY TNHH FANTTON LOGISTICS VIỆT NAM123\",\"SecureToken\":null,\"CompanyTaxCode\":\"0105922241\",\"Inactive\":false,\"CompanyAddress\":\"Lầu 2, Khu C, Tòa nhà Waseco Plaza, 10 Phổ Quang - Phường 2 - Quận Tân Bình - TP Hồ Chí Minh\",\"CompanyCity\":\"Hà Nội\",\"MISAEmployeeCode\":null,\"ActiveCode\":null,\"ActiveLinkCode\":null,\"SourceType\":4,\"CreatedDate\":\"2020-02-03T14:04:09.55+07:00\",\"IntegratedDate\":\"2020-05-29T13:50:58+07:00\",\"AgreementVersion\":\"25\",\"AgreementDate\":\"2021-11-02T00:00:00+07:00\",\"CompanyTaxCodeWithoutSign\":null,\"CompanyAgentFollowLaw\":null,\"CompanyTel\":\"0971500731\",\"CompanyEmail\":\"NGOMINHDAI92@GMAIL.COM\",\"CompanyWebsite\":\"NMDAI.COM\",\"BusinessType\":null,\"BankAccount\":\"11047007\",\"BankName\":\"acb\",\"BankBranchName\":\"HN\",\"TaxationBureau\":\"Cục Thuế Thành phố Hà Nội\",\"TaxOrganManagement\":\"Cục Thuế Thành phố Hà Nội\",\"TaxOrganManagementCode\":\"10100\",\"Director\":\"Ngô Minh Đại\",\"CompanyFax\":\"\",\"Career\":\"Bán buôn tổng hợp\",\"LegalepresentationEmail\":\"NGOMINHDAI92@GMAIL.COM\",\"LegalepresentationPhone\":\"0971500731\",\"CircularFollow\":null,\"IsConvertData\":false,\"IsVerify\":false,\"IsUsingTicket\":false,\"IsInvoiceWithCode\":true,\"HasAccepted123\":true,\"ContactName\":\"NMDAI\",\"ContactAddress\":\"HN\",\"ContactEmail\":\"NGOMINHDAI92@GMAIL.COM\",\"ContactMobile\":\"0971500731\"}",
        "CustomData": null
    }
    

    3. Mô tả đối tượng Data trả về:

    /// <summary>
    /// Kết quả trả về: Thông tin công ty
    /// </summary>
    public class CompanyInfoResult : OperationResult
    {
        /// <summary>
        /// Thông tin công ty
        /// </summary>
        public Company CompanyInfo { get; set; }
    }
    
    /// <summary>
    /// Thông tin công ty
    /// </summary>
    public class Company
    {
        /// <summary>
        /// ID công ty
        /// </summary>
        public int CompanyID { get; set; }
    
        /// <summary>
        /// Mã công ty
        /// </summary>
        public string CompanyCode { get; set; }
    
        /// <summary>
        /// Tên công ty
        /// </summary>
        public string CompanyName { get; set; }
    
        /// <summary>
        /// Mã bảo mật
        /// </summary>
        public string SecureToken { get; set; }
    
        /// <summary>
        /// Mã số thuế công ty
        /// </summary>
        public string CompanyTaxCode { get; set; }
    
        /// <summary>
        /// Ngưng hoạt dộng
        /// </summary>
        public bool Inactive { get; set; }
    
        /// <summary>
        /// Địa chỉ công ty
        /// </summary>
        public string CompanyAddress { get; set; }
    
        /// <summary>
        /// Tỉnh/ Thành phố
        /// </summary>
        public string CompanyCity { get; set; }
    
        /// <summary>
        /// Mã nhân viên MISA
        /// </summary>
        public string MISAEmployeeCode { get; set; }
    
        /// <summary>
        /// Đơn vị tích hợp
        /// </summary>
        public int SourceType { get; set; }
    
        /// <summary>
        /// Ngày tạo
        /// </summary>
        public DateTime? CreatedDate { get; set; }
    
        /// <summary>
        /// Ngày tích hợp
        /// </summary>
        public DateTime? IntegratedDate { get; set; }
    
        /// <summary>
        /// Mã số thuế không dấu
        /// </summary>
        public string CompanyTaxCodeWithoutSign { get; set; }
    
        /// <summary>
        /// Thông tin người đại diện pháp luật
        /// </summary>
        public string CompanyAgentFollowLaw { get; set; }
    
        /// <summary>
        /// ĐT cty
        /// </summary>
        public string CompanyTel { get; set; }
    
        /// <summary>
        /// Email cty
        /// </summary>
        public string CompanyEmail { get; set; }
    
        /// <summary>
        /// Website
        /// </summary>
        public string CompanyWebsite { get; set; }
    
        /// <summary>
        /// Lĩnh vực hoạt động
        /// </summary>
        public string BusinessType { get; set; }
    
        /// <summary>
        /// TK Ngân Hàng
        /// </summary>
        public string BankAccount { get; set; }
    
        /// <summary>
        /// Ngân hàng
        /// </summary>
        public string BankName { get; set; }
    
        /// <summary>
        /// Chi nhánh NH
        /// </summary>
        public string BankBranchName { get; set; }
    
        /// <summary>
        /// Cơ quan thuế cấp cục
        /// </summary>
        public string TaxationBureau { get; set; }
    
        /// <summary>
        /// CQ thuế quản lý
        /// </summary>
        public string TaxOrganManagement { get; set; }
    
        /// <summary>
        /// Mã CQ thuế quản lý
        /// </summary>
        public string TaxOrganManagementCode { get; set; }
    
        /// <summary>
        /// Người đại diện pháp luật
        /// </summary>
        public string Director { get; set; }
    
        /// <summary>
        /// Fax công ty
        /// </summary>
        public string CompanyFax { get; set; }
    
        /// <summary>
        /// nghệ nghiệp lĩnh vực hoạt động của công ty
        /// </summary>
        public string Career { get; set; }
    
        /// <summary>
        /// email người đại diện pháp luật
        /// </summary>
        public string LegalepresentationEmail { get; set; }
    
        /// <summary>
        /// SĐT người đại diện pháp luật
        /// </summary>
        public string LegalepresentationPhone { get; set; }
    
        /// <summary>
        /// Thông tư áp dụng
        /// </summary>
        public string CircularFollow { get; set; }
    
        /// <summary>
        /// True: sử dụng HĐ có mã
        /// </summary>
        public bool IsInvoiceWithCode { get; set; }
    
        /// <summary>
        /// Sử dụng vé
        /// </summary>
        public bool IsUsingTicket { get; set; }
    
        /// <summary>
        /// Người liên hệ
        /// </summary>
        public string ContactName { get; set; }
    
        /// <summary>
        /// Địa chỉ liên hệ
        /// </summary>
        public string ContactAddress { get; set; }
    
        /// <summary>
        /// Email liên hệ
        /// </summary>
        public string ContactEmail { get; set; }
    
        /// <summary>
        /// Điện thoại liên hệ
        /// </summary>
        public string ContactMobile { get; set; }
    
        /// <summary>
        /// Có tờ khai được chấp nhận hay chưa
        /// </summary>
        public bool HasAccepted123 { get; set; }
    }
    
    Back to top Copyright © 2015-2016 Microsoft
    Generated by DocFX