---
updatedAt: 2026-11-04T00:29:28.000Z
---

# An order

"Call the <Anchor target="_blank" href="https://developer.walmart.com/us-marketplace/reference/getanorder">An order</Anchor> endpoint to retrieve detailed information about a specific order. You can view the order's items, customer details, and current status. For example, you might query a single order to troubleshoot a fulfillment issue or confirm specific line item quantities.

> **Note**: This page describes an example using only the required parameters and inputs for getting an order. For a full list of customization options and additional capabilities, refer to the [Walmart Orders API Reference](/us-marketplace/reference/getanorder).

<div class="callout-light" role="note" aria-label="Note">

<b></b> If you receive <nocxemail@walmartone.com> instead of the customer email address, refer to the [Orders & returns FAQ](https://developer.walmart.com/us-marketplace/docs/orders-returns) for guidance on retrieving the updated email address.

</div>

## Endpoint

```Text bash
GET https://marketplace.walmartapis.com/v3/orders/{purchaseOrderId}
```

# Function

This API is used to:

* Pull recent orders for processing
* Check shipment and delivery status
* Review order line details
* Handle cancellations and replacements
* Support operational order-management workflows

## Sample request

```curl
curl --request GET \
     --url 'https://marketplace.walmartapis.com/v3/orders/purchaseOrderId?productInfo=false&replacementInfo=false&incentiveInfo=false' \
     --header 'accept: application/json'
```
```python
```

# Modify your code

Include Walmart authentication headers

# Sample responses&#x20;

# application/json<br />200 Order

```json
{
  "order": {
    "purchaseOrderId": "1815367951431",
    "customerOrderId": "4372135469400",
    "customerEmailId": "7D9F02968955480499C84C5871AD1401@relay.walmart.com”,
    "orderDate": 1623796407000,
    "shippingInfo": {
      "phone": "3143450432",
      "estimatedDeliveryDate": 1624647600000,
      "estimatedShipDate": 1623906000000,
      "methodCode": "Value",
      "postalAddress": {
        "name": "Donald Ashley",
        "address1": "6600 gazebo drive",
        "city": "Cedar hill",
        "state": "MO",
        "postalCode": "63016",
        "country": "USA",

    },
    "orderLines": {
      "orderLine": [
        {
          "lineNumber": "1",
          "item": {
            "productName": "Mac Sports Heavy Duty Steel Double Decker Collapsible Yard Cart Wagon, Purple",
            "sku": "YHY-FN25200B2"
          },
          "charges": {
            "charge": [
              {
                "chargeType": "PRODUCT",
                "chargeName": "ItemPrice",
                "chargeAmount": {
                  "currency": "USD",
                  "amount": 5
                },
                "tax": {
                  "taxName": "Tax1",
                  "taxAmount": {
                    "currency": "USD",
                    "amount": 0.34
                  }
                },
                "taxAndOtherFees": {
                  "taxName": "Tax1",
                  "taxAmount": {
                    "currency": "USD",
                    "amount": 0.34
                  }
                }
              }
            ]
          },
          "orderLineQuantity": {
            "unitOfMeasurement": "EACH",
            "amount": "1"
          },
          "statusDate": 1623835855623,
          "orderLineStatuses": {
            "orderLineStatus": [
              {
                "status": "Shipped",
                "statusQuantity": {
                  "unitOfMeasurement": "EACH",
                  "amount": "1"
                },
                "trackingInfo": {
                  "shipDateTime": 1623835855000,
                  "carrierName": {
                    "carrier": "USPS"
                  },
                  "methodCode": "Value",
                  "trackingNumber": "435678956435467",
                  "trackingURL": "https://www.walmart.com/tracking?tracking_id=435678956435467&order_id=1815367951431"
                }
              }
            ]
          },
          "fulfillment": {
            "fulfillmentOption": "S2H",
            "shipMethod": "VALUE",
            "pickUpDateTime": 1624647600000
          },
          "miscAttributes": {
            "miscAttribute": [
              {
                "name": "PET_DETAILS",
                "details": {
                  "detail": [
                    { "key": "PET_FIRST_NAME", "value": "Blue" },
                    { "key": "PET_LAST_NAME", "value": "Scarano" }
                  ]
                }
              },
              {
                "name": "VIRTUAL_PACK",
                "details": {
                  "detail": [
                    { "key": "BUNDLE_QUANTITY", "value": "1" },
                    { "key": "COMPONENT_QUANTITY", "value": "3" },
                    { "key": "VP_OFFER_ID", "value": "F84FC834C2143D8B9145C9953BFF15BC" }
                  ]
                }
              }
            ]
          }
        }
      ]
    },
    "shipNode": {
      "type": "SellerFulfilled"
    }
  }
}
```

<br />

##

```json
{
  "order": {
    "purchaseOrderId": "1815367951431",
    "customerOrderId": "4372135469400",
    "customerEmailId": "7D9F02968955480499C84C5871AD1401@relay.walmart.com”,
    "orderDate": 1623796407000,
    "shippingInfo": {
      "phone": "3143450432",
      "estimatedDeliveryDate": 1624647600000,
      "estimatedShipDate": 1623906000000,
      "methodCode": "Value",
      "postalAddress": {
        "name": "Donald Ashley",
        "address1": "6600 gazebo drive",
        "city": "Cedar hill",
        "state": "MO",
        "postalCode": "63016",
        "country": "USA",
        "addressType": "RESIDENTIAL"
      }
    },
    "orderLines": {
      "orderLine": [
        {
          "lineNumber": "1",
          "item": {
            "productName": "Mac Sports Heavy Duty Steel Double Decker Collapsible Yard Cart Wagon, Purple",
            "sku": "YHY-FN25200B2"
          },
          "charges": {
            "charge": [
              {
                "chargeType": "PRODUCT",
                "chargeName": "ItemPrice",
                "chargeAmount": {
                  "currency": "USD",
                  "amount": 5
                },
                "tax": {
                  "taxName": "Tax1",
                  "taxAmount": {
                    "currency": "USD",
                    "amount": 0.34
                  }
                },
                "taxAndOtherFees": {
                  "taxName": "Tax1",
                  "taxAmount": {
                    "currency": "USD",
                    "amount": 0.34
                  }
                }
              }
            ]
          },
          "orderLineQuantity": {
            "unitOfMeasurement": "EACH",
            "amount": "1"
          },
          "statusDate": 1623835855623,
          "orderLineStatuses": {
            "orderLineStatus": [
              {
                "status": "Shipped",
                "statusQuantity": {
                  "unitOfMeasurement": "EACH",
                  "amount": "1"
                },
                "trackingInfo": {
                  "shipDateTime": 1623835855000,
                  "carrierName": {
                    "carrier": "USPS"
                  },
                  "methodCode": "Value",
                  "trackingNumber": "435678956435467",
                  "trackingURL": "https://www.walmart.com/tracking?tracking_id=435678956435467&order_id=1815367951431"
                }
              }
            ]
          },
          "fulfillment": {
            "fulfillmentOption": "S2H",
            "shipMethod": "VALUE",
            "pickUpDateTime": 1624647600000
          },
          "miscAttributes": {
            "miscAttribute": [
              {
                "name": "PET_DETAILS",
                "details": {
                  "detail": [
                    { "key": "PET_FIRST_NAME", "value": "Blue" },
                    { "key": "PET_LAST_NAME", "value": "Scarano" }
                  ]
                }
              },
              {
                "name": "VIRTUAL_PACK",
                "details": {
                  "detail": [
                    { "key": "BUNDLE_QUANTITY", "value": "1" },
                    { "key": "COMPONENT_QUANTITY", "value": "3" },
                    { "key": "VP_OFFER_ID", "value": "F84FC834C2143D8B9145C9953BFF15BC" }
                  ]
                }
              }
            ]
          }
        }
      ]
    },
    "shipNode": {
      "type": "SellerFulfilled"
    }
  }
}
```

## 200 Attributes

```json
{
  "order": {
    "purchaseOrderId": "1796277083022",
    "customerOrderId": "5281956426648",
    "customerEmailId": "3A31739D8B0A45A1B23F7F8C81C8747F@relay.walmart.com",
    "orderType": "REPLACEMENT",
    "originalCustomerOrderID": "1234567891234",
    "orderDate": 1568466571000,
    "shippingInfo": {
      "phone": "3155598681",
      "estimatedDeliveryDate": 1569438000000,
      "estimatedShipDate": 1568700000000,
      "methodCode": "Value",
      "postalAddress": {
        "name": "Kathryn Cole",
        "address1": "3258BWarners rd",
        "address2": "Garage",
        "city": "Warners",
        "state": "NY",
        "postalCode": "13164",
        "country": "USA",
        "addressType": "RESIDENTIAL"
      }
    },
    "orderLines": {
      "orderLine": [
        {
          "lineNumber": "4",
          "item": {
            "productName": "Beba Bean Pee-pee Teepee Airplane - Blue - Laundry Bag",
            "sku": "test1"
          },
          "charges": {
            "charge": [
              {
                "chargeType": "PRODUCT",
                "chargeName": "ItemPrice",
                "chargeAmount": {
                  "currency": "USD",
                  "amount": 10
                },
                "tax": {
                  "taxName": "Tax1",
                  "taxAmount": {
                    "currency": "USD",
                    "amount": 0.8
                  }
                },
                "taxAndOtherFees": {
                  "taxName": "Tax1",
                  "taxAmount": {
                    "currency": "USD",
                    "amount": 0.8
                  }
                }
              }
            ]
          },
          "orderLineQuantity": {
            "unitOfMeasurement": "EACH",
            "amount": "1"
          },
          "statusDate": 1568466647000,
          "orderLineStatuses": {
            "orderLineStatus": [
              {
                "status": "Created",
                "statusQuantity": {
                  "unitOfMeasurement": "EACH",
                  "amount": "1"
                },
                "cancellationReason": "xyz",
                "trackingInfo": {
                  "shipDateTime": 1241715945678,
                  "carrierName": {
                    "otherCarrier": "xyz",
                    "carrier": "FED_EX"
                  },
                  "methodCode": "Standard",
                  "carrierMethodCode": 19,
                  "trackingNumber": "001792410114462199",
                  "trackingURL": "http://www.fedex.com/Tracking?action=track=english=us=x=001792410114462199"
                },
                "returnCenterAddress": {
                  "name": "xyz",
                  "address1": "xyz",
                  "address2": "xyz",
                  "city": "Sunnyvale",
                  "state": "CA",
                  "postalCode": "123",
                  "country": "CA",
                  "dayPhone": "9999999",
                  "emailId": "xyz@walmart.com"
                }
              }
            ]
          },
          "refund": {
            "refundId": "123",
            "refundComments": "xyz",
            "refundCharges": {
              "refundCharge": [
                {
                  "refundReason": "INCORRECT_ITEM_RECEIVED",
                  "charge": {
                    "chargeType": "PRODUCT",
                    "chargeName": "ItemPrice",
                    "chargeAmount": {
                      "currency": "USD",
                      "amount": 798
                    },
                    "tax": {
                      "taxName": "Tax1",
                      "taxAmount": {
                        "currency": "USD",
                        "amount": 798
                      }
                    },
                    "taxAndOtherFees": {
                      "taxName": "Tax1",
                      "taxAmount": {
                        "currency": "USD",
                        "amount": 798
                      }
                    }
                  }
                }
              ]
            }
          },
          "fulfillment": {
            "fulfillmentOption": "S2H",
            "shipMethod": "VALUE",
            "storeId": "xyz",
            "pickUpDateTime": 1568919600000,
            "pickUpBy": "xyz",
            "shippingProgramType": "THREE_TO_FIVE_DAY"
          },
          "miscAttributes": {
            "miscAttribute": [
              {
                "name": "PET_DETAILS",
                "details": {
                  "detail": [
                    { "key": "PET_FIRST_NAME", "value": "Blue" },
                    { "key": "PET_LAST_NAME", "value": "Scarano" }
                  ]
                }
              },
              {
                "name": "VIRTUAL_PACK",
                "details": {
                  "detail": [
                    { "key": "BUNDLE_QUANTITY", "value": "1" },
                    { "key": "COMPONENT_QUANTITY", "value": "3" },
                    { "key": "VP_OFFER_ID", "value": "F84FC834C2143D8B9145C9953BFF15BC" }
                  ]
                }
              }
            ]
          }
        }
      ]
    },
    "shipNode": {
      "type": "3PLFulfilled",
      "name": "xyz",
      "id": "123"
    }
  }
}
```

## 400

```curl
{
  "errors": [
    {
      "code": "INVALID_REQUEST_CONTENT.GMP_ORDER_API",
      "description": "Invalid request content.",
      "info": "Request content is not valid.",
      "severity": "ERROR",
      "category": "DATA"
    }
  ]
}
```

<br />

## 401

```curl
{
  "errors": [
    {
      "code": "UNAUTHORIZED.GMP_ORDER_API",
      "description": "Unauthorized request.",
      "info": "Authentication failed. Verify your credentials.",
      "severity": "ERROR",
      "category": "APPLICATION"
    }
  ]
}
```

## 403

```curl
{
  "errors": [
    {
      "code": "FORBIDDEN.GMP_ORDER_API",
      "description": "Access denied.",
      "info": "You do not have permission to perform this action.",
      "severity": "ERROR",
      "category": "APPLICATION"
    }
  ]
}
```

## 404

```curl
{
  "errors": [
    {
      "code": "NOT_FOUND.GMP_ORDER_API",
      "description": "Resource not found.",
      "info": "The requested purchase order was not found.",
      "severity": "ERROR",
      "category": "DATA"
    }
  ]
}
```

## 429

```curl
{
  "errors": [
    {
      "code": "RATE_LIMIT_EXCEEDED.GMP_ORDER_API",
      "description": "Too many requests.",
      "info": "Rate limit exceeded. Retry after the specified time.",
      "severity": "ERROR",
      "category": "APPLICATION"
    }
  ]
}
```

## 500&#x20;

```curl
{
  "errors": [
    {
      "code": "INTERNAL_SERVER_ERROR.GMP_ORDER_API",
      "description": "An internal server error occurred.",
      "info": "Retry the request. If the issue persists, contact support.",
      "severity": "ERROR",
      "category": "SYSTEM"
    }
  ]
}
```

## application/xml

## 200 &#x20;

```curl
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns3:order xmlns:ns2="http://walmart.com/mp/orders" xmlns:ns3="http://walmart.com/mp/v3/orders" xmlns:ns4="com.walmart.services.common.model.money" xmlns:ns5="com.walmart.services.common.model.name" xmlns:ns6="com.walmart.services.common.model.address" xmlns:ns7="com.walmart.services.common.model.address.validation" xmlns:ns8="http://walmart.com/">
    <ns3:purchaseOrderId>
        1815367951431
    </ns3:purchaseOrderId>
    <ns3:customerOrderId>
        4372135469400
    </ns3:customerOrderId>
    <ns3:customerEmailId>
        7D9F02968955480499C84C5871AD1401@relay.walmart.com
    </ns3:customerEmailId>
    <ns3:orderType>
        REPLACEMENT
    </ns3:orderType>
    <ns3:orderDate>
        2021-06-15T22:33:27.000Z
    </ns3:orderDate>
    <ns3:shippingInfo>
        <ns3:phone>
            3143450432
        </ns3:phone>
        <ns3:estimatedDeliveryDate>
            2021-06-25T19:00:00.000Z
        </ns3:estimatedDeliveryDate>
        <ns3:estimatedShipDate>
            2021-06-17T05:00:00.000Z
        </ns3:estimatedShipDate>
        <ns3:methodCode>
            Value
        </ns3:methodCode>
        <ns3:postalAddress>
            <ns3:name>
                Donald Ashley
            </ns3:name>
            <ns3:address1>
                6600 gazebo drive
            </ns3:address1>
            <ns3:city>
                Cedar hill
            </ns3:city>
            <ns3:state>
                MO
            </ns3:state>
            <ns3:postalCode>
                63016
            </ns3:postalCode>
            <ns3:country>
                USA
            </ns3:country>
            <ns3:addressType>
                RESIDENTIAL
            </ns3:addressType>
        </ns3:postalAddress>
    </ns3:shippingInfo>
    <ns3:orderLines>
        <ns3:orderLine>
            <ns3:lineNumber>
                1
            </ns3:lineNumber>
            <ns3:item>
                <ns3:productName>
                    Mac Sports Heavy Duty Steel Double Decker Collapsible Yard Cart Wagon, Purple
                </ns3:productName>
                <ns3:sku>
                    YHY-FN25200B2
                </ns3:sku>
            </ns3:item>
            <ns3:charges>
                <ns3:charge>
                    <ns3:chargeType>
                        PRODUCT
                    </ns3:chargeType>
                    <ns3:chargeName>
                        ItemPrice
                    </ns3:chargeName>
                    <ns3:chargeAmount>
                        <ns3:currency>
                            USD
                        </ns3:currency>
                        <ns3:amount>
                            5.00
                        </ns3:amount>
                    </ns3:chargeAmount>
                    <ns3:tax>
                        <ns3:taxName>
                            Tax1
                        </ns3:taxName>
                        <ns3:taxAmount>
                            <ns3:currency>
                                USD
                            </ns3:currency>
                            <ns3:amount>
                                0.34
                            </ns3:amount>
                        </ns3:taxAmount>
                    </ns3:tax>
                </ns3:charge>
            </ns3:charges>
            <ns3:orderLineQuantity>
                <ns3:unitOfMeasurement>
                    EACH
                </ns3:unitOfMeasurement>
                <ns3:amount>
                    1
                </ns3:amount>
            </ns3:orderLineQuantity>
            <ns3:statusDate>
                2021-06-16T09:30:55.623Z
            </ns3:statusDate>
            <ns3:orderLineStatuses>
                <ns3:orderLineStatus>
                    <ns3:status>
                        Shipped
                    </ns3:status>
                    <ns3:statusQuantity>
                        <ns3:unitOfMeasurement>
                            EACH
                        </ns3:unitOfMeasurement>
                        <ns3:amount>
                            1
                        </ns3:amount>
                    </ns3:statusQuantity>
                    <ns3:trackingInfo>
                        <ns3:shipDateTime>
                            2021-06-16T09:30:55.000Z
                        </ns3:shipDateTime>
                        <ns3:carrierName>
                            <ns3:carrier>
                                USPS
                            </ns3:carrier>
                        </ns3:carrierName>
                        <ns3:methodCode>
                            Value
                        </ns3:methodCode>
                        <ns3:trackingNumber>
                            435678956435467
                        </ns3:trackingNumber>
                        <ns3:trackingURL>
                            https://www.walmart.com/tracking?tracking_id=435678956435467&order_id=1815367951431
                        </ns3:trackingURL>
                    </ns3:trackingInfo>
                </ns3:orderLineStatus>
            </ns3:orderLineStatuses>
            <ns3:fulfillment>
                <ns3:fulfillmentOption>
                    S2H
                </ns3:fulfillmentOption>
                <ns3:shipMethod>
                    VALUE
                </ns3:shipMethod>
                <ns3:pickUpDateTime>
                    2021-06-25T19:00:00.000Z
                </ns3:pickUpDateTime>
            </ns3:fulfillment>
        </ns3:orderLine>
    </ns3:orderLines>
    <ns3:shipNode>
        <ns3:type>
            SellerFulfilled
        </ns3:type>
    </ns3:shipNode>
</ns3:order>
```
```python
```

## Result

A successful response returns:

* `purchaseOrderId`: The Walmart purchase order number
* `customerOrderId`: The customer-facing order number
* `customerEmailId`: The relay email address associated with the order
* `orderDate`: Order timestamp
* `shippingInfo`: Phone number, estimated dates, shipping method, and postal address
* `charges`: Item price, taxes, and any other charge details
* `orderLineQuantity`: The quantity of the order line
* `orderLineStatuses`: The current status of the order line
* `trackingInfo`: Carrier, tracking number, and the tracking URL for shipping
* `refund`: Refund details
* `fulfillment`: Fulfillment option, ship method, pickup timing, and shipping program type
* `shipNode`: The fulfillment center

The error responses indicate:

* `400 Invalid request content`
* `401 Unauthorized request`
* `403 Access denied`
* `404 Purchase order not found`
* `429 Rate limit exceeded`
* `500 Internal server error`

# Next Steps

* Replace the `purchaseOrderId` with a real order identifier.
* Add the required Walmart authentication headers in your implementation.
* Parse the order object and map it into your OMS workflow.
* Use `orderLineStatuses` and `trackingInfo` to monitor shipment progress.
* Handle both JSON success responses and problem+json error responses.