---
updatedAt: 2026-10-29T08:22:22.000Z
agentTools:
  projectIndex: https://docs.yotpo.com/llms.txt
---

# Update order

Updates an order in your Yotpo store.

> 👍 How to use this endpoint
>
> * Required parameters are listed below. For the full list of properties, see [About orders](https://docs.yotpo.com/reference/orders).
> * To see example requests of full and minimal payload, click **Examples** in the payload on the right.
> * To skip a parameter, enter "null" or exclude it from the payload.

> 📘 Every fulfillment you send in `fulfillments` must include `external_id`, `status` and `fulfillment_date`.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Yotpo API V3",
    "description": "Yotpo API V3 endpoints on api.yotpo.com. Webhook events are defined separately, in webhooks.json.",
    "version": "3.0"
  },
  "servers": [
    {
      "url": "https://api.yotpo.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "X-Yotpo-Token": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Yotpo-Token",
        "description": "Your Yotpo account access token. See [Authentication](https://core-api.yotpo.com/reference/yotpo-authentication) to learn how to generate your access token."
      }
    },
    "responses": {
      "Unauthorized": {
        "description": "Unauthorized. The access token in `X-Yotpo-Token` is invalid or expired. Generate a new one with [Generate access token](ref:yotpo-authentication). The body is plain text.",
        "content": {
          "text/plain": {
            "schema": {
              "type": "string",
              "example": "unauthorized"
            }
          }
        }
      },
      "Forbidden": {
        "description": "Forbidden. The request has no `X-Yotpo-Token` header.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "message": {
                  "type": "string",
                  "description": "Error message.",
                  "example": "Forbidden"
                }
              }
            },
            "examples": {
              "Missing token": {
                "value": "{\n  \"message\": \"Forbidden\"\n}"
              }
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "X-Yotpo-Token": []
    }
  ],
  "paths": {
    "/core/v3/stores/{store_id}/orders/{yotpo_order_id}": {
      "patch": {
        "summary": "Update order",
        "description": "Updates an order in your Yotpo store.",
        "operationId": "update-order",
        "parameters": [
          {
            "name": "store_id",
            "in": "path",
            "description": "The store ID (app_key).",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "yotpo_order_id",
            "in": "path",
            "description": "The Yotpo ID for the order. This ID is created automatically upon creation of the order. You can find it by using the Retrieve endpoint.",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "order"
                ],
                "properties": {
                  "order": {
                    "type": "object",
                    "properties": {
                      "order_name": {
                        "type": "string",
                        "description": "The human-readable identifier of the order, used when communicating with the customer (for example, in review requests). If omitted, the `external_id` is used."
                      },
                      "order_date": {
                        "type": "string",
                        "description": "The date the order was created in the store, in ISO 8601 date-time format. Automatic review request emails aren't sent for orders older than six months.",
                        "format": "date-time"
                      },
                      "checkout_token": {
                        "type": "string",
                        "description": "The ID of the checkout associated with the order."
                      },
                      "payment_method": {
                        "type": "string",
                        "description": "The payment method used to pay for the order. For example, \"Visa\". Max. length: 64 characters."
                      },
                      "total_price": {
                        "type": "number",
                        "format": "double",
                        "description": "The sum of all line item prices, discounts, shipping, taxes, and tips. Uses the shop currency."
                      },
                      "subtotal_price": {
                        "type": "number",
                        "format": "double",
                        "description": "The price of the order after discounts but before shipping, taxes, and tips. Uses the shop currency."
                      },
                      "currency": {
                        "type": "string",
                        "description": "The currency in which the order was made. Must be a valid 3-character ISO code. [See currency codes](https://www.iban.com/currency-codes)"
                      },
                      "landing_site_url": {
                        "type": "string",
                        "description": "The URL of the page where the buyer landed when they entered the shop."
                      },
                      "payment_status": {
                        "type": "string",
                        "description": "The status of payments associated with the order.",
                        "enum": [
                          "pending",
                          "authorized",
                          "partially_paid",
                          "paid",
                          "partially_refunded",
                          "refunded",
                          "voided"
                        ]
                      },
                      "cancellation": {
                        "type": "object",
                        "description": "The cancellation info object.",
                        "properties": {
                          "cancellation_date": {
                            "type": "string",
                            "description": "The date on which the order was cancelled. Format must be ISO 8601.",
                            "format": "date-time"
                          }
                        }
                      },
                      "customer": {
                        "type": "object",
                        "description": "Information about the customer.",
                        "properties": {
                          "external_id": {
                            "type": "string",
                            "description": "A unique customer identifier, used to create profiles, attribute events, and merge profiles. If you don't have a unique identifier for the customer, omit this property. On Shopify, use the Shopify customer ID. Max. length: 255 characters."
                          },
                          "email": {
                            "type": "string",
                            "description": "The email address of the customer. Max. length: 255 characters."
                          },
                          "phone_number": {
                            "type": "string",
                            "description": "The phone number of the customer. Max. length: 255 characters."
                          },
                          "first_name": {
                            "type": "string",
                            "description": "The first name of the customer. Required when using Yotpo Reviews. Max. length: 255 characters."
                          },
                          "last_name": {
                            "type": "string",
                            "description": "The last name of the customer. Required when using Yotpo Reviews. Max. length: 255 characters."
                          }
                        }
                      },
                      "billing_address": {
                        "type": "object",
                        "description": "The billing address for this order.",
                        "properties": {
                          "address1": {
                            "type": "string",
                            "description": "The first line of the address. Max. length: 255 characters."
                          },
                          "address2": {
                            "type": "string",
                            "description": "The second line of the address. Max. length: 255 characters."
                          },
                          "city": {
                            "type": "string",
                            "description": "The name of the city, district, village, or town of the address. Max. length: 255 characters."
                          },
                          "company": {
                            "type": "string",
                            "description": "The name of the company or organization in the address. Max. length: 255 characters."
                          },
                          "state": {
                            "type": "string",
                            "description": "The state the address is located in. Max. length: 64 characters."
                          },
                          "zip": {
                            "type": "string",
                            "description": "The zip or postal code of the address. Max. length: 64 characters."
                          },
                          "province_code": {
                            "type": "string",
                            "description": "The two-letter code for the region of the address. Max. length: 64 characters."
                          },
                          "country_code": {
                            "type": "string",
                            "description": "The country of the address. Must be a valid 2-character ISO code. Default value: `US`. [See country codes](https://datahub.io/core/country-list). Max. length: 64 characters."
                          },
                          "phone_number": {
                            "type": "string",
                            "description": "The phone number in E.164 format. Max. length: 64 characters."
                          }
                        }
                      },
                      "shipping_address": {
                        "type": "object",
                        "description": "The shipping address for this order.",
                        "properties": {
                          "address1": {
                            "type": "string",
                            "description": "The first line of the address. Max. length: 255 characters."
                          },
                          "address2": {
                            "type": "string",
                            "description": "The second line of the address. Max. length: 255 characters."
                          },
                          "city": {
                            "type": "string",
                            "description": "The name of the city, district, village, or town of the address. Max. length: 255 characters."
                          },
                          "company": {
                            "type": "string",
                            "description": "The name of the company or organization in the address. Max. length: 255 characters."
                          },
                          "state": {
                            "type": "string",
                            "description": "The state the address is located in. Max. length: 64 characters."
                          },
                          "zip": {
                            "type": "string",
                            "description": "The zip or postal code of the address. Max. length: 64 characters."
                          },
                          "province_code": {
                            "type": "string",
                            "description": "The two-letter code for the region of the address. Max. length: 64 characters."
                          },
                          "country_code": {
                            "type": "string",
                            "description": "The country of the address. Must be a valid 2-character ISO code. Default value: `US`. [See country codes](https://datahub.io/core/country-list). Max. length: 64 characters."
                          },
                          "phone_number": {
                            "type": "string",
                            "description": "The phone number in E.164 format. Max. length: 64 characters."
                          }
                        }
                      },
                      "custom_properties": {
                        "type": "object",
                        "description": "A key-value set of additional properties. Max. properties: 100. [Learn more](https://core-api.yotpo.com/reference/orders)",
                        "properties": {
                          "suppress_review_request": {
                            "type": "boolean",
                            "description": "When `true`, prevents Yotpo from sending automatic review requests for this order. To suppress requests for specific products only, set this on the relevant line items instead."
                          },
                          "coupon_used": {
                            "type": "boolean",
                            "description": "Indicates if a coupon was used in the purchase (review metadata)."
                          },
                          "delivery_type": {
                            "type": "string",
                            "description": "The type of shipping or delivery used (review metadata)."
                          },
                          "customer_state": {
                            "type": "string",
                            "description": "The state the customer is located in (review metadata). Max. length: 64 characters."
                          },
                          "customer_country": {
                            "type": "string",
                            "description": "The country the customer is located in (review metadata). Must be a valid 2-character ISO code. Default value: `US`. Required if you use Google seller ratings and gather site reviews from outside the US. Max. length: 64 characters."
                          },
                          "customer_address": {
                            "type": "string",
                            "description": "The customer's home address (review metadata)."
                          },
                          "customer_phonenumber": {
                            "type": "string",
                            "description": "The customer's phone number in E.164 format (review metadata). Max. length: 64 characters."
                          },
                          "custom": {
                            "type": "string",
                            "description": "Any other information you want to link to the order (review metadata)."
                          }
                        }
                      },
                      "line_items": {
                        "type": "array",
                        "description": "The products purchased and the desired quantity. Each line item must refer to a unique product ID that is already synced to Yotpo; unknown IDs result in a bad request. Max. objects: 500. [See line item object description](https://core-api.yotpo.com/docs/line-item)",
                        "items": {
                          "type": "object",
                          "required": [
                            "external_product_id",
                            "quantity"
                          ],
                          "properties": {
                            "external_product_id": {
                              "type": "string",
                              "description": "The merchant's unique ID for the product."
                            },
                            "quantity": {
                              "type": "integer",
                              "description": "The quantity of the line item."
                            },
                            "total_price": {
                              "type": "number",
                              "format": "double",
                              "description": "The total price of the line item."
                            },
                            "subtotal_price": {
                              "type": "number",
                              "format": "double",
                              "description": "The price of the products after discounts but before shipping, taxes, and tips."
                            },
                            "coupon_code": {
                              "type": "string",
                              "description": "The coupon code used in the purchase. Case sensitive. Max. length: 255 characters."
                            },
                            "custom_properties": {
                              "type": "object",
                              "description": "A key-value set of additional properties for the line item.",
                              "properties": {
                                "suppress_review_request": {
                                  "type": "boolean",
                                  "description": "When `true`, prevents Yotpo from sending automatic review requests for this product in the order."
                                },
                                "color": {
                                  "type": "string",
                                  "description": "The color of the line item's product (review metadata)."
                                },
                                "size": {
                                  "type": "string",
                                  "description": "The size of the line item's product (review metadata)."
                                },
                                "vendor": {
                                  "type": "string",
                                  "description": "The vendor of the line item's product (review metadata)."
                                },
                                "material": {
                                  "type": "string",
                                  "description": "The material of the line item's product (review metadata)."
                                },
                                "model": {
                                  "type": "string",
                                  "description": "The model of the line item's product (review metadata)."
                                },
                                "coupon_used": {
                                  "type": "boolean",
                                  "description": "Indicates if a coupon was used in the purchase of this line item (review metadata)."
                                },
                                "custom": {
                                  "type": "string",
                                  "description": "Any other information you want to link to the line item (review metadata)."
                                }
                              }
                            }
                          }
                        }
                      },
                      "fulfillments": {
                        "type": "array",
                        "description": "Fulfillment actions related to the order. Review requests are sent only for fulfilled orders (`status` = `success` with a `fulfillment_date`). Max. objects: 100. [See order fulfillments](https://core-api.yotpo.com/reference/order-fulfillments)",
                        "items": {
                          "type": "object",
                          "description": "An order fulfillment.",
                          "required": [
                            "external_id",
                            "fulfillment_date",
                            "status"
                          ],
                          "properties": {
                            "external_id": {
                              "type": "string",
                              "description": "The fulfillment ID in your system. Used to match an existing fulfillment of this order or to add a new one."
                            },
                            "fulfillment_date": {
                              "type": "string",
                              "description": "The date the fulfillment was created. Format must be ISO 8601. Required for sending review requests.",
                              "format": "date-time"
                            },
                            "status": {
                              "type": "string",
                              "description": "The status of the fulfillment. Must be set to `success` for review requests to be sent.",
                              "enum": [
                                "pending",
                                "open",
                                "success",
                                "cancelled",
                                "error",
                                "failure"
                              ]
                            },
                            "shipment_info": {
                              "type": "object",
                              "description": "The shipping info object.",
                              "properties": {
                                "shipment_status": {
                                  "type": "string",
                                  "description": "The current shipment status of the fulfillment.",
                                  "enum": [
                                    "label_printed",
                                    "label_purchased",
                                    "attempted_delivery",
                                    "ready_for_pickup",
                                    "confirmed",
                                    "in_transit",
                                    "out_for_delivery",
                                    "delivered",
                                    "failure"
                                  ]
                                },
                                "tracking_company": {
                                  "type": "string",
                                  "description": "The name of the tracking company."
                                },
                                "tracking_url": {
                                  "type": "string",
                                  "description": "The URL of the tracking page for the shipment."
                                },
                                "tracking_number": {
                                  "type": "string",
                                  "description": "The tracking number as provided by the shipping company."
                                }
                              }
                            },
                            "fulfilled_items": {
                              "type": "array",
                              "description": "Information about the specific items fulfilled (i.e. product and quantity). Providing a fulfillment with an external product ID that is not included in the order will result in a bad request.",
                              "items": {
                                "type": "object",
                                "required": [
                                  "external_product_id",
                                  "quantity"
                                ],
                                "properties": {
                                  "external_product_id": {
                                    "type": "string",
                                    "description": "The merchant's unique ID for the product."
                                  },
                                  "quantity": {
                                    "type": "integer",
                                    "description": "The quantity actually fulfilled."
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    },
                    "description": "The order fields to update. Send only the fields you want to change."
                  }
                }
              },
              "examples": {
                "Update Order (minimal payload)": {
                  "value": {
                    "order": {
                      "customer": {
                        "external_id": "ak123798684365sdfkj"
                      }
                    }
                  }
                },
                "Update Order (full payload)": {
                  "value": {
                    "order": {
                      "order_name": "#S53",
                      "order_date": "2021-03-25T13:57:05Z",
                      "checkout_token": "ll2lk3",
                      "payment_method": "visa",
                      "total_price": 500,
                      "subtotal_price": 400,
                      "currency": "USD",
                      "landing_site_url": "www.waverider.com",
                      "payment_status": "pending",
                      "cancellation": {
                        "cancellation_date": "2021-03-28T13:35:57Z"
                      },
                      "customer": {
                        "external_id": "ak123798684365sdfkj",
                        "email": "name@example.com",
                        "phone_number": "+14155552671",
                        "first_name": "Tom",
                        "last_name": "Smith"
                      },
                      "billing_address": {
                        "address1": "96 Coffee Street",
                        "address2": "",
                        "city": "Hudson",
                        "company": "null",
                        "state": "",
                        "zip": "13420",
                        "province_code": "NY",
                        "country_code": "US",
                        "phone_number": "+5556251199"
                      },
                      "shipping_address": {
                        "address1": "96 Coffee Street",
                        "address2": "",
                        "city": "Hudson",
                        "company": "null",
                        "state": "",
                        "zip": "13420",
                        "province_code": "NY",
                        "country_code": "US",
                        "phone_number": "+5556251199"
                      },
                      "custom_properties": {
                        "delivery_type": "Express",
                        "coupon_used": true
                      },
                      "fulfillments": [
                        {
                          "external_id": "4444444",
                          "fulfillment_date": "2021-03-31T11:58:51Z",
                          "status": "pending",
                          "shipment_info": {
                            "shipment_status": "label_printed",
                            "tracking_company": "UPS",
                            "tracking_url": "www.ups.com/2222",
                            "tracking_number": "2222"
                          },
                          "fulfilled_items": [
                            {
                              "external_product_id": "23234",
                              "quantity": 5
                            }
                          ]
                        }
                      ],
                      "line_items": [
                        {
                          "external_product_id": "23234",
                          "quantity": 5,
                          "total_price": 500,
                          "subtotal_price": 400,
                          "coupon_code": "hg4m",
                          "custom_properties": {
                            "color": "blue",
                            "size": "L"
                          }
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK. The response has no body."
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"errors\": [\n    {\n      \"message\": \"date must be supplied\"\n    }\n  ]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "message": {
                            "type": "string",
                            "example": "date must be supplied",
                            "description": "What's wrong with the request, usually naming the missing or invalid field. Meant for logs; the wording can change, so don't parse it."
                          }
                        }
                      },
                      "description": "The validation errors. Usually one item."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "description": "404",
            "content": {
              "application/json": {
                "examples": {
                  "Order Not Found": {
                    "value": "{\n  \"errors\": [\n    {\n      \"message\": \"order not found\"\n    }\n  ]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "message": {
                            "type": "string",
                            "example": "order not found",
                            "description": "Says which object wasn't found. Meant for logs; the wording can change, so don't parse it."
                          }
                        }
                      },
                      "description": "The errors. Usually one item."
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [
      {
        "value": "application/json",
        "key": "Content-Type"
      }
    ],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```

# Sibling pages

* [About orders](https://docs.yotpo.com/reference/orders.md)
* [Create order](https://docs.yotpo.com/reference/create-order.md)
* [Retrieve orders](https://docs.yotpo.com/reference/retrieve-orders.md)
* [Retrieve order by ID](https://docs.yotpo.com/reference/retrieve-order-by-id.md)
* [About order fulfillments](https://docs.yotpo.com/reference/order-fulfillments.md)
* [Create order fulfillment](https://docs.yotpo.com/reference/create-order-fulfillment.md)
* [Update order fulfillment](https://docs.yotpo.com/reference/update-order-fulfillment.md)
* [Retrieve order fulfillments](https://docs.yotpo.com/reference/retrieve-order-fulfillments.md)
* [Retrieve fulfillment by ID](https://docs.yotpo.com/reference/retrieve-fulfillment-by-id.md)
* [About aggregated order info](https://docs.yotpo.com/reference/aggregated-order-info.md)
* [Send aggregated order info](https://docs.yotpo.com/reference/send-aggregated-order-info.md)