+

As dynamic as friendly

Developers - JSON response

In this section, you will find the documentation concerning the response obtained for the requests for submissions.

JSON response

    {
        "result": [
            {
                "ID": 5,
                "ServiceTag": "jour",
                "ServiceNameFr": "Lendemain",
                "ServiceNameEn": "Next day",
                "DeliveryDate": "2020-03-03 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": []
    }           

Operation

  • If a service is not available at the time of the request, it will not be displayed.
  • if the packages are too big or too heavy no service will be displayed.

Description of the root elements of the response

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