Postback - via API

Postback - via API

Using RESTful Customer.API option, your system can pull data directly from OneFlo/efm App.

Implementation


Speak to your Account Manager who will help you work out if the API method is right for your system.

If it is, you will be provided with an API authentication token.

Your development team can then call our Customer.API Get Consignments with appropriate parameters.

 

Swagger: https://uat-apidocs.flipgroup.com.au/

 

GET Consignments

This method pulls unmanifested as well as manifested consignments with their full data set. The data here for each consignment includes:

  • connote number

  • any references

  • sender

  • recipient

  • service used

  • shipping units and their barcodes (including any dangerous goods or pallet information)

  • scan events if there are any

image-20240307-053817.png

 

GET Quotes

This method pulls quotes based on consignment data. This requires the following data so that it can be accurate:

  • sender

  • recipient

  • shipping unit information (packaging type, length, width, height, weight). This is the data extracted from the GET Consignments response.

  • dangerous goods flag

Once the array of services is retrieved, then match the service code retrieved from the GET Consignments response. The quoted costs will be the rough estimate.

image-20250530-013923.png

Usage Recommendations

The endpoint can be used to retrieve a rough estimate. Costs may vary depending on the timeframe between despatch date and expected delivery date. This method is best used when using POST Consignment as part of the consignment creation process.

 

GET Scans

This method allows a party to retrieve scan events from OneFlo/efm App

image-20241211-221349.png

The results will look like:

{ "noOfResults": 1, "nextScanId": 550000001, "scanEvents": [ { "consignmentId": 12345678, "connote": "connote", "consignmentReference": "reference", "occurredAtLocalTime": "2024-12-09T12:41:58", "code": "code", "description": "string", "extraInfo": "string", "barcode": "string", "itemNumber": 1 } ] }

Usage Recommendations

The endpoint can be used to retrieve a delta (just the changes) since the last time the scans were retrieved. This is recommended in lieu of providing a range of dates to retrieve data. To facilitate this, use the nextScanId to retrieve subsequent updates (e.g. every 15-60 minutes).

To do this, you’ll need to seed the nextScanId by grabbing a set of scan events from a range of dates. Once you have received the first set of scan events, you use the nextScanId provided in the response to seed for the subsequence calls: e.g.

https://api.flipgroup.com.au/customers/XXXXXX/scans?nextScanId=xxxxxxxxx&maxResults=1000

The response from each call will return an updated nextScanId, which should be used in the next call. This should be repeated until noOfResults is returned as less then the supplied maxResults (eg 1000) which means there are no more results to retrieve at this time.

Technical Requirements

Postback - Technical Requirements