Blog archive

FCS API - Synchronizing Fuling Transactions

The best method for synchronizing fuel transactions is to use Reference API Call.

 

GET API Call:

api.gatex.ai/fcs/FCS/Reference?key=API-Key&dateTime=2024-08-29T00:00:00&limit=200

curl -X 'GET' \
  'https://api.gatex.ai/fcs/FCS/Reference?key=API-Key&limit=200' \
  -H 'accept: */*'

Response:

[
    {
        "Id": 6595821,
        "Reference": "N",
        "SequenceId": 39833,
        "Meter": "DT22",
        "SecondaryTag": "",
        "Operator": "34937",
        "Asset": "PL42998",
        "AccumulatorType": "O",
        "Sitecode": "EM",
        "Project": "EM825",
        "PlateNo": "42998",
        "Master": "DT22 Master Tag",
        "Accumulator": 362521,
        "Volume": 31.76,
        "Type": "Rented",
        "StartTime": "2024-08-29T10:10:19",
        "EndTime": "2024-08-29T10:11:10",
        "Status": "E",
        "ServerTimestamp": "2024-08-29T10:11:38",
        "UpdateTimestamp": null
    }...

]

Post API Call:

curl -X 'POST' \
  'https://api.gatex.ai/fcs/FCS/Reference?key=API-Key' \
  -H 'accept: */*' \
  -H 'Content-Type: application/json' \
  -d '[
  6595821,6595844
]'

Reponse:
2