diff --git a/docs/index.html b/docs/index.html index c561f25..98cb2fe 100644 --- a/docs/index.html +++ b/docs/index.html @@ -355,7 +355,7 @@ 55.627 l 55.6165,55.627 -231.245496,231.24803 c -127.185,127.1864 -231.5279,231.248 -231.873,231.248 -0.3451,0 -104.688, -104.0616 -231.873,-231.248 z - " fill="currentColor">
Download OpenAPI specification:Download
ShipEngine's easy-to-use REST API lets you manage all of your shipping needs without worrying about the complexities of different carrier APIs and protocols. We handle all the heavy lifting so you can focus on providing a first-class shipping experience for your customers at the best possible prices.
+ " fill="currentColor">Download OpenAPI specification:Download
ShipEngine's easy-to-use REST API lets you manage all of your shipping needs without worrying about the complexities of different carrier APIs and protocols. We handle all the heavy lifting so you can focus on providing a first-class shipping experience for your customers at the best possible prices.
Each of ShipEngine's features can be used by itself or in conjunction with each other to build powerful shipping functionality into your application or service.
If you're new to REST APIs then be sure to read our introduction to REST to understand the basics. Learn how to authenticate yourself to ShipEngine, and then use our sandbox environment to kick the tires and get familiar with our API. If you run into any problems, then be sure to check the error handling guide for tips.
@@ -1102,7 +1102,7 @@-This error will automatically be reported to our engineers.
{- "shipment_id": "se-28529731",
- "rate_options": {
- "carrier_ids": [
- "se-28529731"
], - "package_types": [
- "string"
], - "service_codes": [
- "string"
], - "calculate_tax_amount": true,
- "preferred_currency": "usd"
}
}
{- "shipment_id": "se-28529731",
- "carrier_id": "se-28529731",
- "service_code": "usps_first_class_mail",
- "external_order_id": "string",
- "items": [ ],
- "external_shipment_id": "string",
- "ship_date": "2018-09-23T00:00:00.000Z",
- "created_at": "2018-09-23T15:00:00.000Z",
- "modified_at": "2018-09-23T15:00:00.000Z",
- "shipment_status": "pending",
- "ship_to": {
- "name": "John Doe",
- "phone": "+1 204-253-9411 ext. 123",
- "company_name": "The Home Depot",
- "address_line1": "1999 Bishop Grandin Blvd.",
- "address_line2": "Unit 408",
- "address_line3": "Building #7",
- "city_locality": "Winnipeg",
- "state_province": "Manitoba",
- "postal_code": "78756-3717",
- "country_code": "CA",
- "address_residential_indicator": "no"
}, - "ship_from": {
- "name": "John Doe",
- "phone": "+1 204-253-9411 ext. 123",
- "company_name": "The Home Depot",
- "address_line1": "1999 Bishop Grandin Blvd.",
- "address_line2": "Unit 408",
- "address_line3": "Building #7",
- "city_locality": "Winnipeg",
- "state_province": "Manitoba",
- "postal_code": "78756-3717",
- "country_code": "CA",
- "address_residential_indicator": "no"
}, - "warehouse_id": "se-28529731",
- "return_to": {
- "name": "John Doe",
- "phone": "+1 204-253-9411 ext. 123",
- "company_name": "The Home Depot",
- "address_line1": "1999 Bishop Grandin Blvd.",
- "address_line2": "Unit 408",
- "address_line3": "Building #7",
- "city_locality": "Winnipeg",
- "state_province": "Manitoba",
- "postal_code": "78756-3717",
- "country_code": "CA",
- "address_residential_indicator": "no"
}, - "confirmation": "none",
- "customs": {
- "contents": "merchandise",
- "non_delivery": "return_to_sender",
- "customs_items": [ ]
}, - "advanced_options": {
- "bill_to_account": null,
- "bill_to_country_code": "CA",
- "bill_to_party": "recipient",
- "bill_to_postal_code": null,
- "contains_alcohol": false,
- "delivered_duty_paid": false,
- "dry_ice": false,
- "dry_ice_weight": {
- "value": 0,
- "unit": "pound"
}, - "non_machinable": false,
- "saturday_delivery": false,
- "use_ups_ground_freight_pricing": null,
- "freight_class": 77.5,
- "custom_field1": null,
- "custom_field2": null,
- "custom_field3": null,
- "collect_on_delivery": {
- "payment_type": "any",
- "payment_amount": {
- "currency": "usd",
- "amount": 0
}
}
}, - "insurance_provider": "none",
- "tags": [ ],
- "order_source_code": "amazon_ca",
- "packages": [
- {
- "package_code": "small_flat_rate_box",
- "weight": {
- "value": 0,
- "unit": "pound"
}, - "dimensions": {
- "unit": "inch",
- "length": 0,
- "width": 0,
- "height": 0
}, - "insured_value": {
- "0": {
- "currency": "usd",
- "amount": 0
}, - "currency": "usd",
- "amount": 0
}, - "tracking_number": "1Z932R800392060079",
- "label_messages": {
- "reference1": null,
- "reference2": null,
- "reference3": null
}, - "external_package_id": "string"
}
], - "total_weight": {
- "value": 0,
- "unit": "pound"
}, - "rate_response": {
- "rates": [
- {
- "rate_id": "se-28529731",
- "rate_type": "check",
- "carrier_id": "se-28529731",
- "shipping_amount": {
- "currency": "usd",
- "amount": 0
}, - "insurance_amount": {
- "currency": "usd",
- "amount": 0
}, - "confirmation_amount": {
- "currency": "usd",
- "amount": 0
}, - "other_amount": {
- "currency": "usd",
- "amount": 0
}, - "tax_amount": {
- "currency": "usd",
- "amount": 0
}, - "zone": 6,
- "package_type": "package",
- "delivery_days": 5,
- "guaranteed_service": true,
- "estimated_delivery_date": "2018-09-23T00:00:00.000Z",
- "carrier_delivery_days": "string",
- "ship_date": "2020-06-24T17:40:58Z",
- "negotiated_rate": true,
- "service_type": "string",
- "service_code": "string",
- "trackable": true,
- "carrier_code": "string",
- "carrier_nickname": "string",
- "carrier_friendly_name": "string",
- "validation_status": "valid",
- "warning_messages": [
- "string"
], - "error_messages": [
- "string"
]
}
], - "invalid_rates": [ ],
- "rate_request_id": "se-28529731",
- "shipment_id": "se-28529731",
- "created_at": "se-28529731",
- "status": "working",
- "errors": [
- {
- "error_source": "carrier",
- "error_type": "account_status",
- "error_code": "auto_fund_not_supported",
- "message": "Body of request cannot be null."
}
]
}
}
{- "shipment_id": "se-28529731",
- "rate_options": {
- "carrier_ids": [
- "se-28529731"
], - "package_types": [
- "string"
], - "service_codes": [
- "string"
], - "calculate_tax_amount": true,
- "preferred_currency": "usd"
}
}
{- "shipment_id": "se-28529731",
- "carrier_id": "se-28529731",
- "service_code": "usps_first_class_mail",
- "external_order_id": "string",
- "items": [ ],
- "external_shipment_id": "string",
- "ship_date": "2018-09-23T00:00:00.000Z",
- "created_at": "2018-09-23T15:00:00.000Z",
- "modified_at": "2018-09-23T15:00:00.000Z",
- "shipment_status": "pending",
- "ship_to": {
- "name": "John Doe",
- "phone": "+1 204-253-9411 ext. 123",
- "company_name": "The Home Depot",
- "address_line1": "1999 Bishop Grandin Blvd.",
- "address_line2": "Unit 408",
- "address_line3": "Building #7",
- "city_locality": "Winnipeg",
- "state_province": "Manitoba",
- "postal_code": "78756-3717",
- "country_code": "CA",
- "address_residential_indicator": "no"
}, - "ship_from": {
- "name": "John Doe",
- "phone": "+1 204-253-9411 ext. 123",
- "company_name": "The Home Depot",
- "address_line1": "1999 Bishop Grandin Blvd.",
- "address_line2": "Unit 408",
- "address_line3": "Building #7",
- "city_locality": "Winnipeg",
- "state_province": "Manitoba",
- "postal_code": "78756-3717",
- "country_code": "CA",
- "address_residential_indicator": "no"
}, - "warehouse_id": "se-28529731",
- "return_to": {
- "name": "John Doe",
- "phone": "+1 204-253-9411 ext. 123",
- "company_name": "The Home Depot",
- "address_line1": "1999 Bishop Grandin Blvd.",
- "address_line2": "Unit 408",
- "address_line3": "Building #7",
- "city_locality": "Winnipeg",
- "state_province": "Manitoba",
- "postal_code": "78756-3717",
- "country_code": "CA",
- "address_residential_indicator": "no"
}, - "confirmation": "none",
- "customs": {
- "contents": "merchandise",
- "non_delivery": "return_to_sender",
- "customs_items": [ ]
}, - "advanced_options": {
- "bill_to_account": null,
- "bill_to_country_code": "CA",
- "bill_to_party": "recipient",
- "bill_to_postal_code": null,
- "contains_alcohol": false,
- "delivered_duty_paid": false,
- "dry_ice": false,
- "dry_ice_weight": {
- "value": 0,
- "unit": "pound"
}, - "non_machinable": false,
- "saturday_delivery": false,
- "use_ups_ground_freight_pricing": null,
- "freight_class": 77.5,
- "custom_field1": null,
- "custom_field2": null,
- "custom_field3": null,
- "collect_on_delivery": {
- "payment_type": "any",
- "payment_amount": {
- "currency": "usd",
- "amount": 0
}
}
}, - "insurance_provider": "none",
- "tags": [ ],
- "order_source_code": "amazon_ca",
- "packages": [
- {
- "package_code": "small_flat_rate_box",
- "weight": {
- "value": 0,
- "unit": "pound"
}, - "dimensions": {
- "unit": "inch",
- "length": 0,
- "width": 0,
- "height": 0
}, - "insured_value": {
- "0": {
- "currency": "usd",
- "amount": 0
}, - "currency": "usd",
- "amount": 0
}, - "tracking_number": "1Z932R800392060079",
- "label_messages": {
- "reference1": null,
- "reference2": null,
- "reference3": null
}, - "external_package_id": "string"
}
], - "total_weight": {
- "value": 0,
- "unit": "pound"
}, - "rate_response": {
- "rates": [
- {
- "rate_id": "se-28529731",
- "rate_type": "check",
- "carrier_id": "se-28529731",
- "shipping_amount": {
- "currency": "usd",
- "amount": 0
}, - "insurance_amount": {
- "currency": "usd",
- "amount": 0
}, - "confirmation_amount": {
- "currency": "usd",
- "amount": 0
}, - "other_amount": {
- "currency": "usd",
- "amount": 0
}, - "tax_amount": {
- "currency": "usd",
- "amount": 0
}, - "zone": 6,
- "package_type": "package",
- "delivery_days": 5,
- "guaranteed_service": true,
- "estimated_delivery_date": "2018-09-23T00:00:00.000Z",
- "carrier_delivery_days": "string",
- "ship_date": "2020-07-01T01:13:18Z",
- "negotiated_rate": true,
- "service_type": "string",
- "service_code": "string",
- "trackable": true,
- "carrier_code": "string",
- "carrier_nickname": "string",
- "carrier_friendly_name": "string",
- "validation_status": "valid",
- "warning_messages": [
- "string"
], - "error_messages": [
- "string"
]
}
], - "invalid_rates": [ ],
- "rate_request_id": "se-28529731",
- "shipment_id": "se-28529731",
- "created_at": "se-28529731",
- "status": "working",
- "errors": [
- {
- "error_source": "carrier",
- "error_type": "account_status",
- "error_code": "auto_fund_not_supported",
- "message": "Body of request cannot be null."
}
]
}
}
Get Bulk Shipment Rates
shipment_ids required | Array of strings The array of shipment IDs |
rate_options required | object The rate options |
The request was a success.
@@ -1132,7 +1132,7 @@-This error will automatically be reported to our engineers.
{- "carrier_id": "se-28529731",
- "from_country_code": "CA",
- "from_postal_code": "78756-3717",
- "from_city_locality": "Austin",
- "from_state_province": "Austin",
- "to_country_code": "CA",
- "to_postal_code": "78756-3717",
- "to_city_locality": "Austin",
- "to_state_province": "Houston",
- "weight": {
- "value": 0,
- "unit": "pound"
}, - "dimensions": {
- "unit": "inch",
- "length": 0,
- "width": 0,
- "height": 0
}, - "confirmation": "none",
- "address_residential_indicator": "unknown",
- "ship_date": "2018-09-23T15:00:00.000Z"
}
[- {
- "rate_id": "se-28529731",
- "rate_type": "check",
- "carrier_id": "se-28529731",
- "shipping_amount": {
- "currency": "usd",
- "amount": 0
}, - "insurance_amount": {
- "currency": "usd",
- "amount": 0
}, - "confirmation_amount": {
- "currency": "usd",
- "amount": 0
}, - "other_amount": {
- "currency": "usd",
- "amount": 0
}, - "tax_amount": {
- "currency": "usd",
- "amount": 0
}, - "zone": 6,
- "package_type": "package",
- "delivery_days": 5,
- "guaranteed_service": true,
- "estimated_delivery_date": "2018-09-23T00:00:00.000Z",
- "carrier_delivery_days": "string",
- "ship_date": "2020-06-24T17:40:58Z",
- "negotiated_rate": true,
- "service_type": "string",
- "service_code": "string",
- "trackable": true,
- "carrier_code": "string",
- "carrier_nickname": "string",
- "carrier_friendly_name": "string",
- "validation_status": "valid",
- "warning_messages": [
- "string"
], - "error_messages": [
- "string"
]
}
]
{- "carrier_id": "se-28529731",
- "from_country_code": "CA",
- "from_postal_code": "78756-3717",
- "from_city_locality": "Austin",
- "from_state_province": "Austin",
- "to_country_code": "CA",
- "to_postal_code": "78756-3717",
- "to_city_locality": "Austin",
- "to_state_province": "Houston",
- "weight": {
- "value": 0,
- "unit": "pound"
}, - "dimensions": {
- "unit": "inch",
- "length": 0,
- "width": 0,
- "height": 0
}, - "confirmation": "none",
- "address_residential_indicator": "unknown",
- "ship_date": "2018-09-23T15:00:00.000Z"
}
[- {
- "rate_id": "se-28529731",
- "rate_type": "check",
- "carrier_id": "se-28529731",
- "shipping_amount": {
- "currency": "usd",
- "amount": 0
}, - "insurance_amount": {
- "currency": "usd",
- "amount": 0
}, - "confirmation_amount": {
- "currency": "usd",
- "amount": 0
}, - "other_amount": {
- "currency": "usd",
- "amount": 0
}, - "tax_amount": {
- "currency": "usd",
- "amount": 0
}, - "zone": 6,
- "package_type": "package",
- "delivery_days": 5,
- "guaranteed_service": true,
- "estimated_delivery_date": "2018-09-23T00:00:00.000Z",
- "carrier_delivery_days": "string",
- "ship_date": "2020-07-01T01:13:18Z",
- "negotiated_rate": true,
- "service_type": "string",
- "service_code": "string",
- "trackable": true,
- "carrier_code": "string",
- "carrier_nickname": "string",
- "carrier_friendly_name": "string",
- "validation_status": "valid",
- "warning_messages": [
- "string"
], - "error_messages": [
- "string"
]
}
]
Retrieve a previously queried rate by its ID
rate_id required | string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ Example: se-28529731 Rate ID |
The request was a success.
The request contained errors.
@@ -1141,7 +1141,7 @@-This error will automatically be reported to our engineers.
{- "rate_id": "se-28529731",
- "rate_type": "check",
- "carrier_id": "se-28529731",
- "shipping_amount": {
- "currency": "usd",
- "amount": 0
}, - "insurance_amount": {
- "currency": "usd",
- "amount": 0
}, - "confirmation_amount": {
- "currency": "usd",
- "amount": 0
}, - "other_amount": {
- "currency": "usd",
- "amount": 0
}, - "tax_amount": {
- "currency": "usd",
- "amount": 0
}, - "zone": 6,
- "package_type": "package",
- "delivery_days": 5,
- "guaranteed_service": true,
- "estimated_delivery_date": "2018-09-23T00:00:00.000Z",
- "carrier_delivery_days": "string",
- "ship_date": "2020-06-24T17:40:58Z",
- "negotiated_rate": true,
- "service_type": "string",
- "service_code": "string",
- "trackable": true,
- "carrier_code": "string",
- "carrier_nickname": "string",
- "carrier_friendly_name": "string",
- "validation_status": "valid",
- "warning_messages": [
- "string"
], - "error_messages": [
- "string"
]
}
Shipments are at the center of the ShipEngine API. A shipment is the first step in creating a shipping label, or creating a manifest. It's also essential for getting shipping rates.
+{- "rate_id": "se-28529731",
- "rate_type": "check",
- "carrier_id": "se-28529731",
- "shipping_amount": {
- "currency": "usd",
- "amount": 0
}, - "insurance_amount": {
- "currency": "usd",
- "amount": 0
}, - "confirmation_amount": {
- "currency": "usd",
- "amount": 0
}, - "other_amount": {
- "currency": "usd",
- "amount": 0
}, - "tax_amount": {
- "currency": "usd",
- "amount": 0
}, - "zone": 6,
- "package_type": "package",
- "delivery_days": 5,
- "guaranteed_service": true,
- "estimated_delivery_date": "2018-09-23T00:00:00.000Z",
- "carrier_delivery_days": "string",
- "ship_date": "2020-07-01T01:13:18Z",
- "negotiated_rate": true,
- "service_type": "string",
- "service_code": "string",
- "trackable": true,
- "carrier_code": "string",
- "carrier_nickname": "string",
- "carrier_friendly_name": "string",
- "validation_status": "valid",
- "warning_messages": [
- "string"
], - "error_messages": [
- "string"
]
}
Shipments are at the center of the ShipEngine API. A shipment is the first step in creating a shipping label, or creating a manifest. It's also essential for getting shipping rates.
Get list of Shipments