{
"original_invoice_type": "1",
"original_invoice_template": "1/779",
"original_invoice_number": "K25MTB2625",
"update_type": "others",
"transaction_id": "test-transaction-2",
"invoice_type": "1",
"invoice_template": "1/779",
"invoice_serial": "K24MTB",
"buyer": {
"personal_name": "buyer_01",
"company_name": "",
"tax_code": "0100109106",
"address": "address_01",
"phone_number": "0123445678",
"email": "buyer@example.com",
"bank_account": "",
"bank_account_number": "",
"id_type": "CCCD",
"id_number": "012312312312"
},
"seller": {
"name": "seller",
"tax_code": "0100109106-507",
"address": "seller_address",
"phone_number": "0123456789",
"email": "seller@example.com",
"bank_account": "",
"bank_account_number": ""
},
"payment_method": "cash",
"items": [
{
"code": "PCDELLV3653_i56400_R4H10DVDRW",
"name": "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",
"unit": "Cái",
"price": 10300000,
"type": 1,
"quantity": 2,
"amount_without_tax": 20600000,
"amount_after_tax": 22660000,
"tax_percentage": 10,
"tax_amount": 2060000,
"discount_percentage": 0,
"discount_amount": 0,
"amount_after_discount": 20600000
},
{
"code": "LCDLI2215S_LNV",
"name": "Màn hình vi tính LENOVO LCD LI2215S 21.5\" Led (65CCAACC6VN)",
"unit": "Cái",
"price": 1750000,
"type": 1,
"quantity": 2,
"amount_without_tax": 3500000,
"amount_after_tax": 3696000,
"tax_percentage": 10,
"tax_amount": 336000,
"discount_percentage": 4,
"discount_amount": 140000,
"amount_after_discount": 3360000
}
]
}
curl --location --request POST 'http://petfen-account.local.com:8081/api/v1/e-invoice/update' \
--header 'Authorization: {{authorization-token}}' \
--header 'X-Auth-Service: {{x-auth-token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"original_invoice_type": "1",
"original_invoice_template": "1/779",
"original_invoice_number": "K25MTB2625",
"update_type": "others",
"transaction_id": "test-transaction-2",
"invoice_type": "1",
"invoice_template": "1/779",
"invoice_serial": "K24MTB",
"buyer": {
"personal_name": "buyer_01",
"company_name": "",
"tax_code": "0100109106",
"address": "address_01",
"phone_number": "0123445678",
"email": "buyer@example.com",
"bank_account": "",
"bank_account_number": "",
"id_type": "CCCD",
"id_number": "012312312312"
},
"seller": {
"name": "seller",
"tax_code": "0100109106-507",
"address": "seller_address",
"phone_number": "0123456789",
"email": "seller@example.com",
"bank_account": "",
"bank_account_number": ""
},
"payment_method": "cash",
"items": [
{
"code": "PCDELLV3653_i56400_R4H10DVDRW",
"name": "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",
"unit": "Cái",
"price": 10300000,
"type": 1,
"quantity": 2,
"amount_without_tax": 20600000,
"amount_after_tax": 22660000,
"tax_percentage": 10,
"tax_amount": 2060000,
"discount_percentage": 0,
"discount_amount": 0,
"amount_after_discount": 20600000
},
{
"code": "LCDLI2215S_LNV",
"name": "Màn hình vi tính LENOVO LCD LI2215S 21.5\" Led (65CCAACC6VN)",
"unit": "Cái",
"price": 1750000,
"type": 1,
"quantity": 2,
"amount_without_tax": 3500000,
"amount_after_tax": 3696000,
"tax_percentage": 10,
"tax_amount": 336000,
"discount_percentage": 4,
"discount_amount": 140000,
"amount_after_discount": 3360000
}
]
}'
{}