وەسف
Official Website: https://baro.ir/
Who should use this plugin?
Only businesses approved as Baro B2B clients.
To use this plugin, you MUST get credentials from Baro support:
1) Visit https://baro.ir/
2) Request B2B API/WordPress integration
3) Provide your server IP(s) for whitelist
4) Receive B2B username/password and permissions
5) Wait for B2B client activation by Baro team
After activation, plugin works with your credentials.
First setup checklist
- Credentials received from Baro support
- IP whitelist done
- Required permissions enabled on your B2B client
Features
- JWT login + auto refresh token
- Track order
- Create/cancel order
- Add B2B support comments to owned orders
- Estimate price
- Discount validate/apply
- Wallet balance/pay order/pay batch
- Batch endpoints (estimate/create/validate/compatible cities)
- Cities and pickup slots
- WooCommerce integration
- Persian tracking shortcode: [baro_track_order]
API schema notes
- payment_type must be PREPAID or POSTPAID.
- COD is sent as the separate boolean field cod.
- create-order and estimate-price use the full order schema, including province/city, optional terminal IDs, sender/receiver, package value, optional custom dimensions, and package flags.
- create-order may return order_id/order_code at the top level; this plugin also supports older nested response shapes.
- pickup-slots supports origin_city, destination_city, origin_terminal_id, warehouse_id, service_type, and max_slots.
- comment-order accepts order_id or order_code plus comment text.
- cancel-order, discount/apply, and wallet/pay-order require the order UUID (order_id), not the public tracking code.
Troubleshooting
- 401: invalid credential, contact Baro support
- 403: IP not whitelisted
- Permission denied: missing permission in B2B client profile
External Services
This plugin connects to the Baro Logistics B2B API to create and manage shipment requests and retrieve logistics-related information.
It sends store order data, shipment details, authentication credentials, and related customer information to the Baro Logistics API whenever logistics operations are performed by the site administrator or customer.
This service is provided by Baro Logistics:
– Terms of Service: https://baro.ir/terms
– Privacy Policy: https://baro.ir/terms#privacy
The plugin also connects to the Ipify API to detect the outbound public IP address of the server during API configuration and diagnostics.
No personal user data is intentionally sent to Ipify. The request only retrieves the server’s public IP address.
This service is provided by Ipify:
– Terms of Service: https://www.ipify.org/
– Privacy Policy: https://www.ipify.org/
Support
Website: https://baro.ir/
For credential issuance, whitelist changes, and permissions, contact support via website.
دامەزراندن
1) Upload folder baro-logistics-b2b-client to /wp-content/plugins/
2) Activate plugin “Baro Logistics B2B Client”
3) Open WordPress admin menu “بارو لجستیک”
4) Enter Base URL + B2B username/password
5) Save and click “لاگین”
Base URL values:
– Production: https://baro.ir/api/b2b/
– Stage: https://barobus.ir/api/b2b/
پێداچوونەوەکان
هیچ پێداچوونەوەیەک نەنووسراوە بۆ ئەم پێوەکراوە.
بەشداربووان و گەشەپێدەران
“Baro Logistics B2B Client” نەرمەواڵەیەکی سەرچاوە کراوەیە. ئەم کەسانەی خوارەوە بەشدارییان تێدا کردووە.
بەشداربووان“Baro Logistics B2B Client” وەربگێڕە بۆ زمانەکەی خۆت.
دەتەوێت بەشداربیت لە گەشەپێدان؟
گەڕان لە کۆدەکەدا بکە، سەیری تەمارگەی (SVN) بکە، یان بەشداربە لە ڕووداوتۆماری گەشەپێدان لە ڕێگەی (RSS).
ڕووداوتۆمارگەریی گۆڕین
1.0.2
- Updated create-order response handling for top-level order_id and order_code.
- Added admin fields for optional terminal IDs and custom package dimensions.
- Added pickup-slots fields for origin_terminal_id, warehouse_id, and max_slots.
- Added comment-order support from the admin test panel.
- Hardened Base URL normalization to always use /api/b2b/.
- Updated documentation for the current B2B API schema.
1.0.1
- Previous public release.