Untitled

 avatar
unknown
plain_text
5 months ago
1.9 kB
13
Indexable
/v1/order/generate_quote (Happened on local and international shipment)

//Response
{
  "success": false,
  "error": "BadRequestException",
  "message": {
    "packages": [
      {
        "error": {
          "string": "packages.items.item.unitMeasurement must not be empty",
          "code": "PACKAGE.VALIDATION.ERROR.ITEM.UNIT.MEASUREMENT.INVALID"
        }
      }
    ]
  }
}

//Req Body
{
  "receiver": {
    "address": {
      "street_lines": [
        "Ganaja Junction Bridge, Lokoja, Lokoja-Ajaokuta Road"
      ],
      "country": "Nigeria",
      "state_or_province_code": "LO",
      "location": "Ganaja Junction Bridge, Lokoja, Lokoja-Ajaokuta Road, Nigeria",
      "city": "Lokoja",
      "postal_code": "102910",
      "state_name": "Kogi",
      "country_code": "NG"
    },
    "contact": {
      "name": "Ibrahim",
      "email_address": "ibrahhs@gmail.com",
      "phone_number": "+2348101832930"
    }
  },
  "sender": {
    "address": {
      "street_lines": [
        "Lokoja, Nigeria"
      ],
      "country": "Nigeria",
      "state_or_province_code": "LO",
      "location": "Lokoja, Nigeria",
      "city": "Lokoja",
      "postal_code": "18625",
      "state_name": "Kogi",
      "country_code": "NG"
    },
    "contact": {
      "name": "Kamala Harris 3",
      "email_address": "hagsgsg@gmail.com",
      "phone_number": "+2348105470569"
    }
  },
  "cod": true,
  "package_insurance": "EI",
  "packages": {
    "items": [
      {
        "name": "Item 1",
        "quantity": 20,
        "price": 200,
        "unitMeasurement": "gram"
      }
    ],
    "packages": [
      {
        "actualWeight": 20.0,
        "packageDimension": {
          "price": 0,
          "width": 20.0,
          "height": 5.0,
          "length": 10.0,
          "weight": 18.0
        }
      }
    ]
  },
  "type": "LC",
  "partner": false,
  "category": 1,
  "delivery_mode": "DOOR_STEP",
  "order_mode": "PICKUP"
}
Editor is loading...
Leave a Comment