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

# Create mass orders

> 🚧 Country codes for `customer.country` param:
>
> To comply with Google Seller Ratings conventions, the `customer.country` param requires\
> two-letter uppercase country code values from [this list](https://datahub.io/core/country-list) of compatible codes. Default country code: `US`

> 📘 Note:
>
> Remember to take advantage of your Kickstart Credits. We recommend sending us past orders from the last two to 4 months (make sure you don't exceed your Kickstart Credit limit).\
> See the [Kickstart Credits](https://support.yotpo.com/en/article/kickstart-credits) guide for more information.

> ❗️ Important:
>
> It is not possible to send a MAP emails for orders older than six months.

> 📘 Note:
>
> Yotpo recommends passing batches of 200 orders per request

## e-Commerce 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>

## 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:
>
> * 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 only supports alphanumeric (a...z, A...Z, 0...9), "\_" and "-" characters.
> * The product specification value is case-sensitive.
> * The product specification value “N/A” is invalid in any case and is ignored.

> 📘 Note:
>
> For a list of ISO currency codes, go to <http://www.currency-iso.org/en/home/tables/table-a1.html>

> 📘 Note:
>
> The product ID only supports alphanumeric (a...z, A...Z, 0...9), "\_" and "-" characters without spaces.
>
> Sending an invalid character in the product ID will cause the transaction to be ignored with\
> no indication of failure.

## Error Messages

If there is an error in the data that you submit, you receive an errors object in the response with the following information:

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

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

  <tbody>
    <tr>
      <td>
        `order_num`
      </td>

      <td>
        The position of the purchase (order) in the list that you submitted.
      </td>
    </tr>

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

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

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

      <td>
        The field where the error occurred. In the  example below, the field is the user email.
      </td>
    </tr>

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

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

> 🚧 Note:
>
> The `product_tag` parameter can only be a single string.

# 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/mass_create.json": {
      "post": {
        "summary": "Create mass orders",
        "description": "",
        "operationId": "create-orders-within-the-yotpo-system",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "platform",
                  "orders"
                ],
                "properties": {
                  "platform": {
                    "type": "string",
                    "description": "Your e-commerce platform"
                  },
                  "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)."
                  },
                  "orders": {
                    "type": "array",
                    "description": "The orders to create (send an array, even for one order).",
                    "items": {
                      "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 ID of the order"
                        },
                        "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)."
                        },
                        "coupon_used": {
                          "type": "boolean",
                          "description": "Indicates whether a coupon was applied to this order"
                        },
                        "user_reference": {
                          "type": "string",
                          "description": "An external identifier used to link between the Yotpo user identity and an external user identity."
                        },
                        "delivery_type": {
                          "type": "string",
                          "description": "The type of delivery used for this product"
                        },
                        "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": {
                            "state": {
                              "type": "string",
                              "description": "The state the customer is located in"
                            },
                            "country": {
                              "type": "string",
                              "description": "Two letter uppercase country code indicating the customer country. Default value:`US` [See country codes list](https://datahub.io/core/country-list)"
                            },
                            "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": "Customer details."
                        },
                        "products": {
                          "type": "object",
                          "description": "The ordered products, keyed by product ID (SKU).",
                          "additionalProperties": {
                            "properties": {
                              "url": {
                                "type": "string",
                                "description": "The product page URL"
                              },
                              "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": "Including the product price helps us rank and prioritize products by their price. For example, you can use this parameter to request reviews based on product price."
                              },
                              "specs": {
                                "properties": {
                                  "upc": {
                                    "type": "string",
                                    "description": "The product UPC"
                                  },
                                  "mpn": {
                                    "type": "string",
                                    "description": "Manufacturer Part Number (MPN)"
                                  },
                                  "brand": {
                                    "type": "string",
                                    "description": "The brand of the product"
                                  },
                                  "isbn": {
                                    "type": "string",
                                    "description": "The product ISBN number"
                                  },
                                  "ean": {
                                    "type": "string",
                                    "description": "European Article Number"
                                  },
                                  "external_sku": {
                                    "type": "string",
                                    "description": "Stock-Keeping Unit. Cannot contain spaces."
                                  }
                                },
                                "required": [],
                                "type": "object"
                              },
                              "product_tags": {
                                "type": "string",
                                "description": "The tag you apply to a product in Custom Questions. This can only be a single string. Products can accept one tag per product and may not contain commas"
                              },
                              "color": {
                                "type": "string",
                                "description": "The color of the product e.g. \"Midnight black\""
                              },
                              "size": {
                                "type": "string",
                                "description": "The size of the product e.g. \"Large\""
                              },
                              "material": {
                                "type": "string",
                                "description": "The material the product is made of e.g. \"cotton\""
                              },
                              "model": {
                                "type": "string",
                                "description": "The model of the product e.g. \"f-150\""
                              },
                              "vendor": {
                                "type": "string",
                                "description": "The product vendor"
                              },
                              "coupon_used": {
                                "type": "boolean",
                                "description": "Indicates whether a coupon was applied to this product at time of purchase"
                              },
                              "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."
                                    }
                                  }
                                }
                              }
                            },
                            "required": [
                              "url",
                              "name"
                            ],
                            "type": "object",
                            "description": "The product, keyed by its product ID (SKU) in your store."
                          }
                        }
                      },
                      "required": [
                        "customer_name",
                        "email",
                        "order_date",
                        "order_id",
                        "products"
                      ],
                      "type": "object",
                      "description": "An order."
                    }
                  }
                }
              },
              "examples": {
                "Create Mass Orders + Metadata": {
                  "value": {
                    "platform": "shopify",
                    "orders": [
                      {
                        "email": "name@example.com",
                        "customer_name": "Dan",
                        "order_id": "178434653",
                        "order_date": "2026-08-21",
                        "currency_iso": "USD",
                        "coupon_used": true,
                        "delivery_type": "Express",
                        "custom_properties": [
                          {
                            "name": "order_history",
                            "value": "5"
                          }
                        ],
                        "customer": {
                          "state": "NY",
                          "country": "US",
                          "custom_properties": [
                            {
                              "name": "membership_type",
                              "value": "annual"
                            }
                          ]
                        },
                        "products": {
                          "7867088075": {
                            "url": "https://www.example.com/products/dinglebop",
                            "name": "dinglebop",
                            "image": "https://www.example.com/images/dinglebop.jpg",
                            "description": "this is the best dinglebop money can buy",
                            "price": "100",
                            "specs": {
                              "upc": "4011200296908",
                              "isbn": "978-3-16-148410-0"
                            },
                            "product_tags": "gadget",
                            "color": "purple",
                            "size": "extra large",
                            "material": "aluminum",
                            "model": "v1",
                            "vendor": "Thingamajigs",
                            "coupon_used": true,
                            "custom_properties": [
                              {
                                "name": "year",
                                "value": "2017"
                              }
                            ]
                          }
                        }
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"code\": 200,\n  \"message\": \"OK\",\n  \"uuid\": \"22e03d7c-aba557-467d-55-a60a7c28ad73\"\n}"
                  }
                },
                "schema": {
                  "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`."
                    },
                    "uuid": {
                      "type": "string",
                      "example": "22e03d7c-aba557-467d-55-a60a7c28ad73",
                      "description": "The ID of the accepted request. Orders are processed asynchronously and appear in Retrieve orders shortly after. Include it when you contact Yotpo support."
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid orders. Each problem is listed in `errors`; a malformed body returns `status.message` instead.",
            "content": {
              "application/json": {
                "examples": {
                  "Validation errors": {
                    "value": "{\n  \"code\": 400,\n  \"uuid\": \"2a5014e2-c323-43c0-bb73-f393589fcf6a\",\n  \"errors\": [\n    {\n      \"order_num\": 1,\n      \"order_id\": \"178434653\",\n      \"field\": \"coupon_used\",\n      \"error\": \"coupon_used should be a boolean\"\n    }\n  ]\n}"
                  },
                  "orders is not an array": {
                    "value": "{\n  \"status\": {\n    \"code\": 400,\n    \"message\": \"orders param must be an array\"\n  }\n}"
                  }
                },
                "schema": {
                  "oneOf": [
                    {
                      "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`."
                              }
                            }
                          }
                        }
                      },
                      "title": "Validation errors"
                    },
                    {
                      "type": "object",
                      "description": "The request body is malformed.",
                      "title": "Malformed request",
                      "properties": {
                        "status": {
                          "type": "object",
                          "description": "Error details.",
                          "properties": {
                            "code": {
                              "type": "integer",
                              "description": "The HTTP status code, repeated in the body."
                            },
                            "message": {
                              "type": "string",
                              "description": "What's wrong, for example `orders param must be an array`."
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "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
}
```