POST api/thukhac/HDDTThuKhac

Hóa đơn điện tử cho thu khác

Request Information

URI Parameters

None.

Body Parameters

PhieuThuKhacModel
NameDescriptionTypeAdditional information
IdPhieuTK

string

None.

NguoiLap

integer

None.

NgayLap

string

None.

HoTenNguoiMua

string

None.

TenDonVi

string

None.

MaSoThue

string

None.

SoCMND

string

None.

DiaChi

string

None.

HinhThucThanhToan

string

None.

SoTaiKhoan

string

None.

TongTien

decimal number

None.

LoaiHD

string

None.

ChiTiet

Collection of PhieuThuKhacCTModel

None.

SoLanIn

decimal number

None.

IdDonVi

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "IdPhieuTK": "sample string 1",
  "NguoiLap": 1,
  "NgayLap": "sample string 2",
  "HoTenNguoiMua": "sample string 3",
  "TenDonVi": "sample string 4",
  "MaSoThue": "sample string 5",
  "SoCMND": "sample string 6",
  "DiaChi": "sample string 7",
  "HinhThucThanhToan": "sample string 8",
  "SoTaiKhoan": "sample string 9",
  "TongTien": 10.1,
  "LoaiHD": "sample string 11",
  "ChiTiet": [
    {
      "IdPhieuTK": 1,
      "IdCt": 2,
      "TenHang": "sample string 3",
      "DonViTinh": "sample string 4",
      "SoLuong": 5.1,
      "DonGia": 6.1,
      "ThanhTien": 7.1
    },
    {
      "IdPhieuTK": 1,
      "IdCt": 2,
      "TenHang": "sample string 3",
      "DonViTinh": "sample string 4",
      "SoLuong": 5.1,
      "DonGia": 6.1,
      "ThanhTien": 7.1
    }
  ],
  "SoLanIn": 12.1,
  "IdDonVi": 13
}

application/xml, text/xml

Sample:
<PhieuThuKhacModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API_KD.Models">
  <ChiTiet>
    <PhieuThuKhacCTModel>
      <DonGia>6.1</DonGia>
      <DonViTinh>sample string 4</DonViTinh>
      <IdCt>2</IdCt>
      <IdPhieuTK>1</IdPhieuTK>
      <SoLuong>5.1</SoLuong>
      <TenHang>sample string 3</TenHang>
      <ThanhTien>7.1</ThanhTien>
    </PhieuThuKhacCTModel>
    <PhieuThuKhacCTModel>
      <DonGia>6.1</DonGia>
      <DonViTinh>sample string 4</DonViTinh>
      <IdCt>2</IdCt>
      <IdPhieuTK>1</IdPhieuTK>
      <SoLuong>5.1</SoLuong>
      <TenHang>sample string 3</TenHang>
      <ThanhTien>7.1</ThanhTien>
    </PhieuThuKhacCTModel>
  </ChiTiet>
  <DiaChi>sample string 7</DiaChi>
  <HinhThucThanhToan>sample string 8</HinhThucThanhToan>
  <HoTenNguoiMua>sample string 3</HoTenNguoiMua>
  <IdDonVi>13</IdDonVi>
  <IdPhieuTK>sample string 1</IdPhieuTK>
  <LoaiHD>sample string 11</LoaiHD>
  <MaSoThue>sample string 5</MaSoThue>
  <NgayLap>sample string 2</NgayLap>
  <NguoiLap>1</NguoiLap>
  <SoCMND>sample string 6</SoCMND>
  <SoLanIn>12.1</SoLanIn>
  <SoTaiKhoan>sample string 9</SoTaiKhoan>
  <TenDonVi>sample string 4</TenDonVi>
  <TongTien>10.1</TongTien>
</PhieuThuKhacModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

BaseModelOfObject
NameDescriptionTypeAdditional information
status

integer

None.

data

Object

None.

page

Object

None.

error

ErrorModel

None.

Response Formats

application/json, text/json

Sample:
{
  "status": 1,
  "data": {},
  "page": {},
  "error": {
    "message": "sample string 1",
    "code": "sample string 2"
  }
}

application/xml, text/xml

Sample:
<BaseModelOfanyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API_KD.Models">
  <data />
  <error>
    <code>sample string 2</code>
    <message>sample string 1</message>
  </error>
  <page />
  <status>1</status>
</BaseModelOfanyType>