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

# Create order

Creates an order in your Yotpo store.

Please note that it is not possible to send automatic review request emails for orders that are older than six months.

> 👍 Product Metadata
>
> If you want to <a href="/reference/about-reviews-metadata" target="_blank">send metadata with your order</a>, please <a href="https://reviews.yotpo.com/#/?modal=contact_support" target="_blank">contact Yotpo support</a> so we can turn this feature on for you.

## Ecommerce Platforms

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th>
        Your Platform
      </th>

      <th>
        Enter this for Platform Parameter in API call
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        3dcart
      </td>

      <td>
        `three_d_cart`
      </td>
    </tr>

    <tr>
      <td>
        AmeriCommerce
      </td>

      <td>
        `americommerce`
      </td>
    </tr>

    <tr>
      <td>
        Bigcommerce
      </td>

      <td>
        `bigcommerce`
      </td>
    </tr>

    <tr>
      <td>
        Commerce Guys
      </td>

      <td>
        `commerce_guys`
      </td>
    </tr>

    <tr>
      <td>
        CS-Cart
      </td>

      <td>
        `cscart`
      </td>
    </tr>

    <tr>
      <td>
        ebay
      </td>

      <td>
        `ebay`
      </td>
    </tr>

    <tr>
      <td>
        EC-CUBE
      </td>

      <td>
        `eccube`
      </td>
    </tr>

    <tr>
      <td>
        Lightspeed
      </td>

      <td>
        `seoshop`
      </td>
    </tr>

    <tr>
      <td>
        Magento
      </td>

      <td>
        `magento`
      </td>
    </tr>

    <tr>
      <td>
        OpenCart
      </td>

      <td>
        `opencart`
      </td>
    </tr>

    <tr>
      <td>
        PrestaShop
      </td>

      <td>
        `prestashop`
      </td>
    </tr>

    <tr>
      <td>
        Shopify
      </td>

      <td>
        `shopify`
      </td>
    </tr>

    <tr>
      <td>
        Shoplo
      </td>

      <td>
        `shoplo`
      </td>
    </tr>

    <tr>
      <td>
        Storenvy
      </td>

      <td>
        `storenvy`
      </td>
    </tr>

    <tr>
      <td>
        Volusion
      </td>

      <td>
        `volusion`
      </td>
    </tr>

    <tr>
      <td>
        WooCommerce
      </td>

      <td>
        `woocommerce`
      </td>
    </tr>

    <tr>
      <td>
        WP eCommerce
      </td>

      <td>
        `wp_ecommerce`
      </td>
    </tr>

    <tr>
      <td>
        Zepo
      </td>

      <td>
        `zepo`
      </td>
    </tr>

    <tr>
      <td>
        Any other platform
      </td>

      <td>
        `general`
      </td>
    </tr>
  </tbody>
</Table>

## Error Messages

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th>
        Parameter Name
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `order_id`
      </td>

      <td>
        The ID of the purchase
      </td>
    </tr>

    <tr>
      <td>
        `field`
      </td>

      <td>
        The field where the error occurred
      </td>
    </tr>

    <tr>
      <td>
        `error`
      </td>

      <td>
        Description of the error in the field
      </td>
    </tr>
  </tbody>
</Table>

## Product Specs

* Universal Product Code `upc`: "upc value",
* Manufacturer Part Number `mpn`: "mpn value",
* Brand `brand`: "Yotpo",
* International Standard Book Number `isbn`: "isbn value"
* Stock-keeping unit `sku`: "sku value"
* European Article Number `ean`: "ean value"
* External stock-keeping unit `external_sku`: "external\_sku value"

> 🚧 Note:
>
> * The `data-product-spec` tag must be in lower case.
> * Trailing spaces are automatically stripped in the product specification.
> * Any combination of leading zeros (“0”), leading spaces and leading dashes (“-“) are automatically stripped in the product specification.
> * The product specification value is case-sensitive.
> * The product specification value “N/A” is invalid in any case and is ignored.
> * The product specification only supports alphanumeric (a...z, A...Z, 0...9), "\_" and "-" characters.

> 🚧 Note:
>
> The `product_sku` cannot include the "/" symbol.

# 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": {
      "post": {
        "summary": "Create order",
        "description": "Creates an order in your Yotpo store.\n\nPlease note that it is not possible to send automatic review request emails for orders that are older than six months.",
        "operationId": "create-an-order-within-the-yotpo-system-metadata",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "email",
                  "customer_name",
                  "order_id",
                  "platform",
                  "order_date",
                  "products"
                ],
                "properties": {
                  "email": {
                    "type": "string",
                    "description": "The email address of the customer who made the order"
                  },
                  "customer_name": {
                    "type": "string",
                    "description": "The name of the customer who made the order"
                  },
                  "order_id": {
                    "type": "string",
                    "description": "The unique order ID in your store."
                  },
                  "platform": {
                    "type": "string",
                    "description": "Your eCommerce platform"
                  },
                  "user_reference": {
                    "type": "string",
                    "description": "Only used as an external reference for the Points and Rewards feature"
                  },
                  "order_date": {
                    "type": "string",
                    "description": "The order date, as `YYYY-MM-DD` or an ISO 8601 date-time. Review request emails aren't sent for orders older than six months.",
                    "format": "date"
                  },
                  "currency_iso": {
                    "type": "string",
                    "description": "The ISO code of the currency in which the order was made. Must be three characters long. See [Country Currency Codes](https://www.iban.com/currency-codes)."
                  },
                  "products": {
                    "type": "object",
                    "description": "The ordered products, keyed by product ID (SKU). At least one product is required.",
                    "additionalProperties": {
                      "properties": {
                        "custom_properties": {
                          "type": "array",
                          "description": "Custom product properties as name-value pairs.",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "description": "Property name."
                              },
                              "value": {
                                "type": "string",
                                "description": "Property value."
                              }
                            }
                          }
                        },
                        "url": {
                          "type": "string",
                          "description": "The URL of the product on your store website"
                        },
                        "name": {
                          "type": "string",
                          "description": "The name of the product"
                        },
                        "image": {
                          "type": "string",
                          "description": "The product image URL"
                        },
                        "description": {
                          "type": "string",
                          "description": "The description of the product"
                        },
                        "price": {
                          "type": "string",
                          "description": "The price of the product"
                        },
                        "specs": {
                          "properties": {
                            "upc": {
                              "type": "string",
                              "description": "The product UPC code. Max. length: 255 characters"
                            },
                            "mpn": {
                              "type": "string",
                              "description": "Manufacturer Part Number (MPN). Max. length: 255 characters"
                            },
                            "brand": {
                              "type": "string",
                              "description": "The brand of the product. Max. length: 255 characters"
                            },
                            "isbn": {
                              "type": "string",
                              "description": "The products ISBN code. Max. length: 255 characters"
                            },
                            "ean": {
                              "type": "string",
                              "description": "European Article Number. Max. length: 255 characters"
                            },
                            "external_sku": {
                              "type": "string",
                              "description": "Stock-Keeping Unit. Cannot contain spaces. Max. length: 255 characters"
                            }
                          },
                          "required": [],
                          "type": "object"
                        },
                        "color": {
                          "type": "string",
                          "description": "The product color."
                        },
                        "size": {
                          "type": "string",
                          "description": "The product size."
                        },
                        "vendor": {
                          "type": "string",
                          "description": "The product vendor."
                        },
                        "material": {
                          "type": "string",
                          "description": "The product material."
                        },
                        "model": {
                          "type": "string",
                          "description": "The product model."
                        },
                        "coupon_used": {
                          "type": "boolean",
                          "description": "Whether a coupon was used for this product."
                        },
                        "product_tags": {
                          "type": "string",
                          "description": "A single product tag (no commas)."
                        }
                      },
                      "required": [
                        "url",
                        "name"
                      ],
                      "type": "object",
                      "description": "The product, keyed by its product ID (SKU) in your store."
                    }
                  },
                  "utoken": {
                    "type": "string",
                    "description": "Your access token (utoken). Optional when you send it in the `X-Yotpo-Token` header, which is preferred. See [Yotpo authentication](ref:yotpo-authentication)."
                  },
                  "customer": {
                    "properties": {
                      "state": {
                        "type": "string",
                        "description": "The state the customer is located in"
                      },
                      "country": {
                        "type": "string",
                        "description": "To comply with Google Seller Ratings conventions, this must be a two-letter uppercase country code value from [this list](https://datahub.io/core/country-list) of compatible codes. Default country code: `US`"
                      },
                      "address": {
                        "type": "string",
                        "description": "The customer address"
                      },
                      "phone_number": {
                        "type": "string",
                        "description": "The customer's phone number"
                      },
                      "custom_properties": {
                        "type": "array",
                        "description": "Custom customer properties as name-value pairs.",
                        "items": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string",
                              "description": "Property name."
                            },
                            "value": {
                              "type": "string",
                              "description": "Property value."
                            }
                          }
                        }
                      }
                    },
                    "required": [],
                    "type": "object",
                    "description": "The customer info object"
                  },
                  "delivery_type": {
                    "type": "string",
                    "description": "The type of shipping/delivery chosen for this order e.g. same_day, express, standard"
                  },
                  "custom_properties": {
                    "type": "array",
                    "description": "Custom order properties as name-value pairs.",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "Property name."
                        },
                        "value": {
                          "type": "string",
                          "description": "Property value."
                        }
                      }
                    }
                  },
                  "customer_properties": {
                    "properties": {
                      "state": {
                        "type": "string",
                        "description": "The state the customer is located in"
                      },
                      "address": {
                        "type": "string",
                        "description": "The customer's address"
                      }
                    },
                    "required": [],
                    "type": "object",
                    "description": "Legacy customer details. Prefer `customer`."
                  }
                }
              },
              "examples": {
                "Create Order": {
                  "value": {
                    "platform": "general",
                    "email": "name@example.com",
                    "customer_name": "Jane Doe",
                    "order_id": "order_1",
                    "order_date": "2026-10-14",
                    "currency_iso": "USD",
                    "products": {
                      "SKUaaa12": {
                        "url": "https://www.example.com/products/product1",
                        "name": "product1",
                        "image": "https://www.example.com/images/product1.jpg",
                        "description": "this is the description of a product",
                        "price": "100",
                        "specs": {
                          "upc": "742833102466",
                          "mpn": "100-100-0.100-1000-A",
                          "brand": "samplebrand",
                          "isbn": "978-3-16-148410-0",
                          "ean": "0012345678905",
                          "external_sku": "000SKU123"
                        },
                        "product_tags": "book"
                      }
                    }
                  }
                },
                "Create Order + Order Metadata": {
                  "value": {
                    "platform": "general",
                    "email": "name@example.com",
                    "customer_name": "Sammy Tremblay",
                    "order_id": "2",
                    "order_date": "2026-10-14",
                    "customer": {
                      "state": "MA",
                      "country": "US",
                      "address": "5th Av.",
                      "custom_properties": [
                        {
                          "name": "membership_type",
                          "value": "Annual"
                        }
                      ]
                    },
                    "delivery_type": "Express",
                    "custom_properties": [
                      {
                        "name": "order_history",
                        "value": "5"
                      }
                    ],
                    "products": {
                      "28": {
                        "url": "https://www.example.com/products/direct-bridge",
                        "name": "Direct Bridge",
                        "image": "https://www.example.com/images/direct-bridge.jpg",
                        "description": "Laboriosam aspernatur cupiditate sunt ipsa.",
                        "price": 10,
                        "color": "Red",
                        "custom_properties": [
                          {
                            "name": "year",
                            "value": "2017"
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Accepted. Orders are processed asynchronously and appear in Retrieve orders shortly after.",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"code\": 200,\n  \"message\": \"OK\",\n  \"uuid\": \"a65ac306-cbc4-47a2-8b07-f5af3c6440fa\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "description": "The request was accepted.",
                  "properties": {
                    "code": {
                      "type": "integer",
                      "description": "The HTTP status code, repeated in the body."
                    },
                    "message": {
                      "type": "string",
                      "description": "A short status message, for example `OK`."
                    },
                    "uuid": {
                      "type": "string",
                      "description": "The ID of the accepted request. Orders are processed asynchronously. Include it when you contact Yotpo support."
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "A required field is missing or invalid. Each problem is listed in `errors`.",
            "content": {
              "application/json": {
                "examples": {
                  "Missing field": {
                    "value": "{\n  \"code\": 400,\n  \"uuid\": \"17552b78-3a8d-4932-bf31-81597fdebb6f\",\n  \"errors\": [\n    {\n      \"order_num\": 1,\n      \"order_id\": \"order_1\",\n      \"field\": \"email\",\n      \"error\": \"missing mandatory field\"\n    }\n  ]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "description": "Validation errors.",
                  "properties": {
                    "code": {
                      "type": "integer",
                      "description": "The HTTP status code, repeated in the body."
                    },
                    "uuid": {
                      "type": "string",
                      "description": "A unique ID for this request. Include it when you contact Yotpo support."
                    },
                    "errors": {
                      "type": "array",
                      "description": "One item per problem.",
                      "items": {
                        "type": "object",
                        "properties": {
                          "order_num": {
                            "type": "integer",
                            "description": "The position of the order in the request, starting at 1."
                          },
                          "order_id": {
                            "type": "string",
                            "description": "The order ID the problem is in."
                          },
                          "product_sku": {
                            "type": "string",
                            "description": "The product the problem is in, when it's product-level."
                          },
                          "field": {
                            "type": "string",
                            "description": "The field with the problem, for example `email`."
                          },
                          "error": {
                            "type": "string",
                            "description": "What's wrong, for example `missing mandatory field`."
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "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,
        "parameters": [
          {
            "name": "app_key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Your Yotpo app key (store ID).",
            "example": "YOUR_APP_KEY"
          }
        ]
      }
    }
  },
  "x-readme": {
    "headers": [
      {
        "value": "application/json",
        "key": "Content-Type"
      }
    ],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```