itemInventoryEventChangeNotification: {
    $id: "https://example.com/example.json";
    definitions: {
        ItemInventoryEventChange: {
            examples: readonly [
                {
                    accountId: "amzn1.merchant.o.A21CXK3C4ERTY8";
                    asin: "B00032HE0O";
                    endTime: "2023-02-07T16:00:00Z";
                    highlyAvailableInventory: 650;
                    marketplaceId: "ATVPDKIKX0DER";
                    startTime: "2023-02-07T15:00:00Z";
                },
            ];
            properties: {
                accountId: {
                    $id: "#/definitions/ItemInventoryEventChange/properties/accountId";
                    description: "The merchant customer ID or vendor group ID of the partner account this notification is sent to.";
                    examples: readonly [
                        "amzn1.merchant.o.A21CXK3C4ERTY8",
                        "amzn1.vg.6213651",
                    ];
                    type: "string";
                };
                asin: {
                    $id: "#/definitions/ItemInventoryEventChange/properties/asin";
                    description: "The Amazon Standard Identification Number of the product.";
                    examples: readonly ["B00032HE0O"];
                    type: "string";
                };
                endTime: {
                    $id: "#/definitions/ItemInventoryEventChange/properties/endTime";
                    description: "The end of the date-time range of the inventory data in ISO 8601 format in UTC time.";
                    examples: readonly ["2023-02-07T16:00:00Z"];
                    format: "date-time";
                    type: "string";
                };
                highlyAvailableInventory: {
                    $id: "#/definitions/ItemInventoryEventChange/properties/highlyAvailableInventory";
                    description: "The number of units available to be sold on the website, based on units in Amazon fulfillment centers that are in sellable condition, minus units in customer shopping carts or otherwise bound for other orders (for example, subscribe-and-save orders).";
                    examples: readonly [650];
                    minimum: 0;
                    type: "integer";
                };
                marketplaceId: {
                    $id: "#/definitions/ItemInventoryEventChange/properties/marketplaceId";
                    description: "The marketplace identifier of the inventory data.";
                    examples: readonly ["ATVPDKIKX0DER"];
                    type: "string";
                };
                startTime: {
                    $id: "#/definitions/ItemInventoryEventChange/properties/startTime";
                    description: "The start of the date-time range of the inventory data in ISO 8601 format in UTC time.";
                    examples: readonly ["2023-02-07T15:00:00Z"];
                    format: "date-time";
                    type: "string";
                };
            };
            required: readonly [
                "accountId",
                "marketplaceId",
                "startTime",
                "endTime",
                "asin",
                "highlyAvailableInventory",
            ];
            type: "object";
        };
        ItemInventoryEventChanges: {
            examples: readonly [
                readonly [
                    {
                        accountId: "amzn1.merchant.o.A21CXK3C4ERTY8";
                        asin: "B00032HE0O";
                        endTime: "2023-02-07T16:00:00Z";
                        highlyAvailableInventory: 650;
                        marketplaceId: "ATVPDKIKX0DER";
                        startTime: "2023-02-07T15:00:00Z";
                    },
                    {
                        accountId: "amzn1.merchant.o.A21CXK3C4ERTY8";
                        asin: "B00094A20U";
                        endTime: "2023-02-07T16:00:00Z";
                        highlyAvailableInventory: 519;
                        marketplaceId: "ATVPDKIKX0DER";
                        startTime: "2023-02-07T15:00:00Z";
                    },
                ],
            ];
            items: { $ref: "#/definitions/ItemInventoryEventChange" };
            type: "array";
        };
        NotificationMetadata: {
            examples: readonly [
                {
                    applicationId: "amzn1.sellerapps.app.aacccfff-4455-4b7c-4422-664ecacdd336";
                    notificationId: "d0e9e693-c3ad-4373-979f-ed4ec98dd746";
                    publishTime: "2023-02-07T16:45:32.378Z";
                    subscriptionId: "d0e9e693-c3ad-4373-979f-ed4ec98dd746";
                },
            ];
            properties: {
                applicationId: {
                    $id: "#/definitions/NotificationMetadata/properties/applicationId";
                    examples: readonly [
                        "amzn1.sellerapps.app.aacccfff-4455-4b7c-4422-664ecacdd336",
                    ];
                    type: "string";
                };
                notificationId: {
                    $id: "#/definitions/NotificationMetadata/properties/notificationId";
                    examples: readonly ["d0e9e693-c3ad-4373-979f-ed4ec98dd746"];
                    type: "string";
                };
                publishTime: {
                    $id: "#/definitions/NotificationMetadata/properties/publishTime";
                    examples: readonly ["2023-02-07T16:45:32.378Z"];
                    type: "string";
                };
                subscriptionId: {
                    $id: "#/definitions/NotificationMetadata/properties/subscriptionId";
                    examples: readonly ["d0e9e693-c3ad-4373-979f-ed4ec98dd746"];
                    type: "string";
                };
            };
            required: readonly [
                "applicationId",
                "subscriptionId",
                "publishTime",
                "notificationId",
            ];
            type: "object";
        };
        Payload: {
            examples: readonly [
                {
                    itemInventoryEventChanges: readonly [
                        {
                            accountId: "amzn1.merchant.o.A21CXK3C4ERTY8";
                            asin: "B00032HE0O";
                            endTime: "2023-02-07T16:00:00Z";
                            highlyAvailableInventory: 650;
                            marketplaceId: "ATVPDKIKX0DER";
                            startTime: "2023-02-07T15:00:00Z";
                        },
                        {
                            accountId: "amzn1.merchant.o.A21CXK3C4ERTY8";
                            asin: "B00094A20U";
                            endTime: "2023-02-07T16:00:00Z";
                            highlyAvailableInventory: 519;
                            marketplaceId: "ATVPDKIKX0DER";
                            startTime: "2023-02-07T15:00:00Z";
                        },
                    ];
                },
            ];
            properties: {
                itemInventoryEventChanges: {
                    $id: "#/definitions/Payload/properties/itemInventoryEventChanges";
                    $ref: "#/definitions/ItemInventoryEventChanges";
                };
            };
            required: readonly ["itemInventoryEventChanges"];
            type: "object";
        };
    };
    description: "The root schema comprises the entire JSON document.";
    examples: readonly [
        {
            eventTime: "2023-02-07T16:05:32.378Z";
            notificationMetadata: {
                applicationId: "amzn1.sellerapps.app.aacccfff-4455-4b7c-4422-664ecacdd336";
                notificationId: "d0e9e693-c3ad-4373-979f-ed4ec98dd746";
                publishTime: "2023-02-07T16:45:32.378Z";
                subscriptionId: "d0e9e693-c3ad-4373-979f-ed4ec98dd746";
            };
            notificationType: "ITEM_INVENTORY_EVENT_CHANGE";
            notificationVersion: "2020-09-04";
            payload: {
                itemInventoryEventChanges: readonly [
                    {
                        accountId: "amzn1.merchant.o.A21CXK3C4ERTY8";
                        asin: "B00032HE0O";
                        endTime: "2023-02-07T16:00:00Z";
                        highlyAvailableInventory: 650;
                        marketplaceId: "ATVPDKIKX0DER";
                        startTime: "2023-02-07T15:00:00Z";
                    },
                    {
                        accountId: "amzn1.merchant.o.A21CXK3C4ERTY8";
                        asin: "B00094A20U";
                        endTime: "2023-02-07T16:00:00Z";
                        highlyAvailableInventory: 519;
                        marketplaceId: "ATVPDKIKX0DER";
                        startTime: "2023-02-07T15:00:00Z";
                    },
                ];
            };
            payloadVersion: "2020-09-04";
        },
    ];
    properties: {
        eventTime: {
            $id: "#/properties/eventTime";
            examples: readonly ["2023-02-07T16:45:32.378Z"];
            type: "string";
        };
        notificationMetadata: {
            $id: "#/properties/notificationMetadata";
            $ref: "#/definitions/NotificationMetadata";
        };
        notificationType: {
            $id: "#/properties/notificationType";
            examples: readonly ["ITEM_INVENTORY_EVENT_CHANGE"];
            type: "string";
        };
        notificationVersion: {
            $id: "#/properties/notificationVersion";
            examples: readonly ["2020-09-04"];
            type: "string";
        };
        payload: { $id: "#/properties/payload"; $ref: "#/definitions/Payload" };
        payloadVersion: {
            $id: "#/properties/payloadVersion";
            examples: readonly ["2020-09-04"];
            type: "string";
        };
    };
    required: readonly [
        "notificationVersion",
        "notificationType",
        "payloadVersion",
        "eventTime",
        "payload",
        "notificationMetadata",
    ];
    type: "object";
} = ...

Type declaration

  • Readonly$id: "https://example.com/example.json"
  • Readonlydefinitions: {
        ItemInventoryEventChange: {
            examples: readonly [
                {
                    accountId: "amzn1.merchant.o.A21CXK3C4ERTY8";
                    asin: "B00032HE0O";
                    endTime: "2023-02-07T16:00:00Z";
                    highlyAvailableInventory: 650;
                    marketplaceId: "ATVPDKIKX0DER";
                    startTime: "2023-02-07T15:00:00Z";
                },
            ];
            properties: {
                accountId: {
                    $id: "#/definitions/ItemInventoryEventChange/properties/accountId";
                    description: "The merchant customer ID or vendor group ID of the partner account this notification is sent to.";
                    examples: readonly [
                        "amzn1.merchant.o.A21CXK3C4ERTY8",
                        "amzn1.vg.6213651",
                    ];
                    type: "string";
                };
                asin: {
                    $id: "#/definitions/ItemInventoryEventChange/properties/asin";
                    description: "The Amazon Standard Identification Number of the product.";
                    examples: readonly ["B00032HE0O"];
                    type: "string";
                };
                endTime: {
                    $id: "#/definitions/ItemInventoryEventChange/properties/endTime";
                    description: "The end of the date-time range of the inventory data in ISO 8601 format in UTC time.";
                    examples: readonly ["2023-02-07T16:00:00Z"];
                    format: "date-time";
                    type: "string";
                };
                highlyAvailableInventory: {
                    $id: "#/definitions/ItemInventoryEventChange/properties/highlyAvailableInventory";
                    description: "The number of units available to be sold on the website, based on units in Amazon fulfillment centers that are in sellable condition, minus units in customer shopping carts or otherwise bound for other orders (for example, subscribe-and-save orders).";
                    examples: readonly [650];
                    minimum: 0;
                    type: "integer";
                };
                marketplaceId: {
                    $id: "#/definitions/ItemInventoryEventChange/properties/marketplaceId";
                    description: "The marketplace identifier of the inventory data.";
                    examples: readonly ["ATVPDKIKX0DER"];
                    type: "string";
                };
                startTime: {
                    $id: "#/definitions/ItemInventoryEventChange/properties/startTime";
                    description: "The start of the date-time range of the inventory data in ISO 8601 format in UTC time.";
                    examples: readonly ["2023-02-07T15:00:00Z"];
                    format: "date-time";
                    type: "string";
                };
            };
            required: readonly [
                "accountId",
                "marketplaceId",
                "startTime",
                "endTime",
                "asin",
                "highlyAvailableInventory",
            ];
            type: "object";
        };
        ItemInventoryEventChanges: {
            examples: readonly [
                readonly [
                    {
                        accountId: "amzn1.merchant.o.A21CXK3C4ERTY8";
                        asin: "B00032HE0O";
                        endTime: "2023-02-07T16:00:00Z";
                        highlyAvailableInventory: 650;
                        marketplaceId: "ATVPDKIKX0DER";
                        startTime: "2023-02-07T15:00:00Z";
                    },
                    {
                        accountId: "amzn1.merchant.o.A21CXK3C4ERTY8";
                        asin: "B00094A20U";
                        endTime: "2023-02-07T16:00:00Z";
                        highlyAvailableInventory: 519;
                        marketplaceId: "ATVPDKIKX0DER";
                        startTime: "2023-02-07T15:00:00Z";
                    },
                ],
            ];
            items: { $ref: "#/definitions/ItemInventoryEventChange" };
            type: "array";
        };
        NotificationMetadata: {
            examples: readonly [
                {
                    applicationId: "amzn1.sellerapps.app.aacccfff-4455-4b7c-4422-664ecacdd336";
                    notificationId: "d0e9e693-c3ad-4373-979f-ed4ec98dd746";
                    publishTime: "2023-02-07T16:45:32.378Z";
                    subscriptionId: "d0e9e693-c3ad-4373-979f-ed4ec98dd746";
                },
            ];
            properties: {
                applicationId: {
                    $id: "#/definitions/NotificationMetadata/properties/applicationId";
                    examples: readonly [
                        "amzn1.sellerapps.app.aacccfff-4455-4b7c-4422-664ecacdd336",
                    ];
                    type: "string";
                };
                notificationId: {
                    $id: "#/definitions/NotificationMetadata/properties/notificationId";
                    examples: readonly ["d0e9e693-c3ad-4373-979f-ed4ec98dd746"];
                    type: "string";
                };
                publishTime: {
                    $id: "#/definitions/NotificationMetadata/properties/publishTime";
                    examples: readonly ["2023-02-07T16:45:32.378Z"];
                    type: "string";
                };
                subscriptionId: {
                    $id: "#/definitions/NotificationMetadata/properties/subscriptionId";
                    examples: readonly ["d0e9e693-c3ad-4373-979f-ed4ec98dd746"];
                    type: "string";
                };
            };
            required: readonly [
                "applicationId",
                "subscriptionId",
                "publishTime",
                "notificationId",
            ];
            type: "object";
        };
        Payload: {
            examples: readonly [
                {
                    itemInventoryEventChanges: readonly [
                        {
                            accountId: "amzn1.merchant.o.A21CXK3C4ERTY8";
                            asin: "B00032HE0O";
                            endTime: "2023-02-07T16:00:00Z";
                            highlyAvailableInventory: 650;
                            marketplaceId: "ATVPDKIKX0DER";
                            startTime: "2023-02-07T15:00:00Z";
                        },
                        {
                            accountId: "amzn1.merchant.o.A21CXK3C4ERTY8";
                            asin: "B00094A20U";
                            endTime: "2023-02-07T16:00:00Z";
                            highlyAvailableInventory: 519;
                            marketplaceId: "ATVPDKIKX0DER";
                            startTime: "2023-02-07T15:00:00Z";
                        },
                    ];
                },
            ];
            properties: {
                itemInventoryEventChanges: {
                    $id: "#/definitions/Payload/properties/itemInventoryEventChanges";
                    $ref: "#/definitions/ItemInventoryEventChanges";
                };
            };
            required: readonly ["itemInventoryEventChanges"];
            type: "object";
        };
    }
  • Readonlydescription: "The root schema comprises the entire JSON document."
  • Readonlyexamples: readonly [
        {
            eventTime: "2023-02-07T16:05:32.378Z";
            notificationMetadata: {
                applicationId: "amzn1.sellerapps.app.aacccfff-4455-4b7c-4422-664ecacdd336";
                notificationId: "d0e9e693-c3ad-4373-979f-ed4ec98dd746";
                publishTime: "2023-02-07T16:45:32.378Z";
                subscriptionId: "d0e9e693-c3ad-4373-979f-ed4ec98dd746";
            };
            notificationType: "ITEM_INVENTORY_EVENT_CHANGE";
            notificationVersion: "2020-09-04";
            payload: {
                itemInventoryEventChanges: readonly [
                    {
                        accountId: "amzn1.merchant.o.A21CXK3C4ERTY8";
                        asin: "B00032HE0O";
                        endTime: "2023-02-07T16:00:00Z";
                        highlyAvailableInventory: 650;
                        marketplaceId: "ATVPDKIKX0DER";
                        startTime: "2023-02-07T15:00:00Z";
                    },
                    {
                        accountId: "amzn1.merchant.o.A21CXK3C4ERTY8";
                        asin: "B00094A20U";
                        endTime: "2023-02-07T16:00:00Z";
                        highlyAvailableInventory: 519;
                        marketplaceId: "ATVPDKIKX0DER";
                        startTime: "2023-02-07T15:00:00Z";
                    },
                ];
            };
            payloadVersion: "2020-09-04";
        },
    ]
  • Readonlyproperties: {
        eventTime: {
            $id: "#/properties/eventTime";
            examples: readonly ["2023-02-07T16:45:32.378Z"];
            type: "string";
        };
        notificationMetadata: {
            $id: "#/properties/notificationMetadata";
            $ref: "#/definitions/NotificationMetadata";
        };
        notificationType: {
            $id: "#/properties/notificationType";
            examples: readonly ["ITEM_INVENTORY_EVENT_CHANGE"];
            type: "string";
        };
        notificationVersion: {
            $id: "#/properties/notificationVersion";
            examples: readonly ["2020-09-04"];
            type: "string";
        };
        payload: { $id: "#/properties/payload"; $ref: "#/definitions/Payload" };
        payloadVersion: {
            $id: "#/properties/payloadVersion";
            examples: readonly ["2020-09-04"];
            type: "string";
        };
    }
  • Readonlyrequired: readonly [
        "notificationVersion",
        "notificationType",
        "payloadVersion",
        "eventTime",
        "payload",
        "notificationMetadata",
    ]
  • Readonlytype: "object"