Skip to main content
POST
/
api
/
v1
/
core
/
rates
Rates
curl --request POST \
  --url https://api-stage.orchestro.ai/e1/api/v1/core/rates \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "fulfilmentNode": "NODE123",
  "accounts": [
    {
      "accountNumber": "AC0088",
      "accountType": "SHIPPER"
    },
    {
      "accountNumber": "AC0077",
      "accountType": "WMS"
    }
  ],
  "callerType": "WMS",
  "currency": "USD",
  "labelFormat": "PDF",
  "parcels": [
    {
      "dimensions": {
        "height": 12,
        "length": 12,
        "unit": "inch",
        "width": 12
      },
      "parcelType": "P",
      "pickupType": "Pickup",
      "reference1": "123456",
      "reference2": "123456",
      "referenceId": "cf6fea899f1848b494d9568e8266e076",
      "serviceAttributes": [
        "AD_SIGN"
      ],
      "serviceType": "DGRD",
      "shipDate": "2023-12-22T06:34:00",
      "shipFrom": {
        "address1": "280 S YORK RD",
        "address2": "",
        "addressType": "B",
        "city": "BENSENVILLE",
        "company": "SHIPPERZS ATTN NAME",
        "country": "US",
        "email": "",
        "name": "SHIPPERZS ATTN NAME",
        "phone": "",
        "state": "IL",
        "zip": "60106"
      },
      "shipTo": {
        "address1": "637 E WOODBRIDGE AVE",
        "address2": "",
        "addressType": "B",
        "city": "AVENEL",
        "company": "Test-Company-Name",
        "country": "US",
        "email": "",
        "name": "JOSH SMITH",
        "phone": "",
        "state": "NJ",
        "zip": "07001"
      },
      "weight": {
        "unit": "oz",
        "value": 1
      }
    }
  ],
  "sendAllServiceAttributes": true,
  "sendTNT": true,
  "shipmentDate": "2024-12-22T06:34:00",
  "sortOrder": "rate"
}
'
{
  "currency": "USD",
  "parcels": [
    {
      "dimensions": {
        "height": 4,
        "length": 4,
        "unit": "inch",
        "width": 4
      },
      "parcelType": "P",
      "pickupType": "Pickup",
      "quoteId": "301312f9-500a-4e6a-8976-aad12db55e8c",
      "rates": [
        {
          "baseRate": 4.59,
          "destinationSortHub": "KEARNY",
          "serviceAttributes": [
            {
              "available": false,
              "key": "AD_SIGN"
            }
          ],
          "serviceType": "GRD",
          "surcharges": [
            {
              "code": "FUEL",
              "description": "Carrier Fuel SurCharge",
              "rate": 0.23
            }
          ],
          "tnt": "3 - 7 days",
          "totalRate": 4.82,
          "zone": 1
        }
      ],
      "referenceId": "testRefId",
      "serviceType": "GRD",
      "shipDate": "2024-08-22T06:34:00",
      "shipFrom": {
        "address1": "1500 Marilla Street",
        "address2": "",
        "addressType": "B",
        "city": "Dallas",
        "company": "Dallas City Hall",
        "country": "US",
        "email": "",
        "name": "The City Secretary's Office",
        "phone": "",
        "state": "TX",
        "zip": "75201"
      },
      "shipTo": {
        "address1": "210 Joralemon St",
        "address2": "",
        "addressType": "B",
        "city": "Brooklyn",
        "company": "Municipal Building",
        "country": "US",
        "email": "",
        "name": "Brooklyn Municipal Building",
        "phone": "212-669-8090",
        "state": "NY",
        "zip": "11201"
      },
      "weight": {
        "unit": "lb",
        "value": 6
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

Body

application/json

This endpoint accepts a JSON request body that calculates shipping rates based on various parameters. The request includes details about the accounts involved, caller type, currency, label format, parcel specifications (such as dimensions and weight), shipping addresses, optional service attributes, and the shipment date.

fulfilmentNode
string
required

The identifier of the fulfilment node processing the shipment.

Example:

"NODE123"

accounts
object[]

A list of account information for the rate request.

Example:
[
{
"accountNumber": "AC0088",
"accountType": "SHIPPER"
},
{
"accountNumber": "AC0077",
"accountType": "WMS"
}
]
callerType
string

Defines the type of the caller submitting the rate request (e.g., WMS).

Example:

"WMS"

currency
string

The currency for the rate request (e.g., USD).

Example:

"USD"

labelFormat
string

The format for the generated shipping labels (e.g., PDF).

Example:

"PDF"

parcels
object[]

A list of parcels to be rated, with details about their dimensions, weight, and shipping attributes.

sendAllServiceAttributes
boolean

Flag indicating whether all service attributes should be included in the response.

Example:

true

sendTNT
boolean

Flag indicating whether time and transit details (TNT) should be included in the response.

Example:

true

shipmentDate
string

The date and time of the shipment (ISO 8601 format).

Example:

"2024-12-22T06:34:00"

sortOrder
string

Sort order for the returned rates (e.g., 'rate' to sort by price).

Example:

"rate"

Response

200 - application/json

All successful rate responses.

currency
string
Example:

"USD"

parcels
object[]
Example:
[
{
"dimensions": {
"height": 4,
"length": 4,
"unit": "inch",
"width": 4
},
"parcelType": "P",
"pickupType": "Pickup",
"quoteId": "301312f9-500a-4e6a-8976-aad12db55e8c",
"rates": [
{
"baseRate": 4.59,
"destinationSortHub": "KEARNY",
"serviceAttributes": [{ "available": false, "key": "AD_SIGN" }],
"serviceType": "GRD",
"surcharges": [
{
"code": "FUEL",
"description": "Carrier Fuel SurCharge",
"rate": 0.23
}
],
"tnt": "3 - 7 days",
"totalRate": 4.82,
"zone": 1
}
],
"referenceId": "testRefId",
"serviceType": "GRD",
"shipDate": "2024-08-22T06:34:00",
"shipFrom": {
"address1": "1500 Marilla Street",
"address2": "",
"addressType": "B",
"city": "Dallas",
"company": "Dallas City Hall",
"country": "US",
"email": "",
"name": "The City Secretary's Office",
"phone": "",
"state": "TX",
"zip": "75201"
},
"shipTo": {
"address1": "210 Joralemon St",
"address2": "",
"addressType": "B",
"city": "Brooklyn",
"company": "Municipal Building",
"country": "US",
"email": "",
"name": "Brooklyn Municipal Building",
"phone": "212-669-8090",
"state": "NY",
"zip": "11201"
},
"weight": { "unit": "lb", "value": 6 }
}
]