Skip to content

Instantly share code, notes, and snippets.

@olgen
Created July 24, 2013 12:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save olgen/6070056 to your computer and use it in GitHub Desktop.
Save olgen/6070056 to your computer and use it in GitHub Desktop.
JSON & schema of the webhook payload of admineo-webhooks
{
"type":"object",
"$schema": "http://json-schema.org/draft-03/schema",
"id": "http://jsonschema.net",
"required":false,
"properties":{
"event": {
"enum": [
"product.created",
"product.updated",
"product.deleted" ]
},
"id": {
"type":"string",
"id": "id",
"description": "Id of the event. Can be used for internal processed/unprocessed handling."
},
"payload": {
"type":"object",
"id": "http://jsonschema.net/payload",
"required":false,
"properties":{
"product": {
"type":"object",
"id": "http://jsonschema.net/payload/product",
"required":false,
"properties":{
"category_paths": {
"type":"array",
"id": "http://jsonschema.net/payload/product/category_paths",
"required":false,
"items":
{
"type":"string",
"id": "http://jsonschema.net/payload/product/category_paths/0",
"required":false
}
},
"delivery_time_name": {
"type":"string",
"id": "http://jsonschema.net/payload/product/delivery_time_name",
"required":false
},
"description_long": {
"type":"string",
"id": "http://jsonschema.net/payload/product/description_long",
"required":false
},
"description_teaser": {
"type":"string",
"id": "http://jsonschema.net/payload/product/description_teaser",
"required":false
},
"ean": {
"type":"null",
"id": "http://jsonschema.net/payload/product/ean",
"required":false
},
"erp_group_names": {
"type":"string",
"id": "http://jsonschema.net/payload/product/erp_group_names",
"required":false
},
"id": {
"type":"string",
"id": "http://jsonschema.net/payload/product/id",
"required":false
},
"images": {
"type":"array",
"id": "http://jsonschema.net/payload/product/images",
"required":false,
"items":
{
"type":"object",
"id": "http://jsonschema.net/payload/product/images/0",
"required":false,
"properties":{
"filename": {
"type":"string",
"id": "http://jsonschema.net/payload/product/images/0/filename",
"required":false
},
"image_url": {
"type":"string",
"id": "http://jsonschema.net/payload/product/images/0/image_url",
"required":false
}
}
}
},
"keyword_names": {
"type":"string",
"id": "http://jsonschema.net/payload/product/keyword_names",
"required":false
},
"manufacturer_name": {
"type":"string",
"id": "http://jsonschema.net/payload/product/manufacturer_name",
"required":false
},
"name": {
"type":"string",
"id": "http://jsonschema.net/payload/product/name",
"required":false
},
"packing_unit": {
"type":"string",
"id": "http://jsonschema.net/payload/product/packing_unit",
"required":false
},
"pid": {
"type":"string",
"id": "http://jsonschema.net/payload/product/pid",
"required":false
},
"prices": {
"type":"array",
"id": "http://jsonschema.net/payload/product/prices",
"required":false,
"items":
{
"type":"object",
"id": "http://jsonschema.net/payload/product/prices/0",
"required":false,
"properties":{
"cents": {
"type":"number",
"id": "http://jsonschema.net/payload/product/prices/0/cents",
"required":false
},
"currency": {
"type":"string",
"id": "http://jsonschema.net/payload/product/prices/0/currency",
"required":false
},
"lower_bound": {
"type":"number",
"id": "http://jsonschema.net/payload/product/prices/0/lower_bound",
"required":false
},
"price_type": {
"type":"string",
"id": "http://jsonschema.net/payload/product/prices/0/price_type",
"required":false
}
}
}
},
"stock_quantity": {
"type":"number",
"id": "http://jsonschema.net/payload/product/stock_quantity",
"required":false
},
"supplier_name": {
"type":"string",
"id": "http://jsonschema.net/payload/product/supplier_name",
"required":false
},
"supplier_pid": {
"type":"null",
"id": "http://jsonschema.net/payload/product/supplier_pid",
"required":false
}
}
}
}
}
}
}
{
"id": "51efbe89b7a0bb9929000216",
"event": "product.created",
"payload": {
"product": {
"pid": "12359",
"supplier_pid": null,
"ean": null,
"name": "product name 14",
"description_teaser": "product desc teaser 14",
"description_long": "product desc long 14product desc long 14product desc long 14product desc long 14product desc long 14",
"stock_quantity": 12359,
"packing_unit": "Stk",
"category_paths": ["Kennzeichnung>>Schilder>>Brandschutz"],
"keyword_names": "keyward name 14",
"erp_group_names": "erp_group 14",
"delivery_time_name": "14 Tage",
"manufacturer_name": "manufacturer name 14",
"supplier_name": "supplier name 14",
"id": "51efbe89b7a0bb992900020a",
"prices": [{
"price_type": "nrp",
"lower_bound": 1,
"cents": 100,
"currency": "EUR"
}],
"images": [{
"filename": "image_14.png",
"image_url": "https://www.filepicker.io/api/file/14?policy=eyJleHBpcnkiOjEzNzQ2NjY5NzcsImNhbGwiOlsicmVhZCIsImNvbnZlcnQiXSwiaGFuZGxlIjoiMTQifQ%3D%3D&signature=a998a833c603b3ffc75a6bfc75f1ea757b53671e4378a7a99514124d65d99764"
}]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment