POST /V1/shipment/track
POST /V1/shipment/track is a Magento 2 REST endpoint in the Sales module. Performs persist operations for a specified shipment track. Requires an admin Bearer token with ACL Magento_Sales::shipment.
Last verified: against Magento 2.4.9.
Returns
Magento\Sales\Api\Data\ShipmentTrackInterface
Shipment track interface.
Service contract
Magento\Sales\Api\ShipmentTrackRepositoryInterface::save
Authorization
Admin Bearer token with ACL:
- Magento_Sales::shipment
Body parameters
The shipment track.
Example request
Auto-generated from the service contract — paste-ready against your store's /rest/default base. Replace the host, store code, ACL token, and any required values before running.
Headers
Path
/V1/shipment/trackBody
{
"entity": {
"carrier_code": "",
"created_at": "",
"description": "",
"entity_id": 0,
"extension_attributes": {},
"order_id": 0,
"parent_id": 0,
"qty": 0,
"title": "",
"track_number": "",
"updated_at": "",
"weight": 0
}
}Related in Sales
Other endpoints shipped by the same module.
/V1/creditmemo
Performs persist operations for a specified credit memo.
Sales · Magento\Sales\Api\CreditmemoRepositoryInterface::save
/V1/creditmemo/:id
Loads a specified credit memo.
Sales · Magento\Sales\Api\CreditmemoRepositoryInterface::get
/V1/creditmemo/:id
Cancels a specified credit memo.
Sales · Magento\Sales\Api\CreditmemoManagementInterface::cancel
/V1/creditmemo/:id/comments
Lists comments for a specified credit memo.
Sales · Magento\Sales\Api\CreditmemoManagementInterface::getCommentsList
/V1/creditmemo/:id/comments
Performs persist operations for a specified entity.
Sales · Magento\Sales\Api\CreditmemoCommentRepositoryInterface::save
/V1/creditmemo/:id/emails
Emails a user a specified credit memo.
Sales · Magento\Sales\Api\CreditmemoManagementInterface::notify
Every Magento dev tool, in one hosted workspace.
Free to sign up. Nothing to install. Drafts, audits, and projects saved across every tool.