+

As dynamic as friendly

Developers - Plan an expedition

You can even plan your shipments through our API. The complete submission request and this one are very similar.

Plan an expedition

To schedule a shipment you simply need to add the sender's account number to the complete quote request.

The account must be added to the account list which can be controlled by your API! Only FM Logique administrators can modify this list!
        URL: https://api.fmlogique.com/ship/ 
        POST: {
            "apiKey": "YOUR-API-KEY",
            "PickAddress": {
                "Name": "FM Logique",
                "Contact": "François",
                "Adressline1": "1395 Rue Fleury Est",
                "Adressline2": "Suite 102.2",
                "Adressline3": "",
                "City": "Montréal",
                "Province": "QC",
                "Code": "H2C 1R7",
                "Phone": "(438)777-6857",
                "PhoneExt": "",
                "Email": "info@fmlogique.com"
            },
            "DestAddress": {
                "Name": "FM Logique",
                "Contact": "François",
                "Adressline1": "1395 Rue Fleury Est",
                "Adressline2": "Suite 102.2",
                "Adressline3": "",
                "City": "Montréal",
                "Province": "QC",
                "Code": "H2C 1R7",
                "Phone": "(438)777-6857",
                "PhoneExt": "",
                "Email": "info@fmlogique.com"
            },
            "RVDate": "2020-02-28 21:47",
            "Service": "jour",
            "Account":"0",
            "Parcels": [
                {
                    "Parcel": "Boite",
                    "Weight": "10.00",
                    "Size": "10 X 12 X 8"
                },
                {
                    "Parcel": "Enveloppe",
                    "Weight": "1.00",
                    "Size": "1 X 1 X 1"
                }
            ]
        }       

Account: (STRING)

Indicate the account number of the FM Logique customer.

Service: (STRING)

The choice of service must be indicated and available at the time of the request.
  • jour: Next day.
  • periode: Half day.
  • 180: Regular 3 hours.
  • 120: Express 2 hours.
  • 60: Exclusive 1 hour.

The elements of special instructions:

  • ParcelNote: Note on packages.
  • Note: General instructions.
  • PickNote: Instructions for Picking.
  • DestNote: Delivery Instructions.
  • Reference: The client's reference.

JSON response

Operation

  • If response indicates the elements ShippingID and TrackingNumber then the shipment is planned.

          
        {
            "ShippingID": 600601739,
            "TrackingNumber": 600601739,
            "message": "Une nouvelle commande à été créé!",
            "result": [
                {
                    "ID": 5,
                    "ServiceTag": "jour",
                    "ServiceNameFr": "Lendemain",
                    "ServiceNameEn": "Next day",
                    "DeliveryDate": "2020-03-02 17:00",
                    "BasePrice": 5,
                    "SurchargeCharges": [],
                    "SurchargeTotal": 0,
                    "TaxCharges": [
                        {
                            "ID": "GST",
                            "Charge": 0.25,
                            "Rate": 0.05,
                            "NameFr": "TPS",
                            "NameEn": "GST"
                        },
                        {
                            "ID": "PST",
                            "Charge": 0.5,
                            "Rate": 0.1,
                            "NameFr": "TVQ",
                            "NameEn": "PST"
                        },
                        {
                            "ID": "HST",
                            "Charge": 0,
                            "Rate": 0,
                            "NameFr": "TVH",
                            "NameEn": "HST"
                        }
                    ],
                    "SubTotal": 5,
                    "Total": 5.75
                }
            ],
            "errors": []
        }           

Description of the root elements of the response


ShippingID: (INT)

The FM Logique shipping number.

TrackingNumber: (INT)

The FM Logique tracking number.

message: (STRING)

The message of success.

result: (ARRAY)

Available services.

errors: (ARRAY)

Error messages.


Description of the elements of the result object

ID: (INT)

The FM Logique service id.

ServiceTag: (STRING)

The TAG of the FM Logique service. (jour,periode,180,120,60)

ServiceNameFr: (STRING)

The name of the service in French.

ServiceNameEn: (STRING)

The name of the service in English.

DeliveryDate: (STRING)

The maximum expected date and time of delivery.

BasePrice: (FLOAT)

The base price.

SurchargeCharges: (ARRAY)

Additional costs are detailed.
  • NameFr: (STRING) The description of the additional charge in French.
  • NameEn: (STRING) The description of the additional charge in English.
  • Charge: (FLOAT) Amount of additional charge.

SurchargeTotal: (FLOAT)

The total amount of additional charges.

TaxCharges: (ARRAY)

The taxes are detailed.
  • ID: (INT) The tax id
  • Charge: (FLOAT) The amount of tax.
  • Rate: (FLOAT) The tax rate.
  • NameFr: (STRING) The description of the tax in French.
  • NameEn: (STRING) the description of the tax in English.

SubTotal: (FLOAT)

The subtotal.

Total: (FLOAT)

The total price.

To understand how it works!

In order to facilitate the integration of our functionalities into your system and to fully understand our APIs, you can use our test console provided for this purpose. Thanks to the documentation and the test console made available to you, the people who develop your website, software or application will be able to integrate our functionalities. For example, a button that would instantly schedule a shipment with the information you have in your system. Your shipments can also be scheduled automatically, for example when one of your customers buys one of your products and wishes to receive it by parcel. The automation possibilities are very lucrative in the end, since they save our customers a lot of time!

Test console
Developers
Shipments

25k

Packages delivered

Distance

1.5

Million kilometers

Help and Resources

3

Representatives

You have questions?

+
Are you sure you want to log out?
Logout