Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Module: Mage_Sales

Resource: sales_order_shipment

Aliases:

  • order_shipment
Method:
  • sales_order_shipment.info (SOAP V1)
  • salesOrderShipmentInfo (SOAP V2)

Allows you to retrieve the shipment information.

Aliases:

  • order_shipment.info

Arguments:

TypeNameDescription
stringsessionIdSession ID
stringshipmentIncrementIdOrder shipment increment ID

Returns:

TypeNameDescription
arrayresultArray of salesOrderShipmentEntity

The salesOrderShipmentEntity content is as follows:

TypeNameDescription
stringincrement_idShipment increment ID
stringstore_idStore ID
stringcreated_atDate of shipment creation
stringupdated_atDate of shipment updating
stringshipping_address_idShipping address ID
stringorder_idOrder ID
stringtotal_qtyTotal quantity of items to ship
stringshipment_idShipment ID
arrayitemsArray of salesOrderShipmentItemEntity
arraytracksArray of salesOrderShipmentTrackEntity
arraycommentsArray of salesOrderShipmentCommentEntity

The salesOrderShipmentItemEntity content is as follows:

TypeNameDescription
stringparent_idParent ID
stringskuShipment item SKU
stringnameShipment item name
stringorder_item_idOrder item ID
stringproduct_idProduct ID
stringweightWeight
stringpricePrice
stringqtyQuantity of items
stringitem_idItem ID

The salesOrderShipmentTrackEntity content is as follows:

TypeNameDescription
stringparent_idParent ID
stringcreated_atDate of tracking number creation
stringupdated_atDate of tracking number updating
stringcarrier_codeCarrier code
stringtitleTrack title
stringnumberTracking number
stringorder_idOrder ID
stringtrack_idTrack ID

The salesOrderShipmentCommentEntity content is as follows:

TypeNameDescription
stringparent_idParent ID
stringcreated_atDate of comment creation
stringcommentShipment comment text
stringis_customer_notifiedDefines whether the customer is notified
stringcomment_idComment ID

Examples

Request example SOAP V1
$client = new SoapClient('http://magentohost/api/soap/?wsdl');
$session = $client->login('apiUser', 'apiKey');
$result = $client->call($session, 'sales_order_shipment.info', '200000003');
var_dump($result);
Request example SOAP V2
$proxy = new SoapClient('http://magentohost/api/v2_soap/?wsdl'); // TODO : change url
$sessionId = $proxy->login('apiUser', 'apiKey'); // TODO : change login and pwd if necessary

$result = $proxy->salesOrderShipmentInfo($sessionId, '200000003');
var_dump($result);
Request example SOAP V2 (WS-I Compliance Mode)
$proxy = new SoapClient('http://magentohost/api/v2_soap/?wsdl'); 

$sessionId = $proxy->login((object)array('username' => 'apiUser', 'apiKey' => 'apiKey')); 
 
$result = $proxy->salesOrderShipmentInfo((object)array('sessionId' => $sessionId->result, 'shipmentIncrementId' => '200000003'));   
var_dump($result->result);

Table of contents