POST api/Edi/Railcar/SaveRailcarGateTransaction
Use this method to save a transaction from an automated railcar gate reader.
Request Information
URI Parameters
None.
Body Parameters
RailcarGateTransactionRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| CompanyCode |
This should be either "15" for Frontier Logistics or "73" for Mission Rail. |
string |
None. |
| GateLocationID |
Specifies the location of the gate reader. Should be a static value assigned to the gate reader that generated the transaction. |
string |
None. |
| TxnType |
Should be "In" or "Out" to indicate if the railcar is arriving or departing, respectively. |
string |
None. |
| RailcarLabel |
This is the identifier for the railcar (or the locomotive/unknown asset). |
string |
None. |
| TrackId |
The Track ID of the arrival/departure. |
string |
None. |
| Position |
(Optional) The position of the railcar in the string of railcars that are arriving or departing. |
integer |
None. |
| EquipmentType |
Indicates whether the transaction is for a Locomotive, Railcar, or and Unknown asset. |
string |
None. |
| ScanningDateTime |
The date/time that the railcar was scanned by the gate reader. |
date |
None. |
| DirFrom |
The direction from which the railcar was traveling when it was scanned. |
string |
None. |
| DirTo |
The direction to which the railcar was traveling when it was scanned. |
string |
None. |
Request Formats
application/json, text/json
{
"CompanyCode": "sample string 1",
"GateLocationID": "sample string 2",
"TxnType": "SAMPLE STRING 3",
"RailcarLabel": "SAMPLE STRING 4",
"TrackId": "SAMPLE STRING 5",
"Position": 1,
"EquipmentType": "SAMPLE STRING 6",
"ScanningDateTime": "2025-11-05T15:07:05.6768394-06:00",
"DirFrom": "SAMPLE STRING 7",
"DirTo": "SAMPLE STRING 8"
}
text/html
{"CompanyCode":"sample string 1","GateLocationID":"sample string 2","TxnType":"SAMPLE STRING 3","RailcarLabel":"SAMPLE STRING 4","TrackId":"SAMPLE STRING 5","Position":1,"EquipmentType":"SAMPLE STRING 6","ScanningDateTime":"2025-11-05T15:07:05.6768394-06:00","DirFrom":"SAMPLE STRING 7","DirTo":"SAMPLE STRING 8"}
Response Information
Resource Description
RailcarGateTransactionResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| EquipmentIdNo |
Indicates the EquipmentIdNo of the railcar record that was created or updated by the Save method. |
integer |
None. |
| ActionTaken |
Returns either Created, Arrived, Departed, or None depending on the action taken by the Save method. |
string |
None. |
Response Formats
application/json, text/json, text/html
Sample not available.