Chuyển tới nội dung chính
Phiên bản: 1.7.0

Xem hóa đơn dạng file PDF

GET /<provider>/view-print-invoice

API dùng để xem hóa đơn đã xuất dạng file PDF.

Headers​

NameRequiredDescription
Authorization✅Bearer token_truy_cap
Content-Type✅application/json
X-Tax-Code✅Mã số thuế người bán.

Query Parameters​

NameKiểu dữ liệuDescription
idstringTrường vpid hoặc sid, ưu tiên vpid nếu có (trả về trong từng phần tử của danh sách hóa đơn). Đối với Misa dùng trường search_code (mã tra cứu).
staxstringMã số thuế người bán (cửa hàng…).
template_codestringMã mẫu hóa đơn (được lấy từ danh sách ký hiệu hóa đơn ở NCC Viettel).
from_posbooleanCó phải là hóa đơn phát hành từ máy tính tiền (Misa).
curl --location 'https://stag-invoice-hub.1invoice.vn/1Invoice/view-print-invoice?id=3a1bafb9-4889-9c3c-802b-d3af714d2dc6' \
--header 'authorization: Bearer O87316arj5+Od3Fqyy5hzdBfIuPk73eKqpAzBSvv8sY=' \
--header 'x-tax-code: 0106026495-998'