ProductVariantBackInStock
v0.0.1

ProductVariantBackInStock

This event is triggered when a ProductVariant transitions from being out of stock (quantity <= 0) to being in stock (quantity > 0) for a specific Inventory.

ProductVariantBackInStock Schema (json)
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "title": "ProductVariantBackInStock",
  "required": ["detail-type", "resources", "detail", "id", "source", "time", "region", "version", "account"],
  "type": "object",
  "x-amazon-events-detail-type": "ProductVariantBackInStock",
  "x-amazon-events-source": "brink.external.v1",
  "properties": {
    "account": {
      "type": "string"
    },
    "detail": {
      "$ref": "#/definitions/Detail"
    },
    "detail-type": {
      "type": "string"
    },
    "id": {
      "type": "string"
    },
    "region": {
      "type": "string"
    },
    "resources": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "source": {
      "type": "string"
    },
    "time": {
      "format": "date-time",
      "type": "string"
    },
    "version": {
      "type": "string"
    }
  },
  "definitions": {
    "Data": {
      "properties": {
        "productVariantId": {"type": "string"},
        "inventoryId":{"type": "string"},
        "beforeQuantity":{"type": "integer"},
        "afterQuantity":{"type": "integer"},
        "date":{
          "type": "string",
          "format": "date-time"
        }
      },
      "required": ["productVariantId", "inventoryId", "beforeQuantity", "afterQuantity", "date"],
      "type": "object"
    },
    "Metadata": {
      "properties": {
        "awsRequestId": {
          "type": "string"
        }
      },
      "required": ["awsRequestId"],
      "type": "object"
    },
    "Detail": {
      "properties": {
        "data": {
          "$ref": "#/definitions/Data"
        },
        "metadata": {
          "$ref": "#/definitions/Metadata"
        }
      },
      "required": ["metadata", "data"],
      "type": "object"
    }
  }
}
Last updated on 2024/11/15