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 | Array containing `replace` change information. Besides `replace`, you can `add` or `remove` items from an order. - `add`: the schema will correspond to the object `to` inside the `replace` array. - `r |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/Createchange",
"title": "Createchange",
"required": [
"reason"
],
"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": "Array containing `replace` change information. Besides `replace`, you can `add` or `remove` items from an order.\r\n\r\n- `add`: the schema will correspond to the object `to` inside the `replace` array.\r\n\r\n- `remove`: the schema will correspond to the object `from` inside the `replace` array.\r\n\r\nYou will find request body examples of both cases in the endpoint description on the top of the page. The successful response `202 - Accepted` schema is the same for all three operations, whether they are used separately or combined in the same 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
}
]
}
}
}
]
}
}