Rates
Shipping rate requests
All endpoints require a bearer token (oh_... API key or user JWT) and are served under https://api.orderly-hub.com. Use the Try it consoles to run a request against the Preview (test) server.
Get shipping rates
POST
/api/v1/ratesRequest body
| Field | Type | Description |
|---|---|---|
carrierAccountId | string | |
shipFrom | Address | |
shipTo | Address | |
parcels | array |
{
"carrierAccountId": "550e8400-e29b-41d4-a716-446655440000",
"shipFrom": {
"name": "Jane Doe",
"company": "string",
"address1": "string",
"address2": "string",
"city": "string",
"province": "string",
"provinceCode": "string",
"zip": "94107",
"country": "string",
"countryCode": "string",
"phone": "string",
"email": "jane@example.com"
},
"shipTo": {
"name": "Jane Doe",
"company": "string",
"address1": "string",
"address2": "string",
"city": "string",
"province": "string",
"provinceCode": "string",
"zip": "94107",
"country": "string",
"countryCode": "string",
"phone": "string",
"email": "jane@example.com"
},
"parcels": [
{}
]
}
Responses
200 Rate quotes
POST
/api/v1/ratesGet shipping rates
https://api-test.orderly-hub.com/api/v1/ratesGet rates using order data
POST
/api/v1/rates/from-order/{orderId}Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
orderId | path | yes | string |
Request body
| Field | Type | Description |
|---|---|---|
carrierAccountId | string |
{
"carrierAccountId": "550e8400-e29b-41d4-a716-446655440000"
}
Responses
200 Rate quotes for order
POST
/api/v1/rates/from-order/{orderId}Get rates using order data
https://api-test.orderly-hub.com/api/v1/rates/from-order/Save a rate snapshot
POST
/api/v1/rates/snapshotsRequest body
{}
Responses
201 Snapshot saved
POST
/api/v1/rates/snapshotsSave a rate snapshot
https://api-test.orderly-hub.com/api/v1/rates/snapshotsGet a rate snapshot
GET
/api/v1/rates/snapshots/{id}Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
id | path | yes | string |
Responses
200 Snapshot details
GET
/api/v1/rates/snapshots/{id}Get a rate snapshot
https://api-test.orderly-hub.com/api/v1/rates/snapshots/