GET Order Details

To get complete details for a particular order.

HTTP Request
GET
https://access.way2order.com/api/v1/getorderdetails/{orderID}
Request Header
Content-Type: application/json
Authorization: Bearer {access_token}
Request Response
{
    "_id": "5c110920208ab40b3945e688",
    "buyer_id": "590",
    "buyerinfo": {
        "_id": "5bc875bcf9b0da3f12f97809", 
        "name": "B.S.Sharma",
        "company": "Bliss Enterprises",
        "initials": "BLISS",
        "address1": "57 Railway Road",
        "address2": "",
        "city": "New Delhi",
        "state": "New Delhi",
        "zip": "110001",
        "country": "IN",
        "email": "",
        "contact": "9464700320",
        "profilepic": "https://cdn.way2order.com/profilepics/others/b.png",
        "gstin": "03ABCDE1234F1ZZ"
    },
    "currency": "INR",
    "orderno": "ARCSMFG-00001",
    "ordertotals": {
        "submittedtotal": 720,
        "submittedcount": 1,
        "submitteditems": 1,
        "finaltotal": 0,
        "finalcount": 0,
        "finalitems": 0
    },
    "shippinginfo": {
        "address1": "57 Railway Road",
        "address2": "",
        "city": "New Delhi",
        "state": "New Delhi",
        "zip": "110001",
        "country": "IN"
    },
    "draft": false,
    "message": "",
    "orderstatus": "New",
    "orderpriority": "Low",
    "customorderstatus": {},
    "territory": {
        "code": "331eea54d5da622bc3b8a66e2dd08493",
        "name": "South",
        "visible": true
    },
    "customorderfields": {},
    "customsubmissionfields": {},
    "attributes": [
        {
            "name": "Article Code",
            "attribute": "code"
        },
        {
            "name": "Name",
            "attribute": "name"
        },
        {
            "name": "SKU",
            "attribute": "sku"
        },
        {
            "name": "Size",
            "attribute": "size"
        },
        {
            "name": "HSN Code",
            "attribute": "hsn"
        },
        {
            "name": "Quantity",
            "attribute": "qty"
        },
        {
            "name": "MRP",
            "attribute": "price"
        },
        {
            "name": "Minimum Order Quantity (MOQ)",
            "attribute": "moq"
        },
        {
            "name": "Order Quantity Multiples",
            "attribute": "om"
        },
        {
            "name": "Packing",
            "attribute": "packing"
        },
        {
            "name": "Ordering Unit",
            "attribute": "orderunit"
        },
        {
            "name": "Warehouse",
            "attribute": "warehouse"
        },
        {
            "name": "Product ID",
            "attribute": "pid"
        }
    ],
    "itemssubmitted": [
        {
            "id": "5bc5a1d8f9b0da3f12f97795_1",
            "code": "ARCS 200",
            "name": "Bronze Globe Valve (Screwed)",
            "pid": "1",
            "sku": "200-8",
            "size": "8mm",
            "orderunit": "Piece",
            "packing": "Box",
            "hsn": "84819090",
            "moq": 1,
            "om": 1,
            "price": 720,
            "qty": 1,
            "warehouse": {
                "code": "480829f7738098669c64628bab3021a5",
                "name": "Warehouse 1",
                "visible": true
            }
        }
    ],
    "itemsfinalised": [],
    "location": {
        "latitude": 31.31723065713507,
        "longitude": 75.57742750381482,
        "accuracy": 65
    },
    "bysalesrep": false,
    "cancelmessage": "",
    "internalmessage": "",
    "groupexists": true,
    "dt_create": "2018-12-12T13:12:00.437Z",
    "dt_update": "2018-12-12T13:12:00.438Z",
    "id": "5c110920208ab40b3945e688"
}
Attribute Details
Attribute Type Description
_id String ID of the Order
buyer_id String Buyer ID (ObjectId / Primary Key from your existing software / database)
buyerinfo Object Buyer's Contact Information
currency String Order Currency
orderno String Order Number
ordertotals Object Submitted / Finalised Order Totals with Line Item Count & Total Items Count
shippinginfo Object Buyer's Shipping Information
draft Boolean true if Order is in Draft Mode (Only for New Orders), false otherwise
message String Buyer's Message with the Order
orderstatus String Order Status (New, Confirmed, On-Hold, In-Process, Complete, Cancelled)
orderpriority String Order Priority (Low, Medium, High, Urgent)
customorderstatus Object Custom Order Status
territory Object Buyer's Allotted Territory
customorderfields Object Custom Field Values for the Completed Order
customsubmissionfields Object Custom Field Values for the Submitted Order
attributes Array Active Product Attributes
itemssubmitted Array Order Line Items (Submitted)
itemsfinalised Array Order Line Items (Finalised)
location Object Location Coordinates (from where the order was submittted)
bysalesrep Boolean true if Order is submitted by your Sales Rep, false otherwise
cancelmessage String Order Cancellation Message
internalmessage String Internal Message for Completed Orders
groupexists Boolean true if Buyer has a Way2Order Account, false otherwise
dt_create Date Order Creation Date
dt_update Date Order Last Updation Date
id String ID of the Order