---
updatedAt: 2026-10-29T11:59:26.000Z
agentTools:
  projectIndex: https://docs.yotpo.com/llms.txt
---

# Retrieve orders

> 🚧 Invalidated Orders
>
> Orders which were invalidated will not be returned by this call.

> 🚧 Note:
>
> This call will return a total of ten orders by default. To retrieve more than ten orders, query the `count` parameter to return the desired quantity of orders. Yotpo recommends querying 200 orders per request.

> 🚧 Note:
>
> In the response, `total_purchases` represents the total number of existing orders while `total_orders` represents the total number of orders returned per call as defined using the `count` parameter. By default, `total_orders` will return 10 orders if the `count` parameter is excluded.
>
> e.g.\
> "total\_purchases": 1278421,\
> "total\_orders": 10

> 🚧 Pages can be short
>
> `count` is applied before invalidated orders are removed, so a page can contain fewer purchases than `count`, or none, even when more exist. Keep requesting pages until `page` × `count` is greater than `total_purchases`.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Core API V1 (legacy)",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.yotpo.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "X-Yotpo-Token": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Yotpo-Token",
        "description": "Your access token (utoken). Generate it with [Yotpo authentication](ref:yotpo-authentication). Older integrations can send it as `utoken` in the request body instead."
      }
    }
  },
  "security": [
    {
      "X-Yotpo-Token": []
    }
  ],
  "paths": {
    "/apps/{app_key}/purchases": {
      "get": {
        "summary": "Retrieve orders",
        "description": "",
        "operationId": "retrieve-orders-from-the-yotpo-system",
        "parameters": [
          {
            "name": "app_key",
            "in": "path",
            "description": "The store ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "since_date",
            "in": "query",
            "description": "Retrieve all orders created starting from this date. The date format is YYYY-MM-DD.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "The page number of the paginated response.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "count",
            "in": "query",
            "description": "Results per page. Defaults to 10. Pages are counted before invalidated orders are filtered out, so a page can hold fewer purchases than `count` (or none) even when more exist. Keep paging until `page` × `count` passes `total_purchases`.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 10
            }
          },
          {
            "name": "include_invalidated_for_review_requests",
            "in": "query",
            "description": "`false` by default. Includes only valid for emails",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"status\": {\n    \"code\": 200,\n    \"message\": \"OK\"\n  },\n  \"response\": {\n    \"purchases\": [\n      {\n        \"user_email\": \"bruce@example.com\",\n        \"user_name\": \"Bruce Lee\",\n        \"order_id\": \"10000\",\n        \"product_sku\": \"242761577\",\n        \"product_name\": \"Classic Black Leather\",\n        \"product_url\": \"http://www.watchfactory.com/products/black-black-leather\",\n        \"order_date\": \"2014-08-17T00:00:00.000Z\",\n        \"product_description\": \"Black/Black Leather\",\n        \"created_at\": \"2014-10-26T23:10:55.000Z\",\n        \"order_line_id\": 21568639316,\n        \"product_id\": 1153560809\n      },\n      {\n        \"user_email\": \"ron@example.com\",\n        \"user_name\": \"Ronald McDonald\",\n        \"order_id\": \"100000\",\n        \"product_sku\": \"242613653\",\n        \"product_name\": \"Classic Black Tan\",\n        \"product_url\": \"http://www.watchfactory.com/products/black-tan-leather\",\n        \"order_date\": \"2015-02-16T13:04:36.000Z\",\n        \"product_description\": \"Black/Tan Leather\",\n        \"created_at\": \"2015-02-17T03:38:23.000Z\",\n        \"order_line_id\": 21568639317,\n        \"product_id\": 1153560810\n      },\n      {\n        \"user_email\": \"fred@example.com\",\n        \"user_name\": \"Fred Flintstone\",\n        \"order_id\": \"1000000\",\n        \"product_sku\": \"2647270277\",\n        \"product_name\": \"The 40 - Rose Gold Natural Tan\",\n        \"product_url\": \"http://www.watchfactory.com/products/rose-gold-natural-tan-leather\",\n        \"order_date\": \"2017-08-08T05:58:49.000Z\",\n        \"product_description\": \"40 - Rose Gold/Natural Leather\",\n        \"created_at\": \"2017-08-09T21:12:56.000Z\",\n        \"order_line_id\": 21568639318,\n        \"product_id\": 1153560811\n      },\n      {\n        \"user_email\": \"rick@example.com\",\n        \"user_name\": \"Rick Sanchez\",\n        \"order_id\": \"1000001\",\n        \"product_sku\": \"559165508\",\n        \"product_name\": \"Chrono Gunmetal Sandstone\",\n        \"product_url\": \"http://www.watchfactory.com/products/chrono-gun-metal-sandstone-leather\",\n        \"order_date\": \"2017-08-07T15:05:46.000Z\",\n        \"product_description\": \"Chrono Gun Metal/Leather\",\n        \"created_at\": \"2017-08-08T01:05:05.000Z\",\n        \"order_line_id\": 21568639319,\n        \"product_id\": 1153560812\n      },\n      {\n        \"user_email\": \"bird@example.com\",\n        \"user_name\": \"Bird Person\",\n        \"order_id\": \"1000002\",\n        \"product_sku\": \"2110786565\",\n        \"product_name\": \"Gold/Brown Leather\",\n        \"product_url\": \"http://www.watchfactory.com/products/gold-brown-leather\",\n        \"order_date\": \"2017-08-08T06:02:39.000Z\",\n        \"product_description\": \"Gold/Brown Leather\",\n        \"created_at\": \"2017-08-09T21:12:57.000Z\",\n        \"order_line_id\": 21568639320,\n        \"product_id\": 1153560813\n      },\n      {\n        \"user_email\": \"meeseeks@example.com\",\n        \"user_name\": \"Mister Meeseeks\",\n        \"order_id\": \"1000005\",\n        \"product_sku\": \"2647960005\",\n        \"product_name\": \"The 40 - Rose Gold Brown\",\n        \"product_url\": \"http://www.watchfactory.com/products/rose-gold-brown-leather\",\n        \"order_date\": \"2017-08-07T15:05:33.000Z\",\n        \"product_description\": \"The 40 - Rose Gold/Brown Leather\",\n        \"created_at\": \"2017-08-08T01:05:05.000Z\",\n        \"order_line_id\": 21568639321,\n        \"product_id\": 1153560814\n      },\n      {\n        \"user_email\": \"peter@example.com\",\n        \"user_name\": \"Peter Griffin\",\n        \"order_id\": \"1000006\",\n        \"product_sku\": \"379455772\",\n        \"product_name\": \"Classic White Gold\",\n        \"product_url\": \"http://www.watchfactory.com/products/white-gold-leather\",\n        \"order_date\": \"2017-08-08T05:58:49.000Z\",\n        \"product_description\": \"White Gold/Leather\",\n        \"created_at\": \"2017-08-09T21:12:58.000Z\",\n        \"order_line_id\": 21568639322,\n        \"product_id\": 1153560815\n      },\n      {\n        \"user_email\": \"marge@example.com\",\n        \"user_name\": \"Marge Simpson\",\n        \"order_id\": \"1000007\",\n        \"product_sku\": \"379456616\",\n        \"product_name\": \"Classic Rose Gold Black\",\n        \"product_url\": \"http://www.watchfactory.com/products/rose-gold-black-leather\",\n        \"order_date\": \"2017-08-07T15:05:35.000Z\",\n        \"product_description\": \"Rose Gold Black/Leather\",\n        \"created_at\": \"2017-08-08T01:05:06.000Z\",\n        \"order_line_id\": 21568639323,\n        \"product_id\": 1153560816\n      },\n      {\n        \"user_email\": \"lisa@example.com\",\n        \"user_name\": \"Lisa Simpson\",\n        \"order_id\": \"1000008\",\n        \"product_sku\": \"559220996\",\n        \"product_name\": \"Chrono White Caramel\",\n        \"product_url\": \"http://www.watchfactory.com/products/chrono-white-caramel-leather\",\n        \"order_date\": \"2017-08-08T05:58:49.000Z\",\n        \"product_description\": \"Chrono White/Leather\",\n        \"created_at\": \"2017-08-09T21:12:59.000Z\",\n        \"order_line_id\": 21568639324,\n        \"product_id\": 1153560817\n      },\n      {\n        \"user_email\": \"pinky_brain@example.com\",\n        \"user_name\": \"Pinky Mouse\",\n        \"order_id\": \"1000009\",\n        \"product_sku\": \"2478011397\",\n        \"product_name\": \"Classic - 24mm Black Leather\",\n        \"product_url\": \"http://www.watchfactory.com/products/24mm-black-leather\",\n        \"order_date\": \"2017-08-08T05:58:48.000Z\",\n        \"product_description\": \"This 24mm wide interchangeable strap fits ONLY Classic Series Watches\",\n        \"created_at\": \"2017-08-09T21:12:59.000Z\",\n        \"order_line_id\": 21568639325,\n        \"product_id\": 1153560818\n      }\n    ],\n    \"total_purchases\": 1278421,\n    \"total_orders\": 10\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "integer",
                          "example": 200,
                          "default": 0,
                          "description": "The HTTP status code, repeated in the body."
                        },
                        "message": {
                          "type": "string",
                          "example": "OK",
                          "description": "A short status message, for example `OK`."
                        }
                      },
                      "description": "The request status."
                    },
                    "response": {
                      "type": "object",
                      "properties": {
                        "purchases": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "user_email": {
                                "type": "string",
                                "example": "bruce@example.com",
                                "description": "The customer's email address."
                              },
                              "user_name": {
                                "type": "string",
                                "example": "Bruce Lee",
                                "description": "The customer's name."
                              },
                              "order_id": {
                                "type": "string",
                                "example": "10000",
                                "description": "The order ID in your store."
                              },
                              "product_sku": {
                                "type": "string",
                                "example": "242761577",
                                "description": "The product ID (SKU) in your store."
                              },
                              "product_name": {
                                "type": "string",
                                "example": "Classic Black Leather",
                                "description": "The product name."
                              },
                              "product_url": {
                                "type": "string",
                                "example": "http://www.watchfactory.com/products/black-black-leather",
                                "description": "The product page URL."
                              },
                              "order_date": {
                                "type": "string",
                                "example": "2014-08-17T00:00:00.000Z",
                                "description": "When the order was placed (ISO 8601 with a UTC offset, for example `2026-10-20T10:00:00.000+00:00`)."
                              },
                              "product_description": {
                                "type": "string",
                                "example": "Black/Black Leather",
                                "description": "The product description."
                              },
                              "created_at": {
                                "type": "string",
                                "example": "2014-10-26T23:10:55.000Z",
                                "description": "When the purchase was created in Yotpo (ISO 8601 with a UTC offset, for example `2026-10-20T10:00:00.000+00:00`)."
                              },
                              "order_line_id": {
                                "type": "integer",
                                "example": 21568639316,
                                "description": "The Yotpo ID of this order line."
                              },
                              "product_id": {
                                "type": "integer",
                                "example": 1153560809,
                                "description": "The Yotpo ID of the product."
                              }
                            }
                          },
                          "description": "One item per product in each order (a purchase is an order line). Pages are counted in orders, so a page can hold fewer orders than `count`."
                        },
                        "total_purchases": {
                          "type": "integer",
                          "example": 1278421,
                          "default": 0,
                          "description": "The total number of purchases (order lines) that match the request, across all pages."
                        },
                        "total_orders": {
                          "type": "integer",
                          "example": 10,
                          "default": 0,
                          "description": "The number of orders this page covered. Usually equals `count`; the last page can have fewer."
                        }
                      },
                      "description": "The purchases on this page."
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "text/plain": {
                "examples": {
                  "Result": {
                    "value": ""
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or expired access token.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "object",
                      "description": "Error details.",
                      "properties": {
                        "message": {
                          "type": "string",
                          "description": "Error message."
                        },
                        "code": {
                          "type": "integer",
                          "description": "HTTP status code."
                        },
                        "error_type": {
                          "type": "string",
                          "description": "Error type."
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Not authorized": {
                    "value": "{\n  \"status\": {\n    \"message\": \"You are not authorized to access this page.\",\n    \"code\": 401,\n    \"error_type\": \"Exceptions::AccessDenied\"\n  }\n}"
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [
      {
        "value": "application/json",
        "key": "Content-Type"
      }
    ],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```