Skip to main content
POST
/
shops
/
{shopId}
/
applyshipping
/
cart
/
{cartId}
Apply Shipping Rate to Cart
curl --request POST \
  --url http://staging.qshop.ng/apiv2/shops/{shopId}/applyshipping/cart/{cartId} \
  --header 'Content-Type: application/json' \
  --data '
{
  "shippingRate": "<string>"
}
'
{
  "msg": "<string>",
  "data": {
    "entityId": "<string>",
    "shop": "<string>",
    "email": "<string>",
    "items": [
      {
        "_id": "<string>",
        "tags": [
          {
            "_id": "<string>",
            "name": "<string>",
            "tempId": "<string>",
            "shop": "<string>",
            "__v": 123,
            "slug": "<string>",
            "productCount": 123,
            "imageUrl": "<string>"
          }
        ],
        "stock": 123,
        "digital": true,
        "media": "<string>",
        "media_type": "<string>",
        "name": "<string>",
        "price": 123,
        "shop": "<string>",
        "sale_price": 123,
        "__v": 123,
        "draft": true,
        "alwaysInStock": true,
        "costPrice": 123,
        "sku": "<string>",
        "type": "<string>",
        "slug": "<string>",
        "dimension": {
          "unit": "<string>",
          "length": 123,
          "width": 123,
          "height": 123
        },
        "weight": {
          "base": {
            "unit": "<string>",
            "value": 123
          },
          "unit": "<string>",
          "value": 123
        },
        "variantsInheritPrice": true,
        "setAttributesForVariants": true,
        "qty": 123,
        "variant": {
          "_id": "<string>",
          "price": 123,
          "sale_price": 123,
          "costPrice": 123,
          "stock": 123,
          "alwaysInStock": true,
          "isActive": true,
          "sku": "<string>",
          "weight": {
            "base": {
              "unit": "<string>",
              "value": 123
            },
            "unit": "<string>",
            "value": 123
          },
          "media": "<string>",
          "digital_download": {
            "name": "<string>",
            "url": "<string>",
            "uuid": "<string>",
            "size": "<unknown>",
            "maxDownloadsPerOrder": "<unknown>"
          },
          "media_type": "<string>",
          "dimension": {
            "unit": "<string>",
            "length": 123,
            "width": 123,
            "height": 123
          },
          "options": [
            {
              "label": "<string>",
              "name": "<string>",
              "id": "<string>"
            }
          ]
        },
        "originalPrice": 123,
        "finalPrice": 123,
        "subTotal": 123,
        "cartItemId": "<string>"
      }
    ],
    "subTotal": 123,
    "total": 123,
    "created": "<string>",
    "_id": "<string>",
    "discountsApplied": "<array>",
    "discountAmount": 123,
    "shipping": 123,
    "shippingRate": {
      "id": "<string>",
      "_id": "<string>",
      "name": "<string>",
      "media": "<string>",
      "rateType": "<string>",
      "amount": 123,
      "serviceType": "<string>",
      "currency": "<string>",
      "estimatedDeliveryETA": "<string>",
      "estimatedPickupETA": "<string>",
      "estimatedDeliveryETADateTime": "<string>",
      "estimatedPickupETADateTime": "<string>",
      "description": "<string>",
      "courier": "<string>",
      "provider": "<string>",
      "type": "<string>",
      "platform": "<string>",
      "ratings": 123,
      "meta": {
        "courier_id": "<string>",
        "courier_name": "<string>",
        "courier_image": "<string>",
        "service_code": "<string>",
        "insurance": {
          "code": "<string>",
          "fee": 123
        },
        "discount": {
          "percentage": 123,
          "symbol": "<string>",
          "discounted": 123
        },
        "service_type": "<string>",
        "waybill": true,
        "is_cod_available": true,
        "tracking_level": 123,
        "ratings": 123,
        "votes": 123,
        "connected_account": true,
        "rate_card_amount": 123,
        "pickup_eta": "<string>",
        "pickup_eta_time": "<string>",
        "dropoff_station": "<unknown>",
        "pickup_station": "<unknown>",
        "delivery_eta": "<string>",
        "delivery_eta_time": "<string>",
        "info": [
          "<string>"
        ],
        "currency": "<string>",
        "vat": 123,
        "total": 123,
        "tracking": {
          "bars": 123,
          "label": "<string>"
        },
        "token": "<string>"
      },
      "preferenceStatus": "<string>",
      "actualAmount": 123,
      "markup": 123,
      "markupMeta": "<unknown>"
    },
    "user": "<unknown>",
    "exclusiveDiscount": true,
    "order": "<unknown>"
  },
  "success": true
}

Path Parameters

shopId
string
required
cartId
string
required

Body

application/json
shippingRate
string
required

Response

200 - application/json
msg
string
required
data
object
required
success
boolean
required