Xem hóa đơn/vé điển tử
sau khi phát hành
Mô tả chi tiết
1. Request
1.1 Url API
Method | URL API (BaseUrl lấy ở mô tả chung) |
---|---|
POST | <BaseUrl>/publishview |
1.2 Header
Content-Type: application-json
Authorization: Bearer <token lấy ở api Lấy token Authorization>
1.3 Body
list string mã tra cứu hóa đơn TransactionID
2 Response
{
"success": true,
"errorCode": null,
"descriptionErrorCode": null,
"errors": [],
"data": "Link view hóa đơn/vé dạng PDF(mở bằng trình duyệt để xem bản pdf hóa đơn/vé sau khi phát hành)",
"customData": ""
}
Lưu ý: Link view hóa đơn/vé điện tử tồn tại trong trong 5 phút
3. Ví dụ:
3.1 Request
URL: https://testapi.meinvoice.vn/api/integration/invoice/publishview
HEADERS:
Content-Type: application-json
Authorization: Bearer <token lấy ở api Lấy token Authorization>
BODY:
["L4CXU6X0W0","QWIGTN63E_"]
3.2 Response
{
"success": true,
"errorCode": null,
"descriptionErrorCode": null,
"errors": [],
"data": "https://www.test.meinvoice.vn/tra-cuu/downloadhandler.ashx?type=pdf&code=c014c26b-7c6a-4932-8c57-198ae73209fb&Viewer=1&SearchType=2",
"customData": ""
}
4 Tài liệu tham khảo (Curl Postman)
curl --location --request POST 'https://testapi.meinvoice.vn/api/integration/invoice/publishview' \
--header 'Authorization: Bearer <token lấy ở api Lấy token Authorization>' \
--header 'Content-Type: application/json' \
--data-raw '["L4CXU6X0W0","QWIGTN63E_"]'