Validate Cart

The Validate Cart endpoint allows you to verify cart items, quantities, or pricing details before the order is placed. This can be useful for scenarios where customers update their selections after initially placing the order.

Headers

NameValue
AuthorizationBearer <access_token>
Content-Typeapplication/json
x-api-keyYour unique API key for authentication

Request Body

Please refer to the validate cart HTTP request parameters guide for a detailed explanation of each parameter and its required format.

Sample curl Request

curl --location --request POST 'https://api.uat.khumbu.com/uat/v1/providers/standardprovider/partners/simphony/markets/plkpl/orders/adjustcart' \
--header 'Authorization: Bearer <access_token>' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data-raw '{
    "providerOrderId": "5334a0dc-def6-43ae-8f51-952359555246",
    "marketName": "plkpl",
    "storeInformation": {
        "providerStoreId": "99999"
    },
    "orderNotificationType": "CREATE_ORDER",
    "customerInformation": {
        "id": "1",
        "phone": "3344556677",
    		"firstName": "firstName",
    		"lastName": "lastName",
    		"email": "[email protected]"
    },
    "payments": {
        "subTotal": 100,
        "tax": 10,
        "tip": 2,
        "deliveryFee": 5,
        "serviceFee": 3,
        "discount": 2,
        "total": 102,
        "paymentMethod": "CARD",
        "currencyCode": "USD"
    },
    "serviceMode": {
        "fulfillmentMode": "PICK_UP"
    },
    "orderItems": [
        {
            "id": "123",
            "type": "ITEM",
            "name": "Pizza",
            "price": 100,
            "quantity": 2,
            "categoryId": "12345",
            "options": [
                {
                    "id": "OptionId1",
                    "name": "Cheese",
                    "price": 5,
                    "quantity": 2,
                    "modifierId": "1111",
                    "options": [
                        {
                            "id": "id2",
                            "name": "AmericanCheese",
                            "price": 2,
                            "quantity": 2,
                            "modifierId": "2222",
                            "options": []
                        }
                    ]
                }
            ]
        }
    ]
}'

Error Responses

In the event of an error, the response will contain an error code and message detailing the cause of the failure. Please refer to the Error Reference Guide for comprehensive information on all error codes.

📘

### Implementation Guide

This guide helps developers implement the Validate Cart functionality in their applications. Ensure placeholder values are replaced with actual parameters as needed.

Language
Credentials
OAuth2
Click Try It! to start a request and see the response here!