JSON Schema for Pricing Records
The current JSON Schema for Pricing records. You can use this schema to validate your data.
{
"title": "pricing",
"description": "Merchstack Schema for Pricing",
"type": "object",
"properties": {
"importMetaData": {
"type": "object",
"properties": {
"importId": {
"type": "string"
},
"recordNum": {
"type": "integer"
},
"recordOf": {
"type": "integer"
},
"recordType": {
"type": "string",
"const": "pricing"
},
"operationType": {
"type": "string",
"enum": [
"create",
"update"
]
},
"formatVersion": {
"type": "string",
"enum": [
"1.0"
]
}
},
"required": [
"importId",
"recordNum",
"recordOf",
"recordType",
"operationType",
"formatVersion"
]
},
"externalVariantId": {
"type": "string"
},
"compareAtPrice": {
"type": "integer"
},
"salePrice": {
"type": "integer"
},
"price": {
"type": "integer"
}
},
"required": [
"importMetaData",
"externalVariantId",
"price"
]
}