---
updatedAt: 2026-08-03T19:34:54.000Z
---

# Refund Order Lines

 <div class="amber-callout" aria-label="Migration notice"><p><strong>Migrate to Global APIs:</strong> New sellers and approved Solution Providers should use Global APIs. Existing users must migrate to avoid disruption and access new capabilities coming to your market. Explore <a href ="https://developer.walmart.com/global-marketplace/docs/global-marketplace-apis" style="text-decoration: underline !important; font-weight: 700;">Global Marketplace migration resources</a>.</p></div>  <p> Refunds one or more order lines that have been shipped. The response to a successful call contains the order with the refunded line item

[block:html]
{
  "html": "<a\n  href=\"https://god.gw.postman.com/run-collection/34477757-14231a08-eb1b-40f0-82b8-2c5f870d123f?action=collection%2Ffork&source=rip_markdown&collection-url=entityId%3D34477757-14231a08-eb1b-40f0-82b8-2c5f870d123f%26entityType%3Dcollection%26workspaceId%3D956a886d-5b0c-4e87-a28b-d31688fc1cc8\"\n  target=\"_blank\"\n  style=\"text-decoration: none\"\n>\n  <button>\n    <img\n      src=\"https://run.pstmn.io/button.svg\"\n      alt=\"Run In Postman\"\n      style=\"width: 128px; height: 32px\"\n    />\n  </button>\n</a>"
}
[/block]

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "version": "1.0",
    "title": "Returns Management",
    "description": "Returns can be initiated from Walmart.com, even for items purchased from marketplace sellers (Except for HAZMAT or FREIGHT items)."
  },
  "x-readme": {
    "samples-languages": [
      "shell"
    ],
    "proxy-enabled": false,
    "explorer-enabled": true
  },
  "servers": [
    {
      "url": "https://marketplace.walmartapis.com",
      "description": "Production URL"
    },
    {
      "url": "https://sandbox.walmartapis.com",
      "description": "Sandbox URL"
    }
  ],
  "security": [
    {
      "basicScheme": []
    }
  ],
  "paths": {
    "/v3/returns/{returnOrderId}/refund": {
      "post": {
        "tags": [
          "Returns/Refunds"
        ],
        "summary": "Refund Order Lines",
        "description": " <div class=\"amber-callout\" aria-label=\"Migration notice\"><p><strong>Migrate to Global APIs:</strong> New sellers and approved Solution Providers should use Global APIs. Existing users must migrate to avoid disruption and access new capabilities coming to your market. Explore <a href =\"https://developer.walmart.com/global-marketplace/docs/global-marketplace-apis\" style=\"text-decoration: underline !important; font-weight: 700;\">Global Marketplace migration resources</a>.</p></div>  <p> Refunds one or more order lines that have been shipped. The response to a successful call contains the order with the refunded line item",
        "operationId": "refundOrderLines",
        "parameters": [
          {
            "name": "returnOrderId",
            "in": "path",
            "description": "returnOrderId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "WM_MARKET",
            "in": "header",
            "schema": {
              "type": "string",
              "enum": [
                "mx"
              ]
            }
          },
          {
            "in": "header",
            "name": "Authorization",
            "description": "Basic authorization header. Base 64 encodes the Client ID and Client Secret retrieved in step two of the integration steps.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "Basic YzcyOTFjNmItNzI5MC00...."
          },
          {
            "in": "header",
            "name": "WM_SEC.ACCESS_TOKEN",
            "description": "The access token retrieved in the Token API call",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "eyJraWQiOiIzZjVhYTFmNS1hYWE5LTQzM....."
          },
          {
            "in": "header",
            "name": "WM_CONSUMER.CHANNEL.TYPE",
            "description": "A unique ID to track the consumer request by channel. Use the Consumer Channel Type received during onboarding",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "WM_QOS.CORRELATION_ID",
            "description": "A unique ID which identifies each API call and used to track and debug issues; use a random generated GUID for this ID",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "b3261d2d-028a-4ef7-8602-633c23200af6"
          },
          {
            "in": "header",
            "name": "WM_SVC.NAME",
            "description": "Walmart Service Name",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "Walmart Service Name"
          }
        ],
        "requestBody": {
          "description": "OrderRefund request body",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "orderRefund": {
                    "required": [
                      "orderLines"
                    ],
                    "type": "object",
                    "properties": {
                      "orderLines": {
                        "type": "object",
                        "properties": {
                          "orderLine": {
                            "type": "array",
                            "items": {
                              "required": [
                                "lineNumber",
                                "orderLineStatuses"
                              ],
                              "type": "object",
                              "properties": {
                                "lineNumber": {
                                  "type": "string"
                                },
                                "orderLineStatuses": {
                                  "required": [
                                    "orderLineStatus"
                                  ],
                                  "type": "object",
                                  "properties": {
                                    "orderLineStatus": {
                                      "required": [
                                        "status",
                                        "statusQuantity"
                                      ],
                                      "type": "object",
                                      "properties": {
                                        "status": {
                                          "type": "string",
                                          "enum": [
                                            "PROCUREMENT_PURCHASE_ORDER_SHIPPED",
                                            "PROCUREMENT_TRANSFER_ORDER_SHIPPED",
                                            "BACK_ORDERED_FROM_NODE",
                                            "RESERVED_AWAITING_ACCEPTANCE",
                                            "HELD",
                                            "DRAFT_ORDER_RESERVED_AWAITING_ACCEPTANCE",
                                            "RECEIPT_CLOSED",
                                            "CARRIED",
                                            "RECEIVED_AS_COMPONENTS",
                                            "SHIPMENT_DELAYED",
                                            "SHORTED",
                                            "WORK_ORDER_COMPLETED",
                                            "AWAITING_SHIPMENT_CONSOLIDATION",
                                            "AWAITING_WMS_INTERFACE",
                                            "RETURN_RECEIVED",
                                            "ORDER_DELIVERED",
                                            "PROCUREMENT_TRANSFER_ORDER_RECEIVED",
                                            "CUSTOMER_PICKED_UP",
                                            "MEMBERSHIP_PICKED_UP",
                                            "SHIPPED",
                                            "DELIVERED",
                                            "READY_FOR_CUSTOMER",
                                            "PACK_COMPLETE",
                                            "READY_FOR_PACKING",
                                            "SYNCHED",
                                            "RETURN_CREATED",
                                            "SENT_FOR_FULFILLMENT",
                                            "PROCUREMENT_TRANSFER_ORDER_DELIVERED",
                                            "PICKED_UP_BY_CUSTOMER",
                                            "DRAFT_ORDER_CREATED",
                                            "DRAFT_ORDER_RESERVED",
                                            "CREATED",
                                            "RESERVED",
                                            "BEING_NEGOTIATED",
                                            "ACCEPTED",
                                            "BACK_ORDERED",
                                            "UNSCHEDULED",
                                            "SCHEDULED",
                                            "AWAITING_CHAINED_ORDER_CREATION",
                                            "CHAINED_ORDER_CREATED",
                                            "PROCUREMENT_PURCHASE_ORDER_CREATED",
                                            "WORK_ORDER_CREATED",
                                            "PROCUREMENT_TRANSFER_ORDER_CREATED",
                                            "RELEASED",
                                            "SENT_TO_NODE",
                                            "INCLUDED_IN_SHIPMENT",
                                            "CANCELLED",
                                            "AWAITING_PROCUREMENT_PURCHASE_ORDER_CREATION",
                                            "AWAITING_PROCUREMENT_TRANSFER_ORDER_CREATION",
                                            "RECEIVED"
                                          ]
                                        },
                                        "statusQuantity": {
                                          "required": [
                                            "amount",
                                            "unitOfMeasurement"
                                          ],
                                          "type": "object",
                                          "properties": {
                                            "unitOfMeasurement": {
                                              "type": "string"
                                            },
                                            "amount": {
                                              "type": "string"
                                            }
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              },
              "example": {
                "orderRefund": {
                  "orderLines": {
                    "orderLine": [
                      {
                        "lineNumber": "1",
                        "orderLineStatuses": {
                          "orderLineStatus": [
                            {
                              "status": "Received",
                              "statusQuantity": {
                                "unitOfMeasurement": "EACH",
                                "amount": "2"
                              }
                            }
                          ]
                        }
                      }
                    ]
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "description": "Successful Operation",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Failure Operation",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "field": {
                          "type": "string"
                        },
                        "description": {
                          "type": "string"
                        },
                        "info": {
                          "type": "string"
                        },
                        "severity": {
                          "type": "string"
                        },
                        "category": {
                          "type": "string"
                        },
                        "errorIdentifiers": {
                          "type": "object",
                          "properties": {
                            "entry": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Failure Operation 500",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "field": {
                          "type": "string"
                        },
                        "description": {
                          "type": "string"
                        },
                        "info": {
                          "type": "string"
                        },
                        "severity": {
                          "type": "string"
                        },
                        "category": {
                          "type": "string"
                        },
                        "errorIdentifiers": {
                          "type": "object",
                          "properties": {
                            "entry": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
```