VTEX · Schema

PreviewChange

CommerceE-CommerceRetailMarketplacePayments

Properties

Name Type Description
reason string Reason why you wish to change order. Since you can make several changes to an order, filling this field with a clear explanation helps organize the change order history. The shopper can view this fiel
replace array Name of the change operation you are performing, which can be `replace`, `add` or `remove`. If you want, you can combine all change operations in a single request.
View JSON Schema on GitHub

JSON Schema

vtex-previewchange-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/PreviewChange",
  "title": "PreviewChange",
  "required": [
    "reason",
    "replace"
  ],
  "type": "object",
  "properties": {
    "reason": {
      "type": "string",
      "description": "Reason why you wish to change order. Since you can make several changes to an order, filling this field with a clear explanation helps organize the change order history. The shopper can view this field value in [transactional emails](https://help.vtex.com/en/tutorial/order-transactional-email-templates--3g2S2kqBOoSGcCaqMYK2my) and [My Account](https://help.vtex.com/en/tutorial/how-my-account-works--2BQ3GiqhqGJTXsWVuio3Xh).",
      "example": "The client wants to change a weighable product."
    },
    "replace": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Replace"
      },
      "description": "Name of the change operation you are performing, which can be `replace`, `add` or `remove`. If you want, you can combine all change operations in a single request."
    }
  },
  "example": {
    "reason": "The client wants to change a weighable product.",
    "replace": [
      {
        "from": {
          "items": [
            {
              "id": "1",
              "quantity": 1
            }
          ]
        },
        "to": {
          "items": [
            {
              "id": "1",
              "quantity": 1,
              "measurementUnit": "kg",
              "unitMultiplier": 1
            }
          ],
          "shippingData": {
            "logisticsInfo": [
              {
                "itemIndex": 0,
                "slaId": "Normal",
                "deliveryChannel": "delivery",
                "addressId": "12334048475146857",
                "price": 1000
              }
            ]
          }
        }
      }
    ]
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/vtex-previewchange"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.