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-only
WooCommerce PayPal Payments Ecommerce woocommerce-paypal-payments/get-order-tracking

Look 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().

Newsletter

The AI + WordPress space moves fast. Keep up.

New tools, workflow ideas, and product updates — be the first to know what's next.

No spam, unsubscribe anytime.