Skip to main content

v2.account_health.get_metric_source_detail

GET /api/v2/account_health/get_metric_source_detail

Get the Affected Orders / Relevant Listings / Relevant Violations details of metrics.

Endpoint URL

URL: https://partner.shopeemobile.com/api/v2/account_health/get_metric_source_detail

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
metric_idint64True1ID of metric. Supported values: 1: Late Shipment Rate (All Channels) 3: Non-Fulfilment Rate (All Channels) 4: Preparation Time 12: Pre-order Listing % 15: Days of Pre-order Listing Violation 25: Fast Handover Rate 28: On-time Pickup Failure Rate Violation Value 42: Cancellation Rate (All Channels) 43: Return-refund Rate (All Channels) 52: Severe Listing Violations 53: Other Listing Violations 85: Late Shipment Rate (NDD) 88: Non-fulfilment Rate (NDD 91: Cancellation Rate (NDD) 92: Return-refund Rate (NDD) 96: % SDD Listings 97: % NDD Listings 2001: Fast Handover Rate - SLS 2002: Fast Handover Rate - FBS 2003: Fast Handover Rate - 3PF 2030: % HD Listings 2031: % HD Free Shipping Enabled 2032: Saturday Shipment 2033: Preparation Time PS
page_noint32False1Specifies the page number of data to return in the current call. Starting from 1. if data is more than one page, the page_no can be some entry to start next call. Default is 1.
page_sizeint32False10Each result set is returned as a page of entries. Use the "page_size" filters to control the maximum number of entries to retrieve per page (i.e., per call), and the "page_no" to start next call. This integer value is used to specify the maximum number of entries to return in a single "page" of data. The limit of page_size if between 1 and 100. Default is 10.

Response Parameters

NameTypeSampleDescription
errorstringIndicate error type if hit error. Empty if no error happened.
messagestringIndicate error details if hit error. Empty if no error happened.
request_idstringThe identifier for an API request for error tracking.
responseobject
metric_idint641ID of metric.
nfr_order_listobject[]Affected Orders for Non-fulfilment Rate. Supported metric_id: 3: Non-Fulfilment Rate (All Channels) 88: Non-fulfilment Rate (NDD)
order_snstringOrder SN.
non_fulfillment_typeint32Non-fulfilment type. Applicable values:  1: System Cancellation 2: Seller Cancellation 3: Return Refunds
detailed_reasonint32Reason. Applicable values: 1001: Return Refund 1002: Parcel Split Cancellation 1003: First Mile Pick up fail 1004: Order inclusion 10005: Out of Stock 10006: Undeliverable area 10007: Cannot support COD 10008: Logistics request cancelled 10009: Logistics pickup failed 10010: Logistics not ready 10011: Inactive seller 10012: Seller did not ship order 10013: Order did not reach warehouse 10014: Seller asked to cancel 10015: Non-receipt 10016: Wrong item 10017: Damaged item 10018: Incomplete product 10019: Fake item 10020: Functional Damage 10021: Return Refund
cancellation_order_listobject[]Affected Orders for Cancellation Rate. Supported metric_id: 42: Cancellation Rate (All Channels) 91: Cancellation Rate (NDD)
order_snstringOrder SN.
cancellation_typeint32Cancellation Type. Applicable values: 1: System Cancellation 2: Seller Cancellation
detailed_reasonint32Reason. Applicable values: 1001: Return Refund 1002: Parcel Split Cancellation 1003: First Mile Pick up fail 1004: Order inclusion 10005: Out of Stock 10006: Undeliverable area 10007: Cannot support COD 10008: Logistics request cancelled 10009: Logistics pickup failed 10010: Logistics not ready 10011: Inactive seller 10012: Seller did not ship order 10013: Order did not reach warehouse 10014: Seller asked to cancel 10015: Non-receipt 10016: Wrong item 10017: Damaged item 10018: Incomplete product 10019: Fake item 10020: Functional Damage 10021: Return Refund
return_refund_order_listobject[]Affected Orders for Return-refund Rate. Supported metric_id: 43: Return-refund Rate (All Channels) 92: Return-refund Rate (NDD)
order_snstringOrder SN.
detailed_reasonint32Reason. Applicable values: 1001: Return Refund 1002: Parcel Split Cancellation 1003: First Mile Pick up fail 1004: Order inclusion 10005: Out of Stock 10006: Undeliverable area 10007: Cannot support COD 10008: Logistics request cancelled 10009: Logistics pickup failed 10010: Logistics not ready 10011: Inactive seller 10012: Seller did not ship order 10013: Order did not reach warehouse 10014: Seller asked to cancel 10015: Non-receipt 10016: Wrong item 10017: Damaged item 10018: Incomplete product 10019: Fake item 10020: Functional Damage 10021: Return Refund
lsr_order_listobject[]Affected Orders for Late Shipment Rate. Supported metric_id: 1: Late Shipment Rate (All Channels) 85: Late Shipment Rate (NDD)
order_snstringOrder SN.
shipping_deadlinetimestampShip by date.
actual_shipping_timetimestampSeller arrange shipment time.
late_by_daysint64Late-by Days.
actual_pick_up_timetimestampCourier actual pick up time.
shipping_channelstringLogistics Company.
first_mile_typestringFirst mile shipping type. Applicable values: Pickup Drop off
diagnosis_scenariostring[]Diagnosis of the issue.
fhr_order_listobject[]Affected Orders for Fast Handover Rate. Supported metric_id: 25: Fast Handover Rate 2001: Fast Handover Rate - SLS 2002: Fast Handover Rate - FBS 2003: Fast Handover Rate - 3PF
order_snstringOrder SN.
parcel_idint64Parcel ID.
parcel_display_idstringDisplay Parcel ID.
confirm_timetimestampConfirmed Date.
handover_deadlinetimestampHandover Deadline.
fast_handover_due_datetimestampFast Handover Due Date.
arrange_pick_up_timetimestampSeller arrange pick up time.
handover_timetimestampParcel drop off / pickup time.
shipping_channelstringLogistics Company.
first_mile_typestringFirst mile shipping type. Applicable values: Pickup Drop off
first_mile_tracking_nostringFirst Mile Tracking No.
diagnosis_scenariostring[]Diagnosis of the issue.
opfr_day_detail_data_listobject[]Relevant Violations for OPFR Violation Value. Supported metric_id: 28: On-time Pickup Failure Rate Violation Value
datestring19/10/2024Date.
scheduled_pickup_numint3248Number of scheduled pickups.
failed_pickup_numint3211Number of failed pickups.
opfrint32OPFR.
targetstring49.90%Target.
violation_listing_listobject[]Relevant Listings for Severe Listing Violations and Other Listing Violations. Supported metric_id: 52: Severe Listing Violations 53: Other Listing Violations
item_idint64Item ID.
detailed_reasonint32Reason. Applicable values: 1: Prohibited 2: Counterfeit 3: Spam 4: Inappropriate Image 5: Insufficient Info 6: Mall Listing Improvement 7: Other Listing Improvement 8: PQR Products
update_timetimestampUpdated on.
pre_order_listing_violation_data_listobject[]Relevant Listings for Days of Pre-order Listing Violation. Supported metric_id: 15: Days of Pre-order Listing Violation
datestring03/11/2024Date.
live_listing_countint64100Number of Live Listings.
pre_order_listing_countint3210Number of pre-order Listings.
pre_order_listing_rateint32Pre-order Listing %.
targetstring13.00%Target.
pre_order_listing_listobject[]Relevant Listings for Pre-order Listing. Supported metric_id: 12: Pre-order Listing %
item_idint64Item ID.
current_pre_order_statusint32Current Pre-order Status. Applicable values: 1: Yes 2: No
sdd_listing_listobject[]Relevant Listings for % SDD Listings. Supported metric_id: 96: % SDD Listings.
item_idint64Item ID.
current_sdd_statusint32Current SDD Status. Applicable values: 1: Yes 0: No
ndd_listing_listobject[]Relevant Listings for % NDD Listings. Supported metric_id: 97: % NDD Listings.
item_idint64Item ID.
current_ndd_statusint32Current NDD Status. Applicable values: 1: Yes 0: No
apt_order_listobject[]Affected Parcels for Preparation Time. Supported metric_id: 4: Preparation Time
order_snstringOrder SN.
order_create_timetimestampOrder Paid Time.
arrange_pick_up_timetimestampSeller arrange pick up time.
actual_pick_up_timetimestampCourier actual pick up time.
preparation_daysfloatPreparation Days.
shipping_channelstringLogistics Company.
first_mile_typestringFirst mile shipping type. Applicable values: Pickup Drop off
first_mile_tracking_nostringFirst Mile Tracking No.
hd_listing_listobjectRelevant Listings for % HD Listings and % HD Free Shipping Enabled. Supported metric_id: 2030: % HD Listings 2031: % HD Free Shipping Enabled
item_idint64Item ID.
current_statusint32For 2030: % HD Listings, it refer to Current HD Status. For 2031: % HD Free Shipping Enabled, it refer to Free Shipping Enabled Status. Applicable values: 1: Yes 2: No
saturday_shipment_listobject[]Affected Parcels for Saturday Shipment Supported metric_id: 2032: Saturday Shipment
order_snstringOrder SN.
order_create_timetimestampOrder Paid Time.
arrange_pick_up_timetimestampSeller arrange pick up time.
actual_pick_up_timetimestampCourier actual pick up time.
preparation_daysfloatPreparation Days.
shipping_channelstringLogistics Company.
first_mile_typestringFirst mile shipping type. Applicable values: Pickup Drop off
first_mile_tracking_nostringFirst Mile Tracking No.
total_countint32Total number of Affected Orders or Relevant Listings.