Todogift Shipping API

外掛說明

Todogift Shipping API exposes a simple, production-focused REST API endpoint so an external service can retrieve shipping rates calculated by WooCommerce on a vendor’s store.

This plugin is primarily built for stores integrating with the Todogift platform. It can also be used by any external system that needs authenticated access to WooCommerce-calculated shipping rates.

This plugin does not re-implement shipping logic. It delegates to WooCommerce shipping calculation, so all configured rules apply:

  • Shipping zones and locations
  • Shipping methods (Flat rate, Free shipping, etc.)
  • Table/weight/amount rules from shipping plugins (e.g. relay / carrier plugins)

Endpoints

  • GET /wp-json/todogift/v1/status (auth required)
  • GET /wp-json/todogift/v1/shipping/free-shipping-rules (auth required; core WooCommerce Free shipping min amount rules)
  • POST /wp-json/todogift/v1/shipping/calculate (auth required)

Authentication

All endpoints require authentication using WooCommerce REST API keys.

For security, always use HTTPS and HTTP Basic Auth when calling the API. Do not transmit API keys over plain HTTP.

Privacy

The plugin does not track users and does not send data to third-party servers by itself. It only responds to authenticated API requests.

安裝方式

  1. Upload the todogift-shipping-api folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Ensure WooCommerce is installed and active.
  4. Create WooCommerce REST API keys (WooCommerce Settings Advanced REST API) and share them with your integration.

常見問題集

Does this plugin send any data to Todogift automatically?

No. The plugin only responds to authenticated API requests. It does not phone home.

What data is exposed by the API?

The shipping/calculate endpoint returns shipping rates for a provided address and product IDs. It does not return customer account data. Access is restricted by WooCommerce REST API keys.

Does this plugin require a Todogift account?

To use it with Todogift, you will need a Todogift integration. Without Todogift (or another integration calling the endpoints), the plugin has no user-facing UI and simply exposes authenticated endpoints.

Is this compatible with all shipping plugins?

The plugin relies on WooCommerce shipping calculation. Compatibility depends on whether the installed shipping plugins properly register rates via WooCommerce shipping APIs.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Todogift Shipping API〉的開發相關工作。

參與者

將〈Todogift Shipping API〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0.1

  • Shipping rates response now includes method_id and instance_id (WooCommerce shipping method identifiers).

1.0.0

  • Initial release: calculate shipping endpoint.
  • Added status endpoint and free-shipping rules endpoint.