Skip to content

Instantly share code, notes, and snippets.

@zubairov
Created January 22, 2018 12:27
Show Gist options
  • Save zubairov/ca670ff532cd76768bab727dec3b2403 to your computer and use it in GitHub Desktop.
Save zubairov/ca670ff532cd76768bab727dec3b2403 to your computer and use it in GitHub Desktop.
{
"type": "object",
"properties": {
"customer_id": {
"type": "number",
"required": false,
"title": "Customer id"
},
"created_at": {
"type": "string",
"required": false,
"title": "Created at"
},
"updated_at": {
"type": "string",
"required": false,
"title": "Updated at"
},
"store_id": {
"type": "number",
"required": false,
"title": "Store id"
},
"website_id": {
"type": "number",
"required": false,
"title": "Website id"
},
"created_in": {
"type": "string",
"required": false,
"title": "Created in"
},
"dob": {
"type": "string",
"required": false,
"title": "Date of Birth"
},
"email": {
"type": "string",
"required": false,
"title": "Email"
},
"firstname": {
"type": "string",
"required": false,
"title": "Firstname"
},
"gender": {
"type": "number",
"required": false,
"title": "Gender"
},
"group_id": {
"type": "number",
"required": false,
"title": "Group id"
},
"lastname": {
"type": "string",
"required": false,
"title": "Lastname"
},
"reward_update_notification": {
"type": "number",
"required": false,
"title": "Reward update notification"
},
"reward_warning_notification": {
"type": "number",
"required": false,
"title": "Reward warning notification"
},
"billing_address": {
"type": "object",
"properties": {
"customer_address_id": {
"type": "number",
"required": false,
"title": "Customer billing address id"
},
"created_at": {
"type": "string",
"required": false,
"title": "Billing address created at"
},
"updated_at": {
"type": "string",
"required": false,
"title": "Billing address updated at"
},
"city": {
"type": "string",
"required": false,
"title": "Billing address City"
},
"country_id": {
"type": "string",
"required": false,
"title": "Billing address Country id"
},
"firstname": {
"type": "string",
"required": false,
"title": "Billing address Firstname"
},
"lastname": {
"type": "string",
"required": false,
"title": "Billing address Lastname"
},
"postcode": {
"type": "number",
"required": false,
"title": "Billing address Postcode"
},
"region": {
"type": "string",
"required": false,
"title": "Billing address Region"
},
"region_id": {
"type": "number",
"required": false,
"title": "Billing address Region id"
},
"street": {
"type": "string",
"required": false,
"title": "Billing address Street"
},
"telephone": {
"type": "string",
"required": false,
"title": "Billing address Telephone"
}
}
},
"shipping_address": {
"type": "object",
"properties": {
"customer_address_id": {
"type": "number",
"required": false,
"title": "Customer shipping address id"
},
"created_at": {
"type": "string",
"required": false,
"title": "Shipping address created at"
},
"updated_at": {
"type": "string",
"required": false,
"title": "Shipping address updated at"
},
"city": {
"type": "string",
"required": false,
"title": "Shipping address City"
},
"country_id": {
"type": "string",
"required": false,
"title": "Shipping address Country id"
},
"firstname": {
"type": "string",
"required": false,
"title": "Shipping address Firstname"
},
"lastname": {
"type": "string",
"required": false,
"title": "Shipping address Lastname"
},
"postcode": {
"type": "number",
"required": false,
"title": "Shipping address Postcode"
},
"region": {
"type": "string",
"required": false,
"title": "Shipping address Region"
},
"region_id": {
"type": "number",
"required": false,
"title": "Shipping address Region id"
},
"street": {
"type": "string",
"required": false,
"title": "Shipping address Street"
},
"telephone": {
"type": "string",
"required": false,
"title": "Shipping address Telephone"
}
}
}
}
}
{
"type": "object",
"properties": {
"id": {
"title": "Product ID (to update)",
"type": "string",
"required": false
},
"sku": {
"title": "Product SKU",
"type": "string",
"required": true
},
"data": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string",
"required": false
},
"description": {
"title": "Description",
"type": "string",
"required": false
},
"short_description": {
"title": "Short Description",
"type": "string",
"required": false
},
"weight": {
"title": "Weight",
"type": "string",
"required": false
},
"status": {
"title": "Product status",
"enum": {
"1": "enabled",
"2": "disabled"
}
},
"url_key": {
"title": "URL Key",
"type": "string",
"required": false
},
"url_path": {
"title": "URL path",
"type": "string",
"required": false
},
"visibility": {
"title": "Visibility",
"required": false,
"enum": {
"1": "Not Visible Individually",
"2": "Catalog",
"3": "Search",
"4": "Catalog, Search"
}
},
"category_ids": {
"title": "Category ID",
"type": "string",
"required": false
},
"website_ids": {
"title": "Website ID",
"type": "string",
"required": false
},
"has_options": {
"title": "Product has options",
"enum": {
"0": "No",
"1": "Yes"
},
"required": false
},
"gift_message_available": {
"title": "Gift message available",
"enum": {
"0": "No",
"1": "Yes"
},
"required": false
},
"price": {
"title": "Price",
"type": "string",
"required": false
},
"special_price": {
"title": "Special price",
"type": "string",
"required": false
},
"special_from_date": {
"title": "Special price from date",
"type": "string",
"required": false
},
"special_to_date": {
"title": "Special price to date",
"type": "string",
"required": false
},
"tax_class_id": {
"title": "Product tax class ID",
"type": "string",
"required": false
},
"tier_price": {
"type": "array",
"required": false,
"properties": {
"customer_group_id": {
"title": "Tier price: Customer group ID",
"type": "string",
"required": false
},
"website": {
"title": "Tier price: Website ID",
"type": "string",
"required": false
},
"qty": {
"title": "Tier price: Quantity",
"type": "string",
"required": false
},
"price": {
"title": "Tier price: Price",
"type": "string",
"required": false
}
}
},
"meta_title": {
"title": "Meta title",
"type": "string",
"required": false
},
"meta_keyword": {
"title": "Meta keyword",
"type": "string",
"required": false
},
"meta_description": {
"title": "Meta description",
"type": "string",
"required": false
},
"custom_design": {
"title": "Custom design ID",
"type": "string",
"required": false
},
"custom_design_from": {
"title": "Custom design active from date",
"type": "string",
"required": false
},
"custom_design_to": {
"title": "Custom design active to date",
"type": "string",
"required": false
},
"custom_layout_update": {
"title": "Custom Layout Update",
"type": "string",
"required": false
},
"options_container": {
"title": "Display Product Options In",
"enum": {
"container1": "Product Info Column",
"container2": "Block after Info Column"
},
"required": false
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment