Get PayPal order tracking is a WordPress ability from WooCommerce PayPal Payments — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.
Install Free Plugin →Get PayPal order tracking
Read-onlyLook up the shipment tracking entries PayPal has on file for a specific WooCommerce order.
Requires the WooCommerce PayPal Payments plugin with WooCommerce 10.9+ (which brings the Abilities API loader; implies WordPress 6.9+). Abilities are additionally gated behind the `woocommerce_paypal_payments_abilities_enabled` filter, which defaults to false, so a site admin or developer must explicitly enable it before any ability registers. Every ability requires the current user to have the 'manage_woocommerce' capability.
What it does
Given a WooCommerce order ID, this ability first confirms the order exists (returning a not-found error otherwise), then calls OrderTrackingEndpoint::list_tracking_information(), which issues two synchronous PayPal API calls to fetch the tracking entries registered with PayPal for that order. Each returned shipment includes carrier, tracking number, and status, serialized via the shipment entity's own to_array() method. If PayPal has no trackers for the order, it returns an empty shipments array rather than an error.
See it in action
You ask your AI assistant
"What's the PayPal tracking status for WooCommerce order #4521?"
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| wc_order_id | integer | Yes | The WooCommerce order ID whose tracking entries should be returned. |
Returns
An object with `wc_order_id` and a `shipments` array, each shipment containing carrier, tracking number, and status details.
Permission
The current user must have the 'manage_woocommerce' capability, checked via AbilitiesRegistrar::can_manage_woocommerce().
More WooCommerce PayPal Payments abilities
Get PayPal order
Look up a PayPal order's status and purchase-unit details by PayPal order ID or WooCommerce order ID.
Get PayPal Payments connection status
Check whether the store's PayPal merchant account is connected and see its sandbox/live mode, merchant ID, and email, without exposing API credentials.
Get PayPal Payments payment methods
List every PayPal payment gateway configured in the store along with its enabled state and any setup warnings.