VTEX · Schema

Replace

CommerceE-CommerceRetailMarketplacePayments

Properties

Name Type Description
from object
to object
View JSON Schema on GitHub

JSON Schema

vtex-replace-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Replace",
  "title": "Replace",
  "required": [
    "from",
    "to"
  ],
  "type": "object",
  "properties": {
    "from": {
      "$ref": "#/components/schemas/FromV2"
    },
    "to": {
      "$ref": "#/components/schemas/ToV2"
    }
  },
  "example": {
    "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
          }
        ]
      }
    }
  }
}