Chuyển tới nội dung chính

v2.order.get_buyer_invoice_info

POST /api/v2/order/get_buyer_invoice_info

API to obtain buyer submitted invoice info for VN, TH and PH local sellers only.

Đường dẫn Endpoint

URL: https://partner.shopeemobile.com/api/v2/order/get_buyer_invoice_info

Tham số chung

NameTypeSampleDescription
partner_idint1Partner ID được gán khi đăng ký thành công. Bắt buộc cho tất cả các yêu cầu.
timestamptimestamp1610000000Dùng để chỉ định thời điểm gửi yêu cầu. Bắt buộc cho tất cả các yêu cầu. Hết hạn sau 5 phút.
access_tokenstringc09222e3fc40ffb25fc947f738b1abf1Token dùng để truy cập API, xác định quyền của bạn. Có thể dùng nhiều lần và hết hạn sau 4 giờ.
shop_idint600000Mã định danh duy nhất của Shopee cho một cửa hàng. Tham số bắt buộc cho hầu hết các API.
signstringe318d3e932719916a9f9ebb57e2011961bd47abfa54a36e040d050d8931596e2Chữ ký được tạo từ partner_id, đường dẫn api, timestamp, access_token, shop_id và partner_key qua thuật toán HMAC-SHA256. Chi tiết: https://open.shopee.com/documents?module=87&type=2&id=58&version=2

Tham số Request

NameTypeRequiredSampleDescription
queriesobject[]False
order_snstringTrue220314U0G6UNMNMã định danh duy nhất của Shopee cho một đơn hàng.

Tham số Response

NameTypeSampleDescription
invoice_info_listobject[]
order_snstring220314U0G6UNMNMã định danh duy nhất của Shopee cho một đơn hàng.
invoice_typestringpersonalType of invoice requested: {1: personal, 2: company, 3: household}.
invoice_detailobjectInvoice info submitted by buyer. Might be masked, e.g. A****b, depending on order status.
namestringTom JerryBuyer name (has value when invoice_type is personal, household, or company) - VN, TH, PH only
emailstringtom.and.jerry@gmail.comBuyer email address (has value when invoice_type is personal and household) - VN, TH, PH only
phone_numberstring(+66) 828918689Buyer phone number - TH only
tax_idstring1234567898has value when invoice_type is personal and household.  - VN, TH, PH only
addressstringGieŁdowa 4b, Długi Bród, 17200, PIĄTE PIĘTROBuyer address in format "Street & number, city, zipcode, any additional info provided by buyer" (has value when invoice_type is personal and household) - PH, VN only
id_card_addressstringGieŁdowa 4b, Długi Bród, 17200, PIĄTE PIĘTROSame function as the address, only having a different field name for TH.Buyer address in format "Street & number, city, zipcode, any additional info provided by buyer" (only has value when invoice_type is personal).
address_breakdownobjectBuyer address breakdown. - TH, PH only
regionstringThailandReturn region value - PH, TH only
statestringMałopolskieReturn value - TH: Province
citystringMyślenickiReturn value - TH: District
townstringŁękiReturn value - TH: Sub district
postcodestring17200Return value - TH: Postal code - PH: Postal code
detailed_addressstringGieŁdowa 4bReturn value - PH: Additional details, i.e. street name, building - TH: Additional details, i.e. house number
additional_infostringPIĄTE PIĘTROReturn value: - Empty for PH, TH
full_addressstringGieŁdowa 4b, Łęki, 17200, PIĄTE PIĘTRO- only has value when invoice_type is personal - Buyer address in format "detailed_address, town, district, state, postcode, additional_info" for all regions --- for TH: leave the 'additional_info' as empty
company_head_officestringyes- return value for TH only (only has value when invoice_type is company)
company_namestringMichal Orwinski S.C.- Chỉ trả về giá trị khi loại hóa đơn là công ty - Chỉ áp dụng cho VN, TH, PH
company_branch_namestringCIty A branch- Chỉ trả về giá trị khi loại hóa đơn là công ty - Chỉ áp dụng cho TH
company_branch_idstring123- Chỉ trả về giá trị khi loại hóa đơn là công ty - Chỉ áp dụng cho TH
company_typestringhead office- Chỉ trả về giá trị khi loại hóa đơn là công ty - Chỉ áp dụng cho TH
company_emailstringmichal@shopee.com- Chỉ trả về giá trị khi loại hóa đơn là công ty - Chỉ áp dụng cho VN, TH, PH
company_tax_idstring123456789- Chỉ trả về giá trị khi loại hóa đơn là công ty - Chỉ áp dụng cho VN, TH, PH
company_addressstringGieŁdowa 4b, Długi Bród, 17200, PIĄTE PIĘTROBuyer address in format "Street & number,city, zipcode, any additional info provided by buyer" (only has value when invoice_type is company) - VN, TH only
company_address_breakdownobjectCompany address breakdown - PH, TH only
company_regionstringThailandReturn region value - PH, TH only
company_statestringMałopolskieReturn value - PH: Province - TH: Province
company_citystringMyślenickiReturn value - PH: City
company_districtstringMyśleniceReturn value - PH: Barangay - TH: District
company_townstringŁękiReturn value - TH: Sub district
company_postcodestring17200Return postal code - TH, PH only
company_detailed_addressstringGieŁdowa 4bReturn value - PH: Detailed address - TH: Detailed address
company_additional_infostringPIĄTE PIĘTROReturn value: - Empty for PH, TH
company_full_addressstringGieŁdowa 4b, Łęki, 17200, PIĄTE PIĘTROConcatenation of company address breakdown - only has value when invoice_type is company
household_address_breakdownobjectThông tin địa chỉ hộ gia đình chi tiết - Chỉ dành cho VN
household_regionstringRegion of the household address.
household_statestringState of the household address.
household_citystringCity of the household address.
household_provincestringProvince of the household address.
household_districtstringDistrict of the household address.
household_townstringTown of the household address.
household_barangaystringBarangay of the household address.
household_postcodestringPostal code of the household address.
household_detailed_addressstringDetailed street address of the household.
household_additional_infostringAdditional address information provided by the buyer.
household_full_addressstringFull formatted household address.
errorstringorder not foundError in retrieving the receipt setting of a particular order.
is_requestedbooleanfalseTo identify order with and without buyer request, applicable to PL.
request_idstringZQKEZfwaNQUnMKqMmjWuRPybfshyFygVRequest id for debugging purposes
errorstringcommon.error_authCho biết loại lỗi nếu xảy ra. Trống nếu không có lỗi.
messagestringInvalid access_token.Cho biết chi tiết lỗi nếu xảy ra. Trống nếu không có lỗi.