Confirm Order

Fire this api to confirm the order.

This endpoint allows you to confirm the order

GET https://yourdomain.com /api/confirm/order /api/confirm/order

Headers

NameTypeDescription

Authorization*

String

Bearer {bearer_token without brackets}

Accept*

String

application/json

Request Body

NameTypeDescription

same_as*

Integer

IF billing and shipping is same set value to 1 | IF billing and shipping is different then set value to 0.

billing_id*

Integer

REQUIRED IF same_as set as 0 enter the billing id eg : 23

address_id*

Integer

enter the address id eg : 1

handlingcharge*

String

Enter the handling charge eg: 728.10

currency*

String

Enter the currency ISO code 3 eg : INR

txn_id*

String

Enter the transcation id which captured from payment gateway.

payment_method*

String

Enter the payment method name eg: paypal

subtotal*

String

Enter the subtotal eg: 32647.28

amount*

String

Enter the amount eg: 37999.54

{
    "status": "success",
    "item": [
        {
            "qty": 2,
            "tracking_id": "8HDJIBZ1E2",
            "thumbnail_path": "http://emartv8.test/variantimages/thumbnails",
            "thumbnail": "variant_15976635682HdTOnsEPV.jpg",
            "product_name": {
                "en": "Samsung Galaxy m31",
                "ar": "ุจุณู… ุงู„ู„ู‡"
            },
            "common_variant": [
                {
                    "attr_id": 3,
                    "attrribute": "Storage",
                    "valueid": 12,
                    "value": "128",
                    "unit": "GB",
                    "type": "s"
                }
            ],
            "variant": [
                {
                    "var_name": "4GB",
                    "attr_name": "RAM",
                    "type": "s"
                },
                {
                    "var_name": "Royal Blue",
                    "attr_name": "Color",
                    "type": "c"
                }
            ]
        },
        {
            "qty": 1,
            "tracking_id": "BFQ$GYPHXT",
            "thumbnail_path": "http://emartv8.test/variantimages/thumbnails",
            "thumbnail": "variant_1594299426WeoJG0lo1t.png",
            "product_name": {
                "en": "Yoga Matt"
            },
            "common_variant": [],
            "variant": [
                {
                    "var_name": "Yellow",
                    "attr_name": "Color",
                    "type": "c"
                }
            ]
        }
    ]
}

IF response fail

{
    "msg": "The txn id field is required.",
    "status": "fail"
}

Last updated