1. Home
  2. Docs
  3. Courier Connex API
  4. Estimate Price
  5. Post Request

Post Request

Estimate Price Request Example

curl --location --request POST 'https://yourcompanyname.courier-connex.com/api/estimateorder' \
--header 'Content-Type: application/json' \
--data-raw '{
    "Auth": {
		"account_key" : "054b93c27d790e1e845f59bd54018672",
		"account_token" : "b5f88aadbb6189a2b7e34d2bb3ed8811"
  },
  "from": {
    "companyName": "First Company",
    "streetAddress": "9601 95 Ave, Peace River, AB, Canada",
    "streetAddress2": "",
    "city": "Calgary",
    "countryCode": "CA",
    "state": "AB",
    "postalCode": "T8S 1H9",
    "attention": "James",
    "email": "ahosni@courier-connex.com",
    "phone": "4168979787",
    "instructions": "test api ",
    "residential": true,
    "notify": true
  },
  "to": {
    "companyName": "Second Compay",
    "streetAddress": "5109 40 St, High Prairie, AB, Canada",
    "streetAddress2": "",
    "city": "Edmonton",
    "countryCode": "CA",
    "state": "AB",
    "postalCode": "T0G 1E0",
    "attention": "Mo",
    "email": "mo@courier-connex.com",
    "phone": "4168979787",
    "instructions": "",
    "residential": true,
    "notify": true
  },
    "packageType": "Pieces",
  "lineItems": [
    {
      "length": 20,
      "width": 25,
      "height": 25,
      "weight": 25,
      "declaredValue": {
        "currency": "CAD",
        "amount": 200
      },
      "description": "string"
    }
  ]
}

'