Create new transport order

Cre­at­ing new trans­port order in Trans.eu Plat­form and send­ing it direct­ly to cho­sen car­ri­er.

Url parameters and connection settings

  • URL: https://api.platform.trans.eu
  • End­point: /ex­t/orders-api/v1/orders-cre­at­ed
  • Method: POST

Headers:

  • Con­tent-type: application/json
  • Accept: application/json
  • Autho­riza­tion: Bear­er {access_token}
  • Api-key: {unique_ap­p_api-key}

Authorization

Autho­riza­tion process is described here. Each API request must also con­sist of unique Api-key obtained dur­ing appli­ca­tion reg­is­tra­tion togeth­er with client_id and client_secret.

Example

Sam­ple Json for cre­at­ing new order using required data only

{
  "freight": {
    "requirements": {
      "is_ftl": true,
      "required_truck_bodies": [
        "curtainsider",
        "box"
      ]
    },
    "carrier": {
      "company_id": 1013865
    },
    "capacity": 20,
    "loads": [],
    "spots": [
      {
        "spot_order": 1,
        "place": {
          "address": {
            "locality": "Kraków",
            "postal_code": "31-001",
            "country": "PL"
          }
        },
        "operations": [
          {
            "operation_order": 1,
            "loads": [],
            "type": "loading",
            "timespans": {
              "begin": "2021-06-22T11:00:00+0200",
              "end": "2021-06-22T12:00:00+0200"
            }
          }
        ]
      },
      {
        "spot_order": 2,
        "place": {
          "address": {
            "locality": "Dąbrowa Środkowa",
            "postal_code": "59-330",
            "country": "PL"
          }
        },
        "operations": [
          {
            "type": "unloading",
            "operation_order": 1,
            "loads": [],
            "timespans": {
              "begin": "2021-06-23T11:00:00+0200",
              "end": "2021-06-23T11:00:00+0200"
            }
          }
        ]
      }
    ]
  },
  "payment": {
    "days": 30,
    "price": {
      "type": "km",
      "value": 1500,
      "currency": "pln"
    }
  },
  "monitoring": {
    "required": true
  }
}