These docs are for v1.0. Click to read the latest docs for v2024.09.

Discussions

Ask a Question
Back to All

Creating Shipment api response

In the Creating A Shipment Docs,
Step1: after selected a rate and chose the courier_id and sent the request to /shipment endpoint with the selected_courier_id.

Step2: In the JSON response from easyship (below picture), I saw there are 2 courier information, 1 is DHL Express, and 1 is UPS.

  • My question is, isn’t that it only shows the courier id that I selected in Step1?
  • Why there are 2 different courier information?
  • Is that the “shipment_charge_total” the final charges if I want to ship this item? No any other charges?
    "selected_courier": {
    "id": "2a17f7aa-51f7-4d36-bca8-e77c164cb52a",
    "name": "DHL Express",
    "min_delivery_time": 2,
    "max_delivery_time": 3,
    "shipment_charge": 284.9,
    "fuel_surcharge": 32.05125,
    "remote_area_surcharge": 0,
    "shipment_charge_total": 316.95125,
    "warehouse_handling_fee": 0,
    "insurance_fee": 0,
    "ddp_handling_fee": 0,
    "import_tax_charge": 0,
    "import_duty_charge": 0,
    "total_charge": 316.95,
    "is_above_threshold": false,
    "effective_incoterms": "DDU",
    "estimated_import_tax": 0,
    "estimated_import_duty": 0,
    "courier_does_pickup": false,
    "courier_dropoff_url": "https://www.easyship.com/drop-off/dhl/hk",
    "courier_remarks": null,
    "payment_recipient": "Easyship"
    },
    "rates": [
    {
    "courier_id": "b8d528a7-a2d4-4510-a7ac-11cbbb6542cd",
    "courier_name": "UPS",
    "min_delivery_time": 1,
    "max_delivery_time": 3,
    "value_for_money_rank": 1.0,
    "delivery_time_rank": 1.0,
    "shipment_charge": 237.50,
    "fuel_surcharge": 22.56,
    "remote_area_surcharge": 0,
    "shipment_charge_total": 260.06,
    "warehouse_handling_fee": 0,
    "insurance_fee": 0.0,
    "ddp_handling_fee": 0.0,
    "import_tax_charge": 0.0,
    "import_duty_charge": 0.0,
    "total_charge": 260.06,
    "is_above_threshold": false,
    "effective_incoterms": "DDU",
    "estimated_import_tax": 0,
    "estimated_import_duty": 0,
    "courier_does_pickup": true,
    "courier_dropoff_url": "",
    "tracking_rating": 3.0,
    "courier_remarks": null,
    "payment_recipient": "Easyship"
    }
    ]