Resource Information


Description Endpoint to return all draft orders from your Shopify store.
Resource URL https://api.mpstoolbox.com/v1/draft_orders
Rate Limited False
Response Format JSON
Authentication API-Key

Parameters


Parameter Type Description Optional Default
None Retreives a list of all draft orders, no parameters are required. True NULL

Example


GET https://api.mpstoolbox.com/v1/draft_orders/

Response

{
    "884001341590": {
        "general": {
            "order_id": 884001341590,
            "order_type": "draft_order",
            "order_status": "open",
            "order_name": "#D114"
        },
        "customer": {
            "id": 3693615972502,
            "company": "MPSToolbox",
            "first_name": "Caleb",
            "last_name": "Huard",
            "email": "chuard@tangentmtw.com",
            "verified_email": true,
            "phone": null,
            "tags": "Purchase Order",
            "currency": "CAD"
        },
        "shipping_address": {
            "first_name": "Caleb",
            "last_name": "Huard",
            "address1": "11 Princess St.",
            "address2": "",
            "company": "MPSToolbox",
            "city": "Kingston",
            "state_province": "ON",
            "zip_postal": "K7L 1A1",
            "country": "Canada",
            "phone": "613-507-5151"
        },
        "billing_address": {
            "first_name": "Caleb",
            "last_name": "Huard",
            "address1": "11 Princess St.",
            "address2": "",
            "company": "MPSToolbox",
            "city": "Kingston",
            "state_province": "ON",
            "zip_postal": "K7L 1A1",
            "country": "Canada",
            "phone": "613-507-5151"
        },
        "line_items": [
            {
                "id": 57249217347734,
                "variant_id": 35448802672790,
                "quantity": 1,
                "product_name": "Lexmark C3326adwe MFP Color Laser Printer",
                "sku": "40N9060",
                "weight": null,
                "weight_unit": null
            }
        ]
    },
    "884034175126": {
        "general": {
            "order_id": 884034175126,
            "order_type": "draft_order",
            "order_status": "open",
            "order_name": "#D115"
        },
        "customer": {
            "id": 3693615972502,
            "company": "MPSToolbox",
            "first_name": "Caleb",
            "last_name": "Huard",
            "email": "chuard@tangentmtw.com",
            "verified_email": true,
            "phone": null,
            "tags": "Purchase Order",
            "currency": "CAD"
        },
        "shipping_address": {
            "first_name": "Caleb",
            "last_name": "Huard",
            "address1": "11 Princess St.",
            "address2": "",
            "company": "MPSToolbox",
            "city": "Kingston",
            "state_province": "ON",
            "zip_postal": "K7L 1A1",
            "country": "Canada",
            "phone": "613-507-5151"
        },
        "billing_address": {
            "first_name": "Caleb",
            "last_name": "Huard",
            "address1": "11 Princess St.",
            "address2": "",
            "company": "MPSToolbox",
            "city": "Kingston",
            "state_province": "ON",
            "zip_postal": "K7L 1A1",
            "country": "Canada",
            "phone": "613-507-5151"
        },
        "line_items": [
            {
                "id": 57249356808342,
                "variant_id": 36205853016214,
                "quantity": 1,
                "product_name": "HP 05A (CE505A) Black Original LaserJet Toner Cartridge (2300 Yield)",
                "sku": "CE505A",
                "weight": null,
                "weight_unit": null
            },
            {
                "id": 57249356841110,
                "variant_id": 40550957744278,
                "quantity": 1,
                "product_name": "HP PageWide Pro MFP 577dw",
                "sku": "D3Q21A",
                "weight": null,
                "weight_unit": null
            }
        ]
    }
}

Error Response

{
    "code": 204,
    "data": "No Data Found"
}