Error Handling

There are some cases where a quote may not be generated. In these cases, the 200 StatusCode will still be returned however the "Message" will return that the quote cannot be generated and the "Errors" field will return a specific "Code". The below table details the different error codes which can be returned by Get Quote.

{
    "StatusCode": 200,
    "Status": false,
    "Message": "Quote cannot be generated",
    "KeyMessage": null,
    "Result": null,
    "Errors": [
        {
            "Code": "OutsideDeliveryArea",
            "Message": "The Pickup ZIP code is not Serviceable by Skipcart, Use the Get ServiceableZipCodes API to get a list of Serviceable Zip codes",
            "Key": "OutsideDeliveryArea"
        }
    ]
}

Error Code

Description

OutsideDeliveryArea

The Pickup ZIP code is not Serviceable by Skipcart, Use the Get ServiceableZipCodes API to get a list of Serviceable Zip codes

NoSupplyAvailable

No drivers available to service this order at the time

InvalidAddress

The Pickup Address or Drop Address is invalid or not locatable on Google Maps (We exclude address line 2 when searching)

OutsideOperatingHours

Delivery outside service hours for Skipcart

OtherReason

Any other reason not specified above

📘

The "skipcart_quote_id" returned above is required (for quote based partners) to create an order in the CreateOrder API request

In the scenario where multiple quotes are generated, only the preferred Quote ID would need to be retained by the partner's system.