Step 4: Get additional order details

Prerequisites

  1. Create an order with Cashfree Payments
  2. Open Cashfree Checkout
  3. Confirm payments for the order

This endpoint provides additional order details, including customer information, shipping and billing addresses, and any applied offers. You (merchants) can use this information to manage order fulfillment. For more details on the API, refer to the documentation here.

📘

The response includes a customer details object with information about the logged-in user, and the shipping address object contains further details about the recipient for whom the order was placed.

Example

curl --request GET 
    --url https://sandbox.cashfree.com/pg/orders/{order_id}/extended
    --header 'x-client-id: TEST430329ae80e0f32e41a393d78b923034'
    --header 'x-client-secret: TESTaf195616268bd6202eeb3bf8dc458956e7192a85'
    --header 'Accept: application/json' 
    --header 'x-api-version: 2022-09-01'
{
    "cf_order_id": 2183539951,
    "order_id": "order_4303292kutJnjQhnKvLE8sxXlXzMo5rZz",
    "order_amount": 1298.00,
    "order_currency": "INR",
    "created_at": "2023-11-22T23:03:20+05:30",
    "charges": {
        "shipping_charges": 12,
        "cod_handling_charges": 115
    },
    "customer_details": {
        "customer_id": "USER123",
        "customer_name": "aditya",
        "customer_email": "[email protected]",
        "customer_phone": "+91 7111123413",
        "customer_uid": "e29b12c0-db23-46dc-94e9-c14d2579b19b"
    },
    "shipping_address": {
        "name": "saurav singh",
        "address_line_one": "mk buiklding",
        "address_line_two": "test address",
        "country": "india",
        "country_code": "in",
        "state": "karnataka",
        "state_code": "ka",
        "city": "bangalore",
        "pin_code": "560034",
        "phone": "+91 7023540813",
        "email": "[email protected]"
    },
    "billing_address": {
        "name": "saurav singh",
        "address_line_one": "mk buiklding",
        "address_line_two": "test address",
        "country": "india",
        "country_code": "in",
        "state": "karnataka",
        "state_code": "ka",
        "city": "bangalore",
        "pin_code": "560034",
        "phone": "+91 7023540813",
        "email": "[email protected]"
    },
    "cart": {
        "name": "My cart",
        "items": [
            {
                "item_id": "devstudio_cart_id_1",
                "item_name": "T Shirt",
                "item_description": "Test Description",
                "item_tags": ["1", "2"],
                "item_details_url": "https://chriscross.in/cdn/shop/files/95_800x.jpg",
                "item_image_url": "https://chriscross.in/cdn/shop/files/95_800x.jpg",
                "item_original_unit_price": 499,
                "item_discounted_unit_price": 499,
                "item_currency": "INR",
                "item_quantity": 1
            },
            {
                "item_id": "devstudio_cart_id_2",
                "item_name": "Straight Jeans with forward seams",
                "item_description": "Test Description",
                "item_tags": ["1", "2"],
                "item_details_url": "https://shop.mango.com/assets/rcs/pics/static/T6/fotos/S/67001012_TM_B.jpg",
                "item_image_url": "https://shop.mango.com/assets/rcs/pics/static/T6/fotos/S/67001012_TM_B.jpg",
                "item_original_unit_price": 799,
                "item_discounted_unit_price": 799,
                "item_currency": "INR",
                "item_quantity": 1
            }
        ]
    },
    "offer": {
        "offer_id": "68b68f18-62b9-45b1-a083-ab9aaf670af2",
        "offer_status": "active",
        "offer_meta": {
            "offer_title": "Tier Offer45",
            "offer_description": "test67",
            "offer_code": "tier",
            "offer_start_time": "2024-06-04T11:30:00Z",
            "offer_end_time": "2024-09-11T18:45:00Z"
        },
        "offer_tnc": {
            "offer_tnc_type": "text",
            "offer_tnc_value": "wdwcv"
        },
        "offer_details": {
            "offer_type": "DISCOUNT",
            "discount_details": {
                "discount_type": "flat",
                "discount_value": 10.00,
                "max_discount_amount": 10.00
            }
        },
        "offer_validations": {
            "min_amount": 10.00,
            "max_allowed": 1000.00,
            "payment_method": {
                "all": {}
            }
        }
    }
}

Experience the all-new Cashfree Payments Docs! Faster, smarter, and easier to navigate. Check it out here!🎉