Skip to main content

v2.logistics.get_booking_shipping_document_data_info

POST /api/v2/logistics/get_booking_shipping_document_data_info

Use this api to fetch the logistics information of a booking these info can be used for airwaybill printing. Dedicated for crossborder SLS order airwaybill. May not be applicable for local channel airwaybill. Besides, this api supports returning personal info as images.

Endpoint URL

URL: https://partner.shopeemobile.com/api/v2/logistics/get_booking_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
booking_snstringTrue201201E81SYYKEShopee's unique identifier for a booking.
recipient_address_infoobject[]Falserecipient address to query as image
keystringTruenamefields to query in the recipient address, should be name, phone, full_address, town, district, city, state, region, zipcode.
styleobjectFalseimage style
text_stylestring[]False["bold", "italic"]supports bold and italic
font_sizeint64False12supports 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.
recipient_address_infoobject
keystringnamequeried field in recipient address
imagestringdata:image/png;base64,/9j/4AAQSkZJRgABAgEASABIAAD/……base64 encoded png data string
shipping_document_infoobject
booking_weightint64500Use this field to indicate booking weight when calculate the shipping fee. The unit of weigh is gram.
logistics_channel_idint6428016The identity of logistic channel.
shipping_carrierstringStandard DeliveryThe logistics service provider for the booking.
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.
tracking_numberstringMY200448706479ITThe tracking number assigned by the shipping carrier for item shipment.
pickup_hubstringThe name of pickup hub.
delivery_hubstringThe name of delivery hub.
deliver_areastringSAN ROQUE 009Zone name.
ec_booking_nostringThe name of ec booing.
create_date_ymd_slstring2022/12/05The date of create shipment booking.
manufacturers_namestringThe name of manufacturer.
manufacturers_websitestringThe website of manufacturer.
is_lm_dg_boolint640Use this field to indicate booking contains dangerous goods or not. dg:1 non-dg:0
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 booking.
zone_codestringDelivery Sub Zone.
destination_base_codestringDistribution Center Code.