Info
  • Web service URL: BASE_URL/api/Price

1. Create a new price request (POST Method)

The request is the same as Order  -> Please check Shipment Service -> Order

  1.  if you send serviceId == 0 or do not send serviceId at all, you ll receive prices for all services
  2. if serviceId is sent with a valid service, (example serviceId == 1), you ll receive prices only for that service (Standard).

1.1 Price request response example

200 - Response

{
    "rates": [
        {
            "carrierId": 1,
            "carrier": "Cargus",
            "rateAmount": 22.0,
            "rateVatAmount": 4.18,
            "rateTotalAmount": 26.18,
            "rateCurrency": "RON",
            "score": 87.01,
            "performance": 0.0,
            "calculatedDeliveryDate": "2022-12-28T22:00:00Z",
            "deliveryDays": 1,
            "serviceId": 1,
            "service": "Standard",
            "priority": 30
        },
        {
            "carrierId": 3,
            "carrier": "FanCourier",
            "rateAmount": 24.57,
            "rateVatAmount": 4.67,
            "rateTotalAmount": 29.24,
            "rateCurrency": "RON",
            "score": 86.28,
            "performance": 0.0,
            "calculatedDeliveryDate": "2022-12-28T22:00:00Z",
            "deliveryDays": 1,
            "serviceId": 1,
            "service": "Standard",
            "priority": 30
        },
        {
            "carrierId": 2,
            "carrier": "DPD",
            "rateAmount": 25.48,
            "rateVatAmount": 4.84,
            "rateTotalAmount": 30.32,
            "rateCurrency": "RON",
            "score": 86.05,
            "performance": 0.0,
            "calculatedDeliveryDate": "2022-12-28T22:00:00Z",
            "deliveryDays": 1,
            "serviceId": 1,
            "service": "Standard",
            "priority": 30
        }
    ]
}

200 - Response with Price Breakdown

{
    "rates": [
        {
            "carrierId": 1,
            "carrier": "Cargus",
            "rateAmount": 22.0,
            "rateVatAmount": 4.18,
            "rateTotalAmount": 26.18,
            "rateCurrency": "RON",
            "score": 87.01,
            "performance": 0.0,
            "calculatedDeliveryDate": "2022-12-28T22:00:00Z",
            "deliveryDays": 1,
            "serviceId": 1,
            "service": "Standard",
            "priority": 30,
            "priceComponents": {
                "courierPrice": 22.0
            }
        },
         {
            "carrierId": 3,
            "carrier": "FanCourier",
            "rateAmount": 9.17,
            "rateVatAmount": 1.74,
            "rateTotalAmount": 10.91,
            "rateCurrency": "RON",
            "score": 96.82,
            "performance": 0.0,
            "calculatedDeliveryDate": "2022-12-28T22:00:00Z",
            "deliveryDays": 1,
            "serviceId": 1,
            "service": "Standard",
            "priority": 30,
            "priceComponents": {
                "km": 0.0,
                "kmFixed": 0.0,
                "envelopes": 0.0,
                "contentWeight": 9.17,
                "cashOnDelivery": 0.0,
                "bankRepayment": 0.0,
                "openPackage": 0.0,
                "saturdayDelivery": 0.0,
                "returns": 0.0,
                "priceForExtraParcel": 0.0,
                "pickupThirdParty": 0.0,
                "insurance": 0.0,
                "fuelSurcharge": 0.000
            }
        },
        {
            "carrierId": 2,
            "carrier": "DPD",
            "rateAmount": 25.48,
            "rateVatAmount": 4.84,
            "rateTotalAmount": 30.32,
            "rateCurrency": "RON",
            "score": 86.05,
            "performance": 0.0,
            "calculatedDeliveryDate": "2022-12-28T22:00:00Z",
            "deliveryDays": 1,
            "serviceId": 1,
            "service": "Standard",
            "priority": 30,
            "priceComponents": {
                "courierPrice": 25.48
            }
        }
    ]
}