1. Home
  2. Docs
  3. Courier Connex API
  4. Add Order
  5. Post Request

Post Request

Add Order Request Example

curl --location --request POST 'https://yourcompanyname.courier-connex.com/api/addorder' \
--header 'Content-Type: application/json' \
--data-raw '{
	   "Auth": {
		"account_key" : "054b93c27d790e1e845f59bd54018672",
		"account_token" : "b5f88aadbb6189a2b7e34d2bb3ed8811"
  },
  "packageType": "Pieces",
  "serviceType": "Regular",
  "from": {
    "companyName": "First Company",
    "streetAddress": "9601 95 Ave, Peace River, AB, Canada",
    "streetAddress2": "",
    "city": "Calgary",
    "countryCode": "CA",
    "state": "AB",
    "postalCode": "T8S 1H9",
    "attention": "John Smith",
    "email": "jhons@courier-connex.com",
    "phone": "7807055466",
    "instructions": "Pickup from back door "",
    "pickup_date" : "2024-04-23",
    "pickup_time" : "11:00:00"

   
  },
  "to": {
    "companyName": "Second Company",
    "streetAddress": "5109 40 St, High Prairie, AB, Canada",
    "streetAddress2": "",
    "city": "Edmonton",
    "countryCode": "CA",
    "state": "AB",
    "postalCode": "T0G 1E0",
    "attention": "Jenny Smith",
    "email": "Jennys@courier-connex.com",
    "phone": "587-557-7718",
    "instructions": "Call 15 minutes before arrival",
    "delivery_date" :"2024-04-23",
    "delivery_time" :"12:00:00"
    
  },

  "lineItems": [
    {
      "length": 20,
      "width": 25,
      "height": 25,
      "weight": 25,
      "declaredValue": {
        "amount": 200
      },
      "description": "string"
    },
    {
      "length": 10,
      "width": 10,
      "height": 10,
      "weight": 10,
      "declaredValue": {
        "amount": 200
      },
      "description": "string"
    }
  ]

  
}

How can we help?