post https://public-api.easyship.com/2024-09/shipments
Create a new shipment.
Required authorization scope: public.shipment:write
and public.label:write
if a label is requested during the request.
Select a courier
If you use our Rates API, you can define a courier ID to assign a courier to the shipment using courier_service_id
. If you skip courier ID, we will return a list of all possible rates to your new shipment and assign the best value for money courier.
Calculate dimensions and total weight
You can calculate dimensions and total weight of your shipment in three ways:
- Provide
total_actual_weight
andbox
objects for the shipment. - Specify
actual_weight
anddimensions
for each item of theitems
object: in this case, total weight and box size will be calculated automatically. - Specify
sku
for each item of theitems
object: in this case, actual weight and dimensions for calculations will be taken as set for the product.