Skip to main content

v2.logistics.get_shipping_document_data_info

POST /api/v2/logistics/get_shipping_document_data_info

Use this api to fetch the logistics information of an order, these info can be used for self-design AWB printing. Besides, this api supports returning personal info as images.

Endpoint URL

URL: https://partner.shopeemobile.com/api/v2/logistics/get_shipping_document_data_info

Common Request Parameters

NameTypeSampleDescription
partner_idint1Partner ID is assigned upon registration is successful. Required for all requests.
timestamptimestamp1610000000This is to indicate the timestamp of the request. Required for all requests. Expires in 5 minutes.
access_tokenstringc09222e3fc40ffb25fc947f738b1abf1The token for API access, using to identify your permission to the api. Valid for multiple use and expires in 4 hours.
shop_idint600000Shopee's unique identifier for a shop. Required param for most APIs.
signstringe318d3e932719916a9f9ebb57e2011961bd47abfa54a36e040d050d8931596e2Signature generated by partner_id, api path, timestamp, access_token, shop_id and partner_key via HMAC-SHA256 hashing algorithm. More details: https://open.shopee.com/documents?module=87&type=2&id=58&version=2

Request Parameters

NameTypeRequiredSampleDescription
order_snstringTrue201224EM1FMFG1Shopee's unique identifier for an order.
package_numberstringFalse9087129345Shopee's unique identifier for the package under an order. You shouldn't fill the field with empty string when there isn't a package number.
recipient_address_infoobject[]Falserecipient address to query as image
keystringTruenamefields to query in the recipient address, should be name, phone, **full_address,**towndistrictcitystateregionzipcode.
styleobjectFalseimage style
text_stylestring[]False["bold", "italic"]supports bold and italic
font_sizeint32False12supports 1 - 108
text_colorstringFalse#39c5bbcolor string like "#AbCd12"
image_widthfloatFalse3.0supports 0.1-30, in centimeters
h_alignstringFalsecentertext horizontal align, supports left, center and right.

Response Parameters

NameTypeSampleDescription
request_idstring862fc4d77de74edf9bf045c7650f1988The identifier for an API request for error tracking.
errorstringerror_authIndicate error type if hit error. Empty if no error happened.
messagestringInvalid access_token.Indicate error details if hit error. Empty if no error happened.
responseobjectDetail informations you are querying. Note: For parcels that support pre-shipment printing, calling this API before shipment will only return the following fields: response recipient_address_info key image shipping_document_info cod cod_amount order_weight logistics_channel_id shipping_carrier pickup_code
recipient_address_infoobject
keystringnamequeried field in recipient address
imagestringdata:image/png;base64,/9j/4AAQSkZJRgABAgEASABIAAD/……base64 encoded png data string
shipping_document_infoobject
codbooleantrueThis value indicates whether the order was a COD (cash on delivery) order.
cod_amountstring185Use this field to indicate cod amount.
order_weightint32500Use this field to indicate order weight when calculate the shipping fee. The unit of weigh is gram.
logistics_channel_idint3228016The identity of logistic channel.
shipping_carrierstringStandard DeliveryThe logistics service provider that the buyer selected for the order to deliver items.
service_codestringSHPOnly work for cross-border order. This code is required at some sorting hub. Please ensure the service_code is INCLUDED on your shipping label, otherwise the parcel cannot be processed by the warehouse. If you didn't retrieve service_code after you first called this API, please try few more times within 30 minutes.
first_mile_namestringMYF3Only work for cross-border order.The name of the carrier ships cross country or region.
last_mile_namestringMYL1Only work for cross-border order.The name of the carrier delivers the parcels in local country or region.
goods_to_declarebooleantrueOnly work for cross-border order.This value indicates whether the order contains goods that are required to declare at customs. "T" means true and it will mark as "T" on the shipping label; "F" means false and it will mark as "P" on the shipping label. This value is accurate ONLY AFTER the order trackingNo is generated, please capture this value AFTER your retrieve the trackingNo.
lane_codestringS-MY03Only work for cross-border order. The string use for waybill printing. The format is "S - region_code and lane_number". For example, S-TH01, S-TH02
warehouse_addressstringChina Guangdong Shenzhen 1/F, Building 8,Tangtou industrial District ,Shiyan street ,baoan districtOnly work for cross-border order in some special shop. The address info of the warehouse.
warehouse_idstringTWS01Only work for cross-border order in some special shop. The ID of the warehouse.
recipient_sort_codeobjectThe sort_code of recipient.
first_recipient_sort_codestringB-151-ATP-ATP-010The first-level sort_code of recipient.
second_recipient_sort_codestringThe second-level sort_code of recipient.
third_recipient_sort_codestringSAN ROQUE 009The third-level sort_code of recipient.
sender_sort_codeobjectThe sort_code of sender.
first_sender_sort_codestringThe first-level sort_code of sender.
second_sender_sort_codestringThe second-level sort_code of sender.
third_sender_sort_codestringThe third-level sort_code of sender.
return_sort_codeobjectThe sort code for 3PL doing RTS.
return_first_sort_codestringRTS-FM-MANThe first-level sort code for 3PL doing RTS.
third_party_logistic_infoobjectOnly used for TW sellers.
service_descriptionstringUse this field to indicate the order category.
barcodestringThe manufacturer barcode.
purchase_timestringThe purchase_time of the store.
return_timestringThe return_time of the store.
manufacturers_namestringThe name of manufacturers.
manufacturers_websitestringThe website of manufacturers.
recipient_areastringThe identification of recipient area.
route_stepstringThe route code of the waybill.
suda5_codestringThe tally code of the waybill.
large_logistics_idstringThe code of large logistics.
parent_idstringThe parent code of the waybill.
return_cyclestringUse this field to indicate the return cycle.
return_modestringUse this field to indicate the return mode.
promptstringThe reminder of stork work.
order_snstringShopee's unique identifier for an order.
qrcodestringThe QR code of the waybill.
ec_supplier_namestringThe supplier name of channel.
ec_bar_code16stringUse this field to indicate the first barcode.
equipment_idstringThe device code.
eshop_idstringThe child code for B2C Family-mart.
ec_bar_code9stringUse this field to indicate the pick barcode.
pelican_tracking_nostringThe tracking number of Shopee Delivery.
print_datestringThe date of printing the wayBill.
pzipstringThe sort code of the order.
pzip_cstringThe barcode of the sort code.
deliver_area_txtstringThe code of the delivery area.
deliver_date_ymdstringExpected delivery date of the order.
sd_driver_codestringLorry driver code of the order.
md_driver_codestringMotorcycle driver code of the order.
putorder_stackzone_codestringStacking area of the order.
customer_codestringThe customer code of Shopee.
deliver_routerstringUse this field to indicate the delivery router.
store_typestringUse this field to indicate the store type.
pick_routerstringUse this field to indicate the pick router.
barcode_dcstringThe main logistic barcode of the waybill.
ec_order_numberstringUse this field to indicate the logistics order number.
barcode_prstringThe sorting barcode of the waybill.
first_pick_barcodestringThe first pick barcode of the waybill.
second_pick_barcodestringThe second pick barcode of the waybill.
is_cod_boolstringUse this field to indicate the service type.
receiver_namestringUse this field to indicate the receiver name.
rcv_store_namestringUse this field to indicate the receiver store name.
branch_codestringUse this field indicates destination service point code.
branch_namestringUse this field indicates destination service point name.
last_third_digits_recipient_phonestringUse this field indicates buyer phone number (last 3 digits).
last_third_digits_sender_phonestringUse this field indicates seller phone number (last 3 digits).
barcode_no1stringFirst barcode no. sacnned when seller drop off
barcode_no2stringSecond barcode no. sacnned when seller drop off
print_datetimestringAWB Print date and time
ok_mid_typestringMiddle type used in OK Mart SOC
ok_aisle_nostringAisle no. used in OK Mart SOC
ok_grid_nostringGrid no used in OK Mart SOC
ok_tracking_numberstringThe tracking number of OK Mart.
barcode_no3stringOK SOC received no.
ship_typestringShip type used by OK Mart
areastringThe area of the collect OK branch used for OK sorting
barcode_no4stringFirst barcode no. sacnned when buyer collect
barcode_no5stringSecond barcode no. sacnned when buyer collect
tw_last_three_digits_buyer_phonestring678[Only for local TW orders] Last 3 digits of buyer's phone number, apply for channel_id: 30005, 30006, 30007,30014,30015
tw_store_namestring聯合門市[Only for TW channel_id:30005 ] Store name for 7-ELEVEN orders.
tw_store_numberstring214559[Only for TW channel_id:30005 ]Store number for 7-ELEVEN orders.
buyer_prefer_delivery_timeobject[Only for TW channel:30017] The time buyer prefers to receive the packages.
slot_idstring4The slot which buyer choose
start_timestring10:00The start time of a day buyer prefer to receive the packages
end_timestring17:00The end time of a day buyer prefer to receive the packages.
descriptionstring住家:本人收货The detailed instructions of the package delivering.
tracking_numberstringMY200448706479ITThe tracking number assigned by the shipping carrier for item shipment.
shopee_tracking_numberstringMY200448706479ITFirst mile tracking NO. for CrossBoard BR seller can be used to self-design CB Brazil AWB.
last_mile_tracking_numberstringThe last-mile tracking number. Only for Cross Board BR seller.
pickup_hubstringThe name of pickup hub.
delivery_hubstringThe name of delivery hub.
deliver_areastringSAN ROQUE 009Zone name.
ec_order_nostringThe name of ec order.
create_date_ymd_slstring2022/12/05The date of create shipment order.
manufacturers_namestringThe name of manufacturer.
manufacturers_websitestringThe website of manufacturer.
is_lm_dg_boolint320Use this field to indicate order contains dangerous goods or not. dg:1 non-dg:0
preferred_delivery_optionint321Use this field to indicate delivery address is residential or office address. 0: not configured 1: office address 2: residential address
spx_sub_districtstringThe sub-district of recipient's address.
spx_receive_stationobjectThe spx receive station.
spx_first_receive_stationstringThe first pickup station.
zonestringThe zone of this order.
zone_codestringDelivery Sub Zone.
destination_base_codestringDistribution Center Code.
last_third_digits_buyer_phonestringUse this field indicates buyer phone number (last 3 digits). For non-TW local sellers
parcel_sizestringcorresponding locker sizing for self-collection locker channels [only available for specific logistic channels: 148003 and 140006]
sodbooleanfalsethis value indicates whether the buyer select "scan on delivery" payment channel at checkout.
buyer_cpf_idstringBuyer's CPF number for taxation and invoice purposes. Only for Brazil order.
mutual_checkint321only apply for ID/VN shops. mutual_check indicates whether the parcel is eligible for Return-on-the-Spot (RoS) co-check. If mutual_check=1, then the parcel is RoS eligible, where drivers and buyers can co-check the parcel. Buyer can then choose to accept or reject the parcel on the spot. If mutual_check=0, then the parcel is ineligible for RoS.
dely_fri_labelstringLProbability of Successful Friday Delivery. The value of L(low), M(medium), H(high) represent the chances of successful delivery attempts on Friday.
dely_sat_labelstringMProbability of Successful Saturday Delivery The value of L(low), M(medium), H(high) represent the chances of successful delivery attempts on Saturday.
dely_sun_labelstringHProbability of Successful Sunday Delivery. The value of L(low), M(medium), H(high) represent the chances of successful delivery attempts on Sunday.
pickup_codestringFor drivers to quickly identify parcel to be picked up. Only returned for ID and TH local orders which use instant+sameday for delivery.
sorting_groupstring[Only for TW 30029 channel] This field indicate the sorting group value of the package. Available values:  - North - South
unpackaged_sku_idstring[Only for TW 30029 channel] Please refer to this number instead of tracking number for this this channel. This field will be empty for other channels.
unpackaged_sku_id_qrcodestring[Only for TW 30029 channel] Please refer to this field to generate the QR code for the shipping document for this channel. This field will be empty for other channels.