Retrieve Services
Provider/Service Information
When interacting with eHub’s shipment services, the service_id and package_type fields are critical. These values help you identify the service and the types of packages supported. Below are key details on how to handle these fields.
Key Fields in Response
- service_id: An integer used when creating a shipment.
- package_type: An array that lists supported package types for each service. Use the
package_types[i].typevalue when submitting requests to ensure you use the correct package type.
JSON
{
"services": [
{
"service_id": 683,
"service": "First Class Mail",
"service_code": "usps_first_class",
"carrier_code": "usps",
"category": "shipping",
"package_types": [
{
"type": "large_envelope",
"name": "LargeEnvelope"
},
{
"type": "parcel",
"name": "Parcel"
},
{
"type": "letter",
"name": "Letter"
},
{
"type": "softpack",
"name": "Softpack"
}
],
"sort_order": null
}
]
}
Services With No Listed Package Types
If you encounter services that don't have any package types listed, this means that the service defaults to the "parcel" package type. This is typically observed in some shipping options like UPS Express or ExpressPlus.
JSON
{
"service_id": 669,
"service": "Express",
"service_code": "ups_express",
"carrier_code": "ups",
"category": "shipping",
"package_types": [],
"sort_order": null
},
{
"service_id": 670,
"service": "ExpressPlus",
"service_code": "ups_express_plus",
"carrier_code": "ups",
"category": "shipping",
"package_types": [],
"sort_order": null
},
Query Parameters
categorystring
Service category code
Enum values:
ecommerceshippingResponse
200
Object
Retrieve Services
Response Attributes
servicesarray
Carrier services
Show child attributes
Was this section helpful?
GET
/
Select
1
Response
Was this section helpful?