POST api/AddReference

Allows adding a reference number to a parcel

Parameters

* Required
Property Description
TrackingNumber (String)
*  Parcel's Tracking Number
Reference (String)
*  Reference number associated with the parcel
Key (Guid)
* Your i-parcel API key (visible in your Dashboard via the Integrate link.)

Request body formats

application/json, text/json

Sample:
{
  "TrackingNumber": "sample string 1",
  "Reference": "sample string 2",
  "Key": "4dbb396d-a926-46cf-8595-4068e4a550a4"
}

application/xml, text/xml

Sample:
<AddReferenceRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GlobalAccessLibrary.Models.WebRequest">
  <Key>4dbb396d-a926-46cf-8595-4068e4a550a4</Key>
  <Reference>sample string 2</Reference>
  <TrackingNumber>sample string 1</TrackingNumber>
</AddReferenceRequest>

Response Information

You will get back a Code, a Message describing the outcome of the process, and an alphanumeric string which identifies the transaction

Response body formats

application/json, text/json

Sample:
{
  "Message": "sample string 1",
  "Code": 2,
  "Transaction": "sample string 3"
}

application/xml, text/xml

Sample:
<ApiResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GlobalAccessLibrary.Models.WebResponse">
  <Code>2</Code>
  <Message>sample string 1</Message>
  <Transaction>sample string 3</Transaction>
</ApiResponse>