{"info":{"_postman_id":"54a8e348-db89-5a2a-02bf-43dc145b7efd","name":"MacroPoint Carrier API","description":"<html><head></head><body><p>Last Update: 08/13/2018</p>\n<p>The MacroPoint \"Carrier Side\" API allows a carrier to provide:</p>\n<ul>\n<li><strong>Location updates</strong> in the form of lat/long coordinate sets or complete address</li>\n<li><strong>Load event updates</strong> as arrival or departure notations</li>\n<li><strong>Assignment of a tracking method</strong> as cell number, vehicle ID for ELD connection, trailer ID for GPS connection, railcar ID for RFID scan identification and/or rail GPS data</li>\n</ul>\n<p>Location updates and event updates can and should be used in conjunction with one another.</p>\n<p>Tracking method assignment calls should be used to automatate the process of assigning cell phone numbers to a requesting party's tracking requests in the absence of another data source. If an ELD/GPS connection has already been established by MacroPoint you may automate the assignment of vehicle/trailer IDs via this call as well. Ask your MacroPoint rep about adding these connections.</p>\n<h1 id=\"authorization\">Authorization</h1>\n\n<p>Authorization is granted via basic auth - a username and password, concatenated with a colon, base64 encoded. Your MacroPoint activation rep will provide the required username and password at the time of connection.</p>\n<p>Example: <code>username:password</code> encoded becomes <code>dXNlcm5hbWU6cGFzc3dvcmQ=</code></p>\n<p>This would be passed in the header as <code>Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=</code></p>\n<p><a href=\"https://www.base64encode.org/\">https://www.base64encode.org/</a></p>\n<h1 id=\"error-codes\">Error Codes</h1>\n\n<h4 id=\"return\">Return:</h4>\n<ul>\n<li>201: Success</li>\n<li>400: Bad request</li>\n<li>5xx: Server failure</li>\n</ul>\n<h4 id=\"error-return-example\">Error Return Example:</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>&lt;TMSLocationDataResult&gt;\n    &lt;Errors&gt;\n        &lt;Error&gt;\n            &lt;Code&gt;{ErrorCode}&lt;/Code&gt;\n            &lt;Message&gt;{Message}&lt;/Message&gt;\n        &lt;/Error&gt;\n    &lt;/Errors&gt;\n&lt;/TMSLocationDataResult&gt;\n</code></pre><table>\n    <tbody><tr>\n        <th>Error Code</th>\n        <th>Description</th>\n    </tr>\n    <tr>\n        <td>1000</td>\n        <td>All argument/domain-rule validation exceptions</td>\n    </tr>\n    <tr>\n        <td>9999</td>\n        <td>Unexpected error occurred – Administrator notified</td>\n    </tr>\n</tbody></table>\n\n<h1 id=\"calls\">Calls</h1></body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Authorization","slug":"authorization"},{"content":"Error Codes","slug":"error-codes"},{"content":"Calls","slug":"calls"}],"owner":"4593392","collectionId":"54a8e348-db89-5a2a-02bf-43dc145b7efd","publishedId":"RWEcRgiW","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2018-08-13T20:51:48.000Z"},"item":[{"name":"Location Update","event":[{"listen":"test","script":{"id":"6277ebec-7495-46a0-9d7b-e9c4a02a1c19","exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"id":"8a48dd87-df0e-40b0-adaa-2c0323406a74","exec":["var carriers = {}","","carriers[\"5507396\"] = { ","//Name and API credentials","    MPID: \"5507396\", ","    Name: \"TEST: MacroPoint Carrier\",","    Username: \"5507396\", ","    Password: \"ABC123\", ","//Sender identifiers","    SenderLoadID: \"DocumentTest2\",","    VehicleID: \"veh1\",","//Requestor identifiers","    RequestorMPID: \"1107351\",","    RequestorLoadID: \"DocumentTest2\",","    AllowAccessMPID: \"1107351\",","//Location","    Latitude: \"45.517500\",","    Longitude: \"-122.680077\",","    Uncertainty: \"\",","    CreatedDateTime: \"2018-07-05T21:42Z\",","    AddLine1: \"\",","    AddLine2: \"\",","    City: \"\",","    State: \"\",","    PostalCode: \"\",","    CountryCode: \"\",","","}","","var carrier = carriers[\"5507396\"];","","pm.variables.set(\"SenderLoadID\", carrier.SenderLoadID);","pm.variables.set(\"VehicleID\", carrier.VehicleID);","pm.variables.set(\"RequestorMPID\", carrier.RequestorMPID);","pm.variables.set(\"RequestorLoadID\", carrier.RequestorLoadID);","pm.variables.set(\"AddLine1\", carrier.AddLine1);","pm.variables.set(\"AddLine2\", carrier.AddLine2);","pm.variables.set(\"City\", carrier.City);","pm.variables.set(\"State\", carrier.State);","pm.variables.set(\"PostalCode\", carrier.PostalCode);","pm.variables.set(\"CountryCode\", carrier.CountryCode);","pm.variables.set(\"MacroPointStopID\", carrier.MacroPointStopID);","pm.variables.set(\"CompleteDateTime\", carrier.CompleteDateTime);","pm.variables.set(\"AllowAccessMPID\", carrier.AllowAccessMPID);","pm.variables.set(\"Latitude\", carrier.Latitude);","pm.variables.set(\"Longitude\", carrier.Longitude);","pm.variables.set(\"Uncertainty\", carrier.Uncertainty);","pm.variables.set(\"CreatedDateTime\", carrier.CreatedDateTime);","pm.variables.set(\"Username\", carrier.Username);","pm.variables.set(\"Password\", carrier.Password);","","console.log(\"setting variables for [\" + carrier.MPID + \"] \" + carrier.Name);"],"type":"text/javascript"}}],"id":"25002fe9-7dc1-3f5a-d44a-674e534ecf69","request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}],"advancedConfig":[{"key":"showPassword","value":"<show-password>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/xml"}],"body":{"mode":"raw","raw":"<TMSLocationData xmlns='http://macropoint-lite.com/xml/1.0'>\n  <Sender>\n    <LoadID></LoadID>\n  </Sender>\n  <Requestor>\n    <MPID></MPID>\n    <LoadID></LoadID>\n  </Requestor>\n  <AllowAccessFrom>\n    <MPID></MPID>\n  </AllowAccessFrom>\n  <Location>\n    <Coordinates>\n      <Latitude></Latitude>\n      <Longitude></Longitude>\n    </Coordinates>\n    <Address> \n      <Line1></Line1> \n      <Line2></Line2> \n      <City></City> \n      <StateOrProvince></StateOrProvince> \n      <PostalCode></PostalCode> \n      <CountryCode></CountryCode> \n    </Address> \n    <Uncertainty></Uncertainty> \n    <CreatedDateTime></CreatedDateTime>\n  </Location>\n</TMSLocationData>"},"url":"https://macropoint-lite.com/api/1.0/tms/data/location","description":"<h3 id=\"field-descriptions\">Field Descriptions</h3>\n<p>Fields in <strong>bold</strong> are required. You may pass a coordiante set <em><strong>or</strong></em> a complete address. You do not need both.</p>\n<h4 id=\"sender\">Sender</h4>\n<ul>\n<li><strong>LoadID:</strong> How the load is identified in your TMS/database</li>\n<li>VehicleID: The ID of the vehicle that is/will be assigned</li>\n</ul>\n<h4 id=\"requestor\">Requestor</h4>\n<ul>\n<li><strong>MPID:</strong> The MacroPoint ID of the customer requesting visibility from you</li>\n<li><strong>LoadID:</strong> What your customer is using to identify their tracking session within MacroPoint</li>\n</ul>\n<h4 id=\"allowaccessfrom\">AllowAccessFrom</h4>\n<ul>\n<li><strong>MPID:</strong> The MacroPoint ID of the customer requesting visibility from you once again</li>\n</ul>\n<h4 id=\"location\">Location</h4>\n<ul>\n<li><strong>Latitude:</strong> Latitude in decimal degrees</li>\n<li><strong>Longitude:</strong> Longitude in decimal degrees</li>\n</ul>\n<p>           <em><strong>OR</strong></em></p>\n<ul>\n<li><strong>Address line 1/line2:</strong> Street name and number</li>\n<li><strong>City:</strong> City, may be abbreviated</li>\n<li><strong>StateOrProvince:</strong> State, may be abbreviated</li>\n<li><strong>PostalCode:</strong> Postal code of current location</li>\n<li><strong>CountryCode:</strong> In ISO 3166-1 alpha-2 or alpha-3, example: US or USA</li>\n<li>Uncertainty: Radius in miles of the area of uncertainty of the location fix. This value is an indication of the quality of the fix. A smaller radius indicates a lower degree of uncertainty about the actual location of the device.</li>\n<li><strong>CreatedDateTime:</strong> The time of the location polling in ISO 8601 UTC format. Example:  2018-11-04T19:25Z or 2018-11-04T19:25:30Z</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","1.0","tms","data","location"],"host":["macropoint-lite","com"],"query":[],"variable":[]}},"response":[{"id":"02d3ee28-1065-470f-ace4-d076d33f94d9","name":"Old location rejection","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/xml","disabled":false}],"body":{"mode":"raw","raw":"<TMSLocationData xmlns='http://macropoint-lite.com/xml/1.0'>\n  <Sender>\n    <LoadID></LoadID>\n  </Sender>\n  <Requestor>\n    <MPID></MPID>\n    <LoadID></LoadID>\n  </Requestor>\n  <AllowAccessFrom>\n    <MPID></MPID>\n  </AllowAccessFrom>\n  <Location>\n    <Coordinates>\n      <Latitude></Latitude>\n      <Longitude></Longitude>\n    </Coordinates>\n    <CreatedDateTime></CreatedDateTime>\n  </Location>\n</TMSLocationData>"},"url":"https://macropoint-lite.com/api/1.0/tms/data/location"},"status":"Bad Request","code":400,"_postman_previewlanguage":"xml","header":[{"key":"Content-Length","value":"360","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/xml; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 03 Jul 2018 21:39:44 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"Microsoft-IIS/8.5","name":"Server","description":"A name for the server"},{"key":"X-Powered-By","value":"ASP.NET","name":"X-Powered-By","description":"Specifies the technology (ASP.NET, PHP, JBoss, e.g.) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version)"}],"cookie":[],"responseTime":null,"body":"<?xml version=\"1.0\" encoding=\"utf-8\"?><TMSLocationDataResult xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"><Errors><Error><Code>1000</Code><Message>Created DateTime 2018-06-12T19:35Z cannot be more than 2880 minutes in the past.</Message><Severity>Unknown</Severity></Error></Errors></TMSLocationDataResult>"},{"id":"0d160426-0f9b-4b62-ae42-f09a68e8a15f","name":"Credentials incorrect","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/xml","disabled":false}],"body":{"mode":"raw","raw":"<TMSLocationData xmlns='http://macropoint-lite.com/xml/1.0'>\n  <Sender>\n    <LoadID></LoadID>\n  </Sender>\n  <Requestor>\n    <MPID></MPID>\n    <LoadID></LoadID>\n  </Requestor>\n  <AllowAccessFrom>\n    <MPID></MPID>\n  </AllowAccessFrom>\n  <Location>\n    <Coordinates>\n      <Latitude></Latitude>\n      <Longitude></Longitude>\n    </Coordinates>\n    <CreatedDateTime></CreatedDateTime>\n  </Location>\n</TMSLocationData>"},"url":"https://macropoint-lite.com/api/1.0/tms/data/location"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"plain","header":[{"key":"Content-Length","value":"0","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Date","value":"Thu, 05 Jul 2018 21:49:39 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"Microsoft-IIS/8.5","name":"Server","description":"A name for the server"},{"key":"WWW-Authenticate","value":"Basic realm=\"MacroPoint\"","name":"WWW-Authenticate","description":"Indicates the authentication scheme that should be used to access the requested entity."},{"key":"X-Powered-By","value":"ASP.NET","name":"X-Powered-By","description":"Specifies the technology (ASP.NET, PHP, JBoss, e.g.) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version)"}],"cookie":[],"responseTime":null,"body":""},{"id":"e5fc2ad1-2a3e-439a-983d-0e549bd0fe05","name":"Successful location update","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/xml","disabled":false}],"body":{"mode":"raw","raw":"<TMSLocationData xmlns='http://macropoint-lite.com/xml/1.0'>\n  <Sender>\n    <LoadID></LoadID>\n  </Sender>\n  <Requestor>\n    <MPID></MPID>\n    <LoadID></LoadID>\n  </Requestor>\n  <AllowAccessFrom>\n    <MPID></MPID>\n  </AllowAccessFrom>\n  <Location>\n    <Coordinates>\n      <Latitude></Latitude>\n      <Longitude></Longitude>\n    </Coordinates>\n    <CreatedDateTime></CreatedDateTime>\n  </Location>\n</TMSLocationData>"},"url":"https://macropoint-lite.com/api/1.0/tms/data/location"},"status":"Created","code":201,"_postman_previewlanguage":"plain","header":[{"key":"Content-Length","value":"0","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Date","value":"Thu, 05 Jul 2018 21:44:01 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"Microsoft-IIS/8.5","name":"Server","description":"A name for the server"},{"key":"X-Powered-By","value":"ASP.NET","name":"X-Powered-By","description":"Specifies the technology (ASP.NET, PHP, JBoss, e.g.) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version)"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"25002fe9-7dc1-3f5a-d44a-674e534ecf69"},{"name":"Event Update","event":[{"listen":"test","script":{"id":"65672d94-41c5-4e9d-af22-f2b261416336","exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"id":"f67998b2-9a5d-4293-91a8-94e18e31e335","exec":["var carriers = {}","","carriers[\"5507396\"] = { ","//Name and API credentials","    MPID: \"5507396\", ","    Name: \"TEST: MacroPoint Carrier\",","    Username: \"5507396\", ","    Password: \"ABC123\", ","//Sender identifiers","    SenderLoadID: \"DocumentTest2\",","//Requestor identifiers","    RequestorMPID: \"1107351\",","    RequestorLoadID: \"DocumentTest2\",","    AllowAccessMPID: \"1107351\",","//Stop Address","    StopName: \"McDonald's\",","    StopType: \"Pickup\",","    AddLine1: \"1035 SW 6th Ave\",","    AddLine2: \"\",","    City: \"Portland\",","    State: \"OR\",","    PostalCode: \"97204\",","    CountryCode: \"USA\",","//Stop Information","    StartDateTime: \"\",","    EndDateTime: \"\",","    SequenceNumber: \"1\",","    StopID: \"\",","    Notes: \"test\",","    MacroPointStopID: \"\",","    EventName: \"Arrived\",","    CompleteDateTime: \"2018-07-05T21:42Z\",",""," }","","var carrier = carriers[\"5507396\"];","","pm.variables.set(\"SenderLoadID\", carrier.SenderLoadID);","pm.variables.set(\"RequestorMPID\", carrier.RequestorMPID);","pm.variables.set(\"RequestorLoadID\", carrier.RequestorLoadID);","pm.variables.set(\"StopName\", carrier.StopName);","pm.variables.set(\"StopType\", carrier.StopType);","pm.variables.set(\"AddLine1\", carrier.AddLine1);","pm.variables.set(\"AddLine2\", carrier.AddLine2);","pm.variables.set(\"City\", carrier.City);","pm.variables.set(\"State\", carrier.State);","pm.variables.set(\"PostalCode\", carrier.PostalCode);","pm.variables.set(\"CountryCode\", carrier.CountryCode);","pm.variables.set(\"StartDateTime\", carrier.StartDateTime);","pm.variables.set(\"EndDateTime\", carrier.EndDateTime);","pm.variables.set(\"SequenceNumber\", carrier.SequenceNumber);","pm.variables.set(\"StopID\", carrier.StopID);","pm.variables.set(\"Notes\", carrier.Notes);","pm.variables.set(\"MacroPointStopID\", carrier.MacroPointStopID);","pm.variables.set(\"EventName\", carrier.EventName);","pm.variables.set(\"CompleteDateTime\", carrier.CompleteDateTime);","pm.variables.set(\"AllowAccessMPID\", carrier.AllowAccessMPID);","pm.variables.set(\"Username\", carrier.Username);","pm.variables.set(\"Password\", carrier.Password);","","console.log(\"setting variables for [\" + carrier.MPID + \"] \" + carrier.Name);"],"type":"text/javascript"}}],"id":"2cb0a9cc-1d6c-567f-47e9-b5dec417a9ac","request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}],"advancedConfig":[{"key":"showPassword","value":"<show-password>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/xml"}],"body":{"mode":"raw","raw":"<TMSStopEventData xmlns='http://macropoint-lite.com/xml/1.0'>\n     <Sender>\n          <LoadID></LoadID>\n     </Sender>\n     <Requestor>\n          <MPID></MPID>\n          <LoadID></LoadID>\n     </Requestor>\n     <Stop>\n     <Name></Name>\n          <StopType></StopType>\n          <Address>\n               <Line1></Line1>\n               <Line2></Line2>\n               <City></City>\n               <StateOrProvince></StateOrProvince>\n               <PostalCode></PostalCode>\n               <CountryCode></CountryCode>\n          </Address>\n          <StartDateTime></StartDateTime>\n          <EndDateTime></EndDateTime>\n          <SequenceNumber></SequenceNumber>\n          <StopID></StopID>\n          <Notes></Notes>\n          <MacroPointStopID></MacroPointStopID>\n     </Stop>\n     <Event>\n          <Name></Name>\n          <CompletedDateTime></CompletedDateTime>\n          <Form>\n               <FormItems>\n                    <FormItem>\n                         <ItemId></ItemId>\n                         <Value></Value>\n                    </FormItem>\n                    <FormItem>\n                        <ItemId></ItemId>\n                        <Value></Value>\n                    </FormItem>\n               </FormItems>\n          </Form>\n     </Event>\n</TMSStopEventData>"},"url":"https://macropoint-lite.com/api/1.0/tms/data/stopevent","description":"<h3 id=\"field-descriptions\">Field Descriptions</h3>\n<p>Fields in <strong>bold</strong> are required.</p>\n<h4 id=\"sender\">Sender</h4>\n<ul>\n<li><strong>LoadID:</strong> How the load is identified in your TMS/database</li>\n<li>VehicleID: The ID of the vehicle that is/will be assigned</li>\n</ul>\n<h4 id=\"requestor\">Requestor</h4>\n<ul>\n<li><strong>MPID:</strong> The MacroPoint ID of the customer requesting visibility from you</li>\n<li><strong>LoadID:</strong> What your customer is using to identify their tracking session within MacroPoint</li>\n</ul>\n<h4 id=\"stop\">Stop</h4>\n<ul>\n<li><strong>Name:</strong> The name you would like to give the stop. Max 64 characters</li>\n<li><strong>StopType:</strong> Should be \"PickUP\" or \"DropOff\"</li>\n<li><strong>Address line 1/line2:</strong> Street name and number</li>\n<li><strong>City:</strong> City, may be abbreviated</li>\n<li><strong>StateOrProvince:</strong> State, may be abbreviated</li>\n<li><strong>PostalCode:</strong> Postal code of current location</li>\n<li><strong>CountryCode:</strong> In ISO 3166-1 alpha-2 or alpha-3, example: US or USA</li>\n<li>StartDateTime/EndDateTime: Should be in IS0 8601 UTC Format\na. E.g. 2014-11-04T19:25Z or 2014-11-04T19:25:30Z</li>\n<li>SequenceNumber: The sequence of the stop in the tripsheet</li>\n<li>Notes: Any notes relevant to the stop</li>\n<li>StopID: The stop ID used internally by your TMS system</li>\n<li>MacroPointStopID: A reference ID passed by MacroPoint to you in a previous call, identifying the stop</li>\n</ul>\n<h4 id=\"event\">Event</h4>\n<ul>\n<li><strong>Name:</strong> Should be \"Arrived\" or \"Departed\"</li>\n<li><strong>CompletedDateTime:</strong> The time this event was completed at the stop in ISO 8601 UTC format. Example:  2018-11-04T19:25Z or 2018-11-04T19:25:30Z</li>\n<li>FormItem: Used for custom form information. Node can be repeated as many times as there are form values to be\nsubmitted/updated.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","1.0","tms","data","stopevent"],"host":["macropoint-lite","com"],"query":[],"variable":[]}},"response":[{"id":"5f815cc4-74d4-4dfc-bb4a-c5b09f1a43be","name":"Successful event update","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/xml","disabled":false}],"body":{"mode":"raw","raw":"<TMSStopEventData xmlns=\"http://macropoint-lite.com/xml/1.0\">\n     <Sender>\n          <LoadID></LoadID>\n     </Sender>\n     <Requestor>\n          <MPID></MPID>\n          <LoadID></LoadID>\n     </Requestor>\n     <Stop>\n     <Name></Name>\n          <StopType></StopType>\n          <Address>\n               <Line1></Line1>\n               <City></City>\n               <StateOrProvince></StateOrProvince>\n               <PostalCode></PostalCode>\n          </Address>\n          <SequenceNumber></SequenceNumber>\n     </Stop>\n     <Event>\n          <Name></Name>\n          <CompletedDateTime></CompletedDateTime>\n     </Event>\n</TMSStopEventData>"},"url":"https://macropoint-lite.com/api/1.0/tms/data/stopevent"},"status":"Created","code":201,"_postman_previewlanguage":"plain","header":[{"key":"Content-Length","value":"0","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Date","value":"Thu, 05 Jul 2018 21:42:48 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"Microsoft-IIS/8.5","name":"Server","description":"A name for the server"},{"key":"X-Powered-By","value":"ASP.NET","name":"X-Powered-By","description":"Specifies the technology (ASP.NET, PHP, JBoss, e.g.) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version)"}],"cookie":[],"responseTime":null,"body":""},{"id":"af0631ca-9038-4d1f-8ded-8bd089524302","name":"Old event rejection","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/xml","disabled":false}],"body":{"mode":"raw","raw":"<TMSStopEventData xmlns=\"http://macropoint-lite.com/xml/1.0\">\n     <Sender>\n          <LoadID></LoadID>\n     </Sender>\n     <Requestor>\n          <MPID></MPID>\n          <LoadID></LoadID>\n     </Requestor>\n     <Stop>\n     <Name></Name>\n          <StopType></StopType>\n          <Address>\n               <Line1></Line1>\n               <City></City>\n               <StateOrProvince></StateOrProvince>\n               <PostalCode></PostalCode>\n          </Address>\n          <SequenceNumber></SequenceNumber>\n     </Stop>\n     <Event>\n          <Name></Name>\n          <CompletedDateTime></CompletedDateTime>\n     </Event>\n</TMSStopEventData>"},"url":"https://macropoint-lite.com/api/1.0/tms/data/stopevent"},"status":"Bad Request","code":400,"_postman_previewlanguage":"xml","header":[{"key":"Content-Length","value":"344","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/xml; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Tue, 03 Jul 2018 21:56:38 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"Microsoft-IIS/8.5","name":"Server","description":"A name for the server"},{"key":"X-Powered-By","value":"ASP.NET","name":"X-Powered-By","description":"Specifies the technology (ASP.NET, PHP, JBoss, e.g.) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version)"}],"cookie":[],"responseTime":null,"body":"<?xml version=\"1.0\" encoding=\"utf-8\"?><TMSStopEventDataResult xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"><Errors><Error><Code>1000</Code><Message>Event CompletedDateTime cannot be more than 24 hours in the past</Message><Severity>Fatal</Severity></Error></Errors></TMSStopEventDataResult>"}],"_postman_id":"2cb0a9cc-1d6c-567f-47e9-b5dec417a9ac"},{"name":"Tracking Assignment","event":[{"listen":"prerequest","script":{"id":"4727a1c8-b818-4688-8097-f90a2ef86c60","exec":["var carriers = {}","","carriers[\"5507396\"] = { ","//Name and API credentials","    MPID: \"5507396\", ","    Name: \"TEST: MacroPoint Carrier\",","    Username: \"5507396\", ","    Password: \"ABC123\", ","//Requestor identifiers","    RequestorMPID: \"1107351\",","    RequestorLoadID: \"DocumentTest2\",","//Number Typer and Tracking Number","    NumberType: \"\",","    TrackingNumner: \"\",","","}","","var carrier = carriers[\"5507396\"];","","pm.variables.set(\"RequestorMPID\", carrier.RequestorMPID);","pm.variables.set(\"RequestorLoadID\", carrier.RequestorLoadID);","pm.variables.set(\"Username\", carrier.Username);","pm.variables.set(\"Password\", carrier.Password);","pm.variables.set(\"NumberType\", carrier.NumberType);","pm.variables.set(\"TrackingNumber\", carrier.TrackingNumber);","","console.log(\"setting variables for [\" + carrier.MPID + \"] \" + carrier.Name);"],"type":"text/javascript"}}],"id":"5b77d45f-4e06-4bf2-b6bf-9bb1a5ecef2a","request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":""},{"key":"password","value":""}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/xml"}],"body":{"mode":"raw","raw":"<TrackingNumberData xmlns='http://macropoint-lite.com/xml/1.0'>\r\n <Number Type=\"\"></Number>\r\n <Requestor>\r\n\t<MPID></MPID>\r\n\t<LoadID></LoadID>\r\n </Requestor>\r\n</TrackingNumberData>"},"url":"https://macropoint-lite.com/api/1.0/order/trackingnumberassignment","description":"<h3 id=\"field-descriptions\">Field Descriptions</h3>\n<p>Fields in <strong>bold</strong> are required.</p>\n<h4 id=\"tracking-method-assignment\">Tracking method assignment</h4>\n<ul>\n<li><strong>Number Type:</strong> \"type\" should be Mobile, MacroPoint, ShipmentID, or VehicleID</li>\n<li><strong>TrackingNumber:</strong> Formatting is based on the \"type\" used:<table>\n<tr>\n  <th>Type</th>\n  <th>Description</th>\n  <th>TrackingNumber Example</th>\n</tr>\n<tr>\n  <td>Mobile</td>\n  <td> cellphone number</td>\n  <td>1234567890 without any formatting characters</td>\n</tr>\n<tr>\n  <td>MacroPoint</td>\n  <td>12 character alpha-numeric sequence</td>\n  <td>12C3GHTR154Y</td>\n</tr>\n<tr>\n  <td>ShipmentID</td>\n  <td>carrier/customer TMS load ID</td>\n  <td>BOL-123548123</td>\n</tr>\n<tr>\n  <td>VehicleID</td>\n  <td>Truck/Trailer ID as used by the carrier's ELD/GPS provider</td>\n  <td>Bill Williams - 17, Trailer 5, D3476</td>\n</tr>\n</table></li>\n</ul>\n<h4 id=\"requestor\">Requestor</h4>\n<ul>\n<li><strong>MPID:</strong> The MacroPoint ID of the customer requesting visibility from you</li>\n<li><strong>LoadID:</strong> What your customer is using to identify their tracking session within MacroPoint</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","1.0","order","trackingnumberassignment"],"host":["macropoint-lite","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"5b77d45f-4e06-4bf2-b6bf-9bb1a5ecef2a"}],"event":[{"listen":"prerequest","script":{"id":"28453bfe-ebed-4218-bb33-d429205a3a02","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"758693d5-6abc-4c38-83fd-c5036b02f965","type":"text/javascript","exec":[""]}}],"variable":[{"key":"SenderLoadID","value":""},{"key":"VehicleID","value":""},{"key":"RequestorMPID","value":""},{"key":"RequestorLoadID","value":""},{"key":"StopName","value":""},{"key":"StopType","value":""},{"key":"AddLine1","value":""},{"key":"AddLine2","value":""},{"key":"City","value":""},{"key":"State","value":""},{"key":"PostalCode","value":""},{"key":"CountryCode","value":""},{"key":"StartDateTime","value":""},{"key":"EndDateTime","value":""},{"key":"SequenceNumber","value":""},{"key":"StopID","value":""},{"key":"Notes","value":""},{"key":"MacroPointStopID","value":""},{"key":"EventName","value":""},{"key":"CompleteDateTime","value":""},{"key":"AllowAccessMPID","value":""},{"key":"Latitude","value":""},{"key":"Longitude","value":""},{"key":"Uncertainty","value":""},{"key":"Username","value":""},{"key":"Password","value":""},{"key":"CreatedDateTime","value":""},{"key":"NumberType","value":""},{"key":"TrackingNumber","value":""}]}