emart - Laravel Multi-Vendor Ecommerce Advanced CM
  • Documentation
  • Introduction
  • Key Features
  • Installation
    • Server Requirements
    • Shared Hosting Install
    • Installation Step By Step
    • Installation on VPS hosting
  • Developer Guide
    • Developer Guide
  • Setting up emart
    • Mail settings
    • Setting up CRON JOBS
    • PWA Setup
    • Multivendor Setup
    • Setting up Multicurrency
    • Database backup
    • Import Demo Content
    • Push notifications
    • Seller Payouts
    • Front settings
      • Payment gateways
      • SMS Settings
    • Site Settings
    • Setting up Google review
    • Wallet settings
    • Add-on Manager
  • faq's
    • Installation FAQ's
    • General Settings
    • Disclaimer
    • Regular & Extended Licenses
    • Privacy Policy
    • Access Denied
  • UPDATE PROCESS
    • Changelogs
    • UpdateGuide
    • Quick Update
      • 2.8.x
      • 2.9.x
      • 3.0x
  • Support
    • Support
    • Source and Credits
    • Emart Tutorials - Youtube
    • Installation of eMart
  • Conclusion
    • Conclusion
  • portfolio
  • Codecanyon
  • Themeforest
  • Graphic River
  • Homepage
  • Emart Api
  • 🍿Getting Started
  • Login
  • Register
  • Refresh Token
  • Logout
  • Social Login API
  • Homepage (12/01/2022)
  • Product Detail page (18/01)
  • Product all Comments
  • Product All Reviews
  • Get All Brands
  • Brand Products
  • Main Category with products(26/11)
  • Subcategory with products (26/11)
  • Child category with their products (26/11)
  • Get all categories
  • Get All Subcategory
  • Get All Childcategories
  • 🦹‍♂️View User Profile
  • Current User Wallet
  • User Favorite Wishlist (26/11)
  • Add item in wishlist (09/02)
  • Remove items from wishlist (09/02)
  • Wishlist collection (09/02)
  • View Particular Wishlist collection (09/02)
  • Create wishlist collection (09/02)
  • Current User Address list (02/02)
  • Create new user address (02/02)
  • List Billing address (02/02)
  • Create billing address (02/02)
  • Current User bank list (10/01/2022)
  • Current User notifications
  • 🌟My Reviews
  • Get User Cart (13/01)
  • Add Item in User Cart (13/01)
  • Remove Item from user cart (13/01)
  • Clear user cart
  • Increase item quantity in user cart (19/01) (Updated)
  • Get Guest User Cart (15/01)
  • Guest cart Store (15/01)
  • Apply Coupans
  • Remove coupan
  • General FAQ API
  • Custom Page
  • Pincode API (03/02)
  • General Configurations
  • Payment Methods List
  • List of countries
  • List of states
  • List of Cities
  • Search City (03/02)
  • Fetch City List By Pincode For Guest (03/02)
  • Fetch city list with address for logged in user (03/02)
  • List Languages
  • Fetch Current Time
  • Policy Pages
  • Order Review (27/02)
  • Localpickup apply (27/02)
  • Remove Localpickup (27/02)
  • Confirm Order
  • MY Orders
  • View Order
  • Get Razorpay Payment ORDER ID
  • Generate Paytm Checksum
  • View All Flashdeals (12/01)
  • View Specific Flashdeals (12/01)
  • Wishlist
  • Changelogs
Powered by GitBook
On this page
  • This endpoint allows you to confirm the order
  • IF response fail

Was this helpful?

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

Name
Type
Description

Authorization*

String

Bearer {bearer_token without brackets}

Accept*

String

application/json

Request Body

Name
Type
Description

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"
                }
            ]
        }
    ]
}
{
    "message": "Unauthenticated."
}

IF response fail

{
    "msg": "The txn id field is required.",
    "status": "fail"
}
PreviousRemove Localpickup (27/02)NextMY Orders

Last updated 2 years ago

Was this helpful?