VTEX · Schema

Create/UpdateRequest

CommerceE-CommerceRetailMarketplacePayments

Properties

Name Type Description
id string
name string
description string
instructions string
formatted_address string
address object
isActive boolean
businessHours array
tagsLabel array
View JSON Schema on GitHub

JSON Schema

vtex-createupdaterequest-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/CreateUpdateRequest",
  "title": "Create/UpdateRequest",
  "required": [
    "id",
    "name",
    "description",
    "instructions",
    "formatted_address",
    "address",
    "isActive",
    "businessHours",
    "tagsLabel"
  ],
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "instructions": {
      "type": "string"
    },
    "formatted_address": {
      "type": "string"
    },
    "address": {
      "title": "Address2",
      "required": [
        "postalCode",
        "country",
        "city",
        "state",
        "neighborhood",
        "street",
        "number",
        "complement",
        "reference",
        "location"
      ],
      "type": "object",
      "properties": {
        "postalCode": {
          "type": "string"
        },
        "country": {
          "title": "Country",
          "required": [
            "acronym",
            "name"
          ],
          "type": "object",
          "properties": {
            "acronym": {
              "type": "string"
            },
            "name": {
              "type": "string"
            }
          },
          "example": {
            "acronym": "BRA",
            "name": "Brazil"
          }
        },
        "city": {
          "type": "string"
        },
        "state": {
          "type": "string"
        },
        "neighborhood": {
          "type": "string"
        },
        "street": {
          "type": "string"
        },
        "number": {
          "type": "string"
        },
        "complement": {
          "type": "string"
        },
        "reference": {
          "type": "string",
          "nullable": true
        },
        "location": {
          "title": "Location5",
          "required": [
            "latitude",
            "longitude"
          ],
          "type": "object",
          "properties": {
            "latitude": {
              "type": "number"
            },
            "longitude": {
              "type": "number"
            }
          },
          "example": {
            "latitude": -22.974477767944336,
            "longitude": -43.18672561645508
          }
        }
      },
      "example": {
        "postalCode": "22070002",
        "country": {
          "acronym": "BRA",
          "name": "Brazil"
        },
        "city": "Rio de Janeiro",
        "state": "RJ",
        "neighborhood": "Copacabana",
        "street": "Avenida Atl\u251c\u00f3ntica",
        "number": "",
        "complement": "",
        "reference": null,
        "location": {
          "latitude": -22.974477767944336,
          "longitude": -43.18672561645508
        }
      }
    },
    "isActive": {
      "type": "boolean"
    },
    "businessHours": {
      "type": "array",
      "items": {
        "title": "BusinessHour",
        "required": [
          "dayOfWeek",
          "openingTime",
          "closingTime"
        ],
        "type": "object",
        "properties": {
          "dayOfWeek": {
            "type": "integer",
            "format": "int32"
          },
          "openingTime": {
            "type": "string"
          },
          "closingTime": {
            "type": "string"
          }
        },
        "example": {
          "dayOfWeek": 1,
          "openingTime": "08:00:00",
          "closingTime": "20:00:00"
        }
      },
      "description": ""
    },
    "tagsLabel": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": ""
    }
  },
  "example": {
    "id": "1a227d3",
    "name": "Loja Copacabana",
    "description": "",
    "instructions": "Obrigat\u251c\u2502rio apresentar documento de identifica\u251c\u00ba\u251c\u00fao",
    "formatted_address": "undefined",
    "address": {
      "postalCode": "22070002",
      "country": {
        "acronym": "BRA",
        "name": "Brazil"
      },
      "city": "Rio de Janeiro",
      "state": "RJ",
      "neighborhood": "Copacabana",
      "street": "Avenida Atl\u251c\u00f3ntica",
      "number": "",
      "complement": "",
      "reference": null,
      "location": {
        "latitude": -22.974477767944336,
        "longitude": -43.18672561645508
      }
    },
    "isActive": true,
    "businessHours": [
      {
        "dayOfWeek": 1,
        "openingTime": "08:00:00",
        "closingTime": "20:00:00"
      },
      {
        "dayOfWeek": 2,
        "openingTime": "08:00:00",
        "closingTime": "20:00:00"
      },
      {
        "dayOfWeek": 3,
        "openingTime": "08:00:00",
        "closingTime": "20:00:00"
      },
      {
        "dayOfWeek": 4,
        "openingTime": "08:00:00",
        "closingTime": "20:00:00"
      },
      {
        "dayOfWeek": 5,
        "openingTime": "08:00:00",
        "closingTime": "20:00:00"
      }
    ],
    "tagsLabel": [
      "zonasul",
      "rio de janeiro"
    ]
  }
}