Skip to main content
Omnitracs Knowledge Base

Get Delivery Status

getDeliveryStatus

 

Returns the detailed delivery status of an existing delivery. This response include status of overall as well as for each vehicle that is associated with this delivery.

If an error occurs, a soap fault will be thrown.

It is an error to request the status of a deleted delivery request.
 

GetDeliveryStatusResponse getDeliveryStatus(GetDeliveryStatusRequest deliveryId)

  • deliveryId: The id of a previously created delivery. Must not be deleted.

 

Sample XML Request  

Only the SOAP body is shown. To see a sample SOAP Envelope and Header, click here.

<SOAP-ENV:Body>
   <ns2:getDeliveryStatusRequest xmlns:ns2="http://www.qualcomm.com/mms">2003</ns2:getDeliveryStatusRequest>
 </SOAP-ENV:Body>

 

Sample XML Response  

<SOAP-ENV:Body>
  <ns2:getDeliveryStatusResponse xmlns:ns2="http://www.qualcomm.com/mms">
    <ns2:numCompleted>1</ns2:numCompleted>
    <ns2:numConsumed>1</ns2:numConsumed>
    <ns2:numFailed>0</ns2:numFailed>
    <ns2:numPending>0</ns2:numPending>
    <ns2:numFailedToValidate>0</ns2:numFailedToValidate>
    <ns2:completed>true</ns2:completed>
    <ns2:bytesWifi>16104</ns2:bytesWifi>
    <ns2:bytesTerrestrial>16104</ns2:bytesTerrestrial>
    <ns2:statusDevices>
      <ns2:vehicleId>FakeMCP200001</ns2:vehicleId>
      <ns2:status>Complete</ns2:status>
      <ns2:dateDelivered>2011-09-30T18:25:02.927Z</ns2:dateDelivered>
      <ns2:dateConsumed>2011-09-30T18:25:05.073Z</ns2:dateConsumed>
    </ns2:statusDevices>
  </ns2:getDeliveryStatusResponse>
</SOAP-ENV:Body>

 

Elements of getDeliveryStatusResponse:

  • numPending: Total number of devices that have yet to receive the file.
  • numFailedToValidate: Total number of devices that did not have the file sent due to a validation problem.
  • numFailed: Total number of devices that had a failure receiving the file.
  • numConsumed: Count of devices where the file has been viewed.
  • numCompleted: Count of devices that have received the file.
  • completed: Delivery is complete or not.(It may not be possible to indicate an overall completion.)
  • bytesWifi: How many bytes downloaded over wifi so far.
  • bytesTerrestrial: How many bytes were downloaded over terrestrial so far.

Per Vehicle Status in statusDevices List: 

  • vehicleId: The vehicle id.
  • status: Status state Transmitting, Complete or Failed.
  • failReason: If failed, the reason it failed.
  • dateDelivered: Date it was available on the mobile.
  • dateConsumed: Date it was consumed on the mobile.
     

Sample Soap Fault


<SOAP-ENV:Body>
  <SOAP-ENV:Fault>
    <faultcode>SOAP-ENV:Server</faultcode>
    <faultstring xml:lang="en">DeliveryStatus request failed. Exception
      getting request status. javax.persistence.NoResultException: No entity
      found for query; nested exception is
      javax.persistence.PersistenceException:
      javax.persistence.NoResultException: No entity found for query
    </faultstring>
  </SOAP-ENV:Fault>
</SOAP-ENV:Body>

 

  • Was this article helpful?