{
"generalInvoiceInfo": { //Thông tin chung của hóa đơn
"transactionUuid": "859f390a-1e59-4a05-9663-1e9ec7afdb8f",
"invoiceType": "1",
"templateCode": "1/779",
"invoiceSeries": "K24MTB",
"invoiceIssuedDate": 1605027600000,
"currencyCode": "VND",
"adjustmentType": "1",
"paymentStatus": true,
"cusGetInvoiceRight": true,
"reservationCode": "681DDYKLMOEFD",
"validation": 1,
"originalInvoiceType": "1",
"originalTemplateCode": "1/779"
},
"buyerInfo": { //thông tin người mua
"buyerName": "Tên khách hàng",
"buyerLegalName": "Tên đơn vị",
"buyerTaxCode": "0100109106",
"buyerAddressLine": "An Khánh Hoài Đức Hà Nội",
"buyerPostalCode": "2342324323",
"buyerDistrictName": "Số 9, đường 11, VSIP Bắc Ninh, Thị xã Từ Sơn, Tỉnh",
"buyerCityName": "Thành Phố Hà Nội",
"buyerCountryCode": "84",
"buyerPhoneNumber": "987999999",
"buyerFaxNumber": "0458954",
"buyerEmail": "minhltt@viettel.com.vn",
"buyerBankName": "Ngân hàng Quân đội MB",
"buyerBankAccount": "01578987871236547",
"buyerIdType": "3",
"buyerIdNo": "8888899999",
"buyerCode": "832472343b_b",
"buyerBirthDay": ""
},
"sellerInfo": { //thông tin người bán
"sellerLegalName": "Người bán hàng",
"sellerTaxCode": "0100109106",
"sellerAddressLine": "Thành Phố Hà Nội - Việt Nam",
"sellerPhoneNumber": "0123456789",
"sellerFaxNumber": "0123456789",
"sellerEmail": "email@gmail.com",
"sellerBankName": "Ngân hàng ",
"sellerBankAccount": "012345678901",
"sellerDistrictName": "",
"sellerCityName": "Thành Phố Hà Nội",
"sellerCountryCode": "84",
"sellerWebsite": "sinvoice.viettel.vn"
},
"payments": [ //thông tin thanh toán
{
"paymentMethod": "2",
"paymentMethodName": "CK"
}
],
"itemInfo": [ //thông tin hàng hóa
{
"lineNumber": 1,
"itemCode": "PCDELLV3653_i56400_R4H10DVDRW",
"itemName": "Máy tính để bàn DELL VOSTRO 3653 Desktop Core i5-6400 upto3.30Ghz/ 4GB/ 1TB HDD/DVDRW/NVIDIA Geforce 705 2Gb/ Wireless-Bluetooth/ K/ M/1Yr Pro",
"unitName": "Cái",
"itemNote": "",
"unitPrice": 10300000,
"quantity": 1,
"itemTotalAmountWithoutTax": 10300000,
"itemTotalAmountWithTax": 11330000,
"itemTotalAmountAfterDiscount": 10300000,
"taxPercentage": 10,
"taxAmount": 1030000,
"customTaxAmount": "0",
"discount": 0,
"itemDiscount": 0,
"batchNo": "",
"expDate": ""
},
{
"lineNumber": 2,
"itemCode": "LCDLI2215S_LNV",
"itemName": "Màn hình vi tính LENOVO LCD LI2215S 21.5\" Led (65CCAACC6VN)",
"unitName": "Cái",
"itemNote": "",
"unitPrice": 1750000,
"quantity": 2,
"itemTotalAmountWithoutTax": 3500000,
"itemTotalAmountWithTax": 3696000,
"itemTotalAmountAfterDiscount": 3360000,
"taxPercentage": 10,
"taxAmount": 336000,
"customTaxAmount": "0",
"discount": 4,
"itemDiscount": 140000,
"batchNo": "",
"expDate": ""
}
],
"metadata": [ //thông tin trường động
],
"meterReading": [ //thông tin đặc biệt dành cho hóa đơn điện nước
],
"summarizeInfo": { //thông tin tổng hợp tiền của hóa đơn
},
"taxBreakdowns": [ //thông tin gom nhóm tiền hóa đơn theo thuế suất
]
}
curl --location -g --request POST 'http://petfen-account.local.com:8081/InvoiceAPI/InvoiceWS/createInvoice/{{s-invoice-supplier-tax-code}}' \
--header 'Cookie: access_token:{{s-invoice-access-token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"generalInvoiceInfo": { //Thông tin chung của hóa đơn
"transactionUuid": "859f390a-1e59-4a05-9663-1e9ec7afdb8f",
"invoiceType": "1",
"templateCode": "1/779",
"invoiceSeries": "K24MTB",
"invoiceIssuedDate": 1605027600000,
"currencyCode": "VND",
"adjustmentType": "1",
"paymentStatus": true,
"cusGetInvoiceRight": true,
"reservationCode": "681DDYKLMOEFD",
"validation": 1,
"originalInvoiceType": "1",
"originalTemplateCode": "1/779"
},
"buyerInfo": { //thông tin người mua
"buyerName": "Tên khách hàng",
"buyerLegalName": "Tên đơn vị",
"buyerTaxCode": "0100109106",
"buyerAddressLine": "An Khánh Hoài Đức Hà Nội",
"buyerPostalCode": "2342324323",
"buyerDistrictName": "Số 9, đường 11, VSIP Bắc Ninh, Thị xã Từ Sơn, Tỉnh",
"buyerCityName": "Thành Phố Hà Nội",
"buyerCountryCode": "84",
"buyerPhoneNumber": "987999999",
"buyerFaxNumber": "0458954",
"buyerEmail": "minhltt@viettel.com.vn",
"buyerBankName": "Ngân hàng Quân đội MB",
"buyerBankAccount": "01578987871236547",
"buyerIdType": "3",
"buyerIdNo": "8888899999",
"buyerCode": "832472343b_b",
"buyerBirthDay": ""
},
"sellerInfo": { //thông tin người bán
"sellerLegalName": "Người bán hàng",
"sellerTaxCode": "0100109106",
"sellerAddressLine": "Thành Phố Hà Nội - Việt Nam",
"sellerPhoneNumber": "0123456789",
"sellerFaxNumber": "0123456789",
"sellerEmail": "email@gmail.com",
"sellerBankName": "Ngân hàng ",
"sellerBankAccount": "012345678901",
"sellerDistrictName": "",
"sellerCityName": "Thành Phố Hà Nội",
"sellerCountryCode": "84",
"sellerWebsite": "sinvoice.viettel.vn"
},
"payments": [ //thông tin thanh toán
{
"paymentMethod": "2",
"paymentMethodName": "CK"
}
],
"itemInfo": [ //thông tin hàng hóa
{
"lineNumber": 1,
"itemCode": "PCDELLV3653_i56400_R4H10DVDRW",
"itemName": "Máy tính để bàn DELL VOSTRO 3653 Desktop Core i5-6400 upto3.30Ghz/ 4GB/ 1TB HDD/DVDRW/NVIDIA Geforce 705 2Gb/ Wireless-Bluetooth/ K/ M/1Yr Pro",
"unitName": "Cái",
"itemNote": "",
"unitPrice": 10300000,
"quantity": 1,
"itemTotalAmountWithoutTax": 10300000,
"itemTotalAmountWithTax": 11330000,
"itemTotalAmountAfterDiscount": 10300000,
"taxPercentage": 10,
"taxAmount": 1030000,
"customTaxAmount": "0",
"discount": 0,
"itemDiscount": 0,
"batchNo": "",
"expDate": ""
},
{
"lineNumber": 2,
"itemCode": "LCDLI2215S_LNV",
"itemName": "Màn hình vi tính LENOVO LCD LI2215S 21.5\" Led (65CCAACC6VN)",
"unitName": "Cái",
"itemNote": "",
"unitPrice": 1750000,
"quantity": 2,
"itemTotalAmountWithoutTax": 3500000,
"itemTotalAmountWithTax": 3696000,
"itemTotalAmountAfterDiscount": 3360000,
"taxPercentage": 10,
"taxAmount": 336000,
"customTaxAmount": "0",
"discount": 4,
"itemDiscount": 140000,
"batchNo": "",
"expDate": ""
}
],
"metadata": [ //thông tin trường động
],
"meterReading": [ //thông tin đặc biệt dành cho hóa đơn điện nước
],
"summarizeInfo": { //thông tin tổng hợp tiền của hóa đơn
},
"taxBreakdowns": [ //thông tin gom nhóm tiền hóa đơn theo thuế suất
]
}'
{}