Add tracking

Add a tracking number for an order

HTTP Request: wp-json/wc/v3/ggmp_tracking/{order_id}?param1=value1&param2=value2

Method: PUT

Authentication

Follow this link to authenticate: https://docs.woocommerce.com/document/woocommerce-rest-api/

Params

  • tracking_code:* (string) Tracking number

  • carrier_id:* (string) Shipping carrier slug. See API.

  • send_mail: (1 or 0): Send mail?

  • change_order_status: (string) Order status. Options: pending, processing, on-hold, completed, cancelled, refunded, failed and trash

  • carrier_name: (string) Carrier name

Response

{
    "status": "success",
    "paypal_status": "success",
    "paypal_message": "",
    "message": "Tracking saved",
    "detail": "",
    "tracking_code": "12345678955555869898989",
    "tracking_url": "",
    "tracking_url_show": "https://global.cainiao.com/detail.htm?mailNoList=12345678955555869898989",
    "carrier_name": "",
    "carrier_id": "aliexpress-standard-shipping",
    "carrier_type": "define-carrier",
    "item_id": "",
    "change_order_status": "",
    "paypal_button_class": "inactive",
    "paypal_button_title": "This tracking number was added to PayPal",
    "paypal_added_trackings": "asdasdasdasdss, asdasdasdasdsss, asdasdasdasdsssss, 123456789, 12345678955555, 12345678955555869898989",
    "tracking_service": "",
    "tracking_service_status": "success",
    "tracking_service_message": "",
    "digital_delivery": 0,
    "carrier_url": "https://global.cainiao.com/detail.htm?mailNoList={tracking_number}",
    "detail_add_database": ""
}

Last updated