Selling Partner API SDK for JavaScript

    Variable itemSalesEventChangeNotificationConst

    itemSalesEventChangeNotification: {
        $id: "https://example.com/example.json";
        definitions: {
            ItemSalesEventChange: {
                examples: readonly [
                    {
                        accountId: "amzn1.merchant.o.A21CXK3C4ERTY8";
                        asin: "B00032HE0O";
                        currencyCode: "USD";
                        endTime: "2023-02-07T16:00:00Z";
                        marketplaceId: "ATVPDKIKX0DER";
                        orderedRevenue: 80.91;
                        orderedUnits: 9;
                        startTime: "2023-02-07T15:00:00Z";
                    },
                ];
                properties: {
                    accountId: {
                        $id: "#/definitions/ItemSalesEventChange/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/ItemSalesEventChange/properties/asin";
                        description: "The Amazon Standard Identification Number of the product.";
                        examples: readonly ["B00032HE0O"];
                        type: "string";
                    };
                    currencyCode: {
                        $id: "#/definitions/ItemSalesEventChange/properties/currencyCode";
                        description: "The currency code of any monetary amounts in ISO 4217 format.";
                        examples: readonly ["USD"];
                        type: "string";
                    };
                    endTime: {
                        $id: "#/definitions/ItemSalesEventChange/properties/endTime";
                        description: "The end of the date-time range of the sales data in ISO 8601 format in UTC time.";
                        examples: readonly ["2023-02-07T16:00:00Z"];
                        format: "date-time";
                        type: "string";
                    };
                    marketplaceId: {
                        $id: "#/definitions/ItemSalesEventChange/properties/marketplaceId";
                        description: "The marketplace identifier of the sales data.";
                        examples: readonly ["ATVPDKIKX0DER"];
                        type: "string";
                    };
                    orderedRevenue: {
                        $id: "#/definitions/ItemSalesEventChange/properties/orderedRevenue";
                        description: "The ordered product sales in the specified time frame. Adjustments are made for cancellations.";
                        examples: readonly [80.91, -4.2];
                        type: "number";
                    };
                    orderedUnits: {
                        $id: "#/definitions/ItemSalesEventChange/properties/orderedUnits";
                        description: "The number of units ordered by Amazon customers in the specified time frame. This number can be negative if there are more cancellations than orders.";
                        examples: readonly [9, -5];
                        type: "integer";
                    };
                    startTime: {
                        $id: "#/definitions/ItemSalesEventChange/properties/startTime";
                        description: "The start of the date-time range of the sales data in ISO 8601 format in UTC time.";
                        examples: readonly ["2023-02-07T15:00:00Z"];
                        format: "date-time";
                        type: "string";
                    };
                };
                required: readonly [
                    "accountId",
                    "marketplaceId",
                    "currencyCode",
                    "startTime",
                    "endTime",
                    "asin",
                    "orderedUnits",
                    "orderedRevenue",
                ];
                type: "object";
            };
            ItemSalesEventChanges: {
                examples: readonly [
                    readonly [
                        {
                            accountId: "amzn1.merchant.o.A21CXK3C4ERTY8";
                            asin: "B00032HE0O";
                            currencyCode: "USD";
                            endTime: "2023-02-07T16:00:00Z";
                            marketplaceId: "ATVPDKIKX0DER";
                            orderedRevenue: 80.91;
                            orderedUnits: 9;
                            startTime: "2023-02-07T15:00:00Z";
                        },
                        {
                            accountId: "amzn1.merchant.o.A21CXK3C4ERTY8";
                            asin: "B00094A20U";
                            currencyCode: "USD";
                            endTime: "2023-02-07T16:00:00Z";
                            marketplaceId: "ATVPDKIKX0DER";
                            orderedRevenue: 527.6;
                            orderedUnits: 5;
                            startTime: "2023-02-07T15:00:00Z";
                        },
                    ],
                ];
                items: { $ref: "#/definitions/ItemSalesEventChange" };
                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 [
                    {
                        itemSalesEventChanges: readonly [
                            {
                                accountId: "amzn1.merchant.o.A21CXK3C4ERTY8";
                                asin: "B00032HE0O";
                                currencyCode: "USD";
                                endTime: "2023-02-07T16:00:00Z";
                                marketplaceId: "ATVPDKIKX0DER";
                                orderedRevenue: 80.91;
                                orderedUnits: 9;
                                startTime: "2023-02-07T15:00:00Z";
                            },
                            {
                                accountId: "amzn1.merchant.o.A21CXK3C4ERTY8";
                                asin: "B00094A20U";
                                currencyCode: "USD";
                                endTime: "2023-02-07T16:00:00Z";
                                marketplaceId: "ATVPDKIKX0DER";
                                orderedRevenue: 527.6;
                                orderedUnits: 5;
                                startTime: "2023-02-07T15:00:00Z";
                            },
                        ];
                    },
                ];
                properties: {
                    itemSalesEventChanges: {
                        $id: "#/definitions/Payload/properties/itemSalesEventChanges";
                        $ref: "#/definitions/ItemSalesEventChanges";
                    };
                };
                required: readonly ["itemSalesEventChanges"];
                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_SALES_EVENT_CHANGE";
                notificationVersion: "2020-09-04";
                payload: {
                    itemSalesEventChanges: readonly [
                        {
                            accountId: "amzn1.merchant.o.A21CXK3C4ERTY8";
                            asin: "B00032HE0O";
                            currencyCode: "USD";
                            endTime: "2023-02-07T16:00:00Z";
                            marketplaceId: "ATVPDKIKX0DER";
                            orderedRevenue: 80.91;
                            orderedUnits: 9;
                            startTime: "2023-02-07T15:00:00Z";
                        },
                        {
                            accountId: "amzn1.merchant.o.A21CXK3C4ERTY8";
                            asin: "B00094A20U";
                            currencyCode: "USD";
                            endTime: "2023-02-07T16:00:00Z";
                            marketplaceId: "ATVPDKIKX0DER";
                            orderedRevenue: 527.6;
                            orderedUnits: 5;
                            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_SALES_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: {
          ItemSalesEventChange: {
              examples: readonly [
                  {
                      accountId: "amzn1.merchant.o.A21CXK3C4ERTY8";
                      asin: "B00032HE0O";
                      currencyCode: "USD";
                      endTime: "2023-02-07T16:00:00Z";
                      marketplaceId: "ATVPDKIKX0DER";
                      orderedRevenue: 80.91;
                      orderedUnits: 9;
                      startTime: "2023-02-07T15:00:00Z";
                  },
              ];
              properties: {
                  accountId: {
                      $id: "#/definitions/ItemSalesEventChange/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/ItemSalesEventChange/properties/asin";
                      description: "The Amazon Standard Identification Number of the product.";
                      examples: readonly ["B00032HE0O"];
                      type: "string";
                  };
                  currencyCode: {
                      $id: "#/definitions/ItemSalesEventChange/properties/currencyCode";
                      description: "The currency code of any monetary amounts in ISO 4217 format.";
                      examples: readonly ["USD"];
                      type: "string";
                  };
                  endTime: {
                      $id: "#/definitions/ItemSalesEventChange/properties/endTime";
                      description: "The end of the date-time range of the sales data in ISO 8601 format in UTC time.";
                      examples: readonly ["2023-02-07T16:00:00Z"];
                      format: "date-time";
                      type: "string";
                  };
                  marketplaceId: {
                      $id: "#/definitions/ItemSalesEventChange/properties/marketplaceId";
                      description: "The marketplace identifier of the sales data.";
                      examples: readonly ["ATVPDKIKX0DER"];
                      type: "string";
                  };
                  orderedRevenue: {
                      $id: "#/definitions/ItemSalesEventChange/properties/orderedRevenue";
                      description: "The ordered product sales in the specified time frame. Adjustments are made for cancellations.";
                      examples: readonly [80.91, -4.2];
                      type: "number";
                  };
                  orderedUnits: {
                      $id: "#/definitions/ItemSalesEventChange/properties/orderedUnits";
                      description: "The number of units ordered by Amazon customers in the specified time frame. This number can be negative if there are more cancellations than orders.";
                      examples: readonly [9, -5];
                      type: "integer";
                  };
                  startTime: {
                      $id: "#/definitions/ItemSalesEventChange/properties/startTime";
                      description: "The start of the date-time range of the sales data in ISO 8601 format in UTC time.";
                      examples: readonly ["2023-02-07T15:00:00Z"];
                      format: "date-time";
                      type: "string";
                  };
              };
              required: readonly [
                  "accountId",
                  "marketplaceId",
                  "currencyCode",
                  "startTime",
                  "endTime",
                  "asin",
                  "orderedUnits",
                  "orderedRevenue",
              ];
              type: "object";
          };
          ItemSalesEventChanges: {
              examples: readonly [
                  readonly [
                      {
                          accountId: "amzn1.merchant.o.A21CXK3C4ERTY8";
                          asin: "B00032HE0O";
                          currencyCode: "USD";
                          endTime: "2023-02-07T16:00:00Z";
                          marketplaceId: "ATVPDKIKX0DER";
                          orderedRevenue: 80.91;
                          orderedUnits: 9;
                          startTime: "2023-02-07T15:00:00Z";
                      },
                      {
                          accountId: "amzn1.merchant.o.A21CXK3C4ERTY8";
                          asin: "B00094A20U";
                          currencyCode: "USD";
                          endTime: "2023-02-07T16:00:00Z";
                          marketplaceId: "ATVPDKIKX0DER";
                          orderedRevenue: 527.6;
                          orderedUnits: 5;
                          startTime: "2023-02-07T15:00:00Z";
                      },
                  ],
              ];
              items: { $ref: "#/definitions/ItemSalesEventChange" };
              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 [
                  {
                      itemSalesEventChanges: readonly [
                          {
                              accountId: "amzn1.merchant.o.A21CXK3C4ERTY8";
                              asin: "B00032HE0O";
                              currencyCode: "USD";
                              endTime: "2023-02-07T16:00:00Z";
                              marketplaceId: "ATVPDKIKX0DER";
                              orderedRevenue: 80.91;
                              orderedUnits: 9;
                              startTime: "2023-02-07T15:00:00Z";
                          },
                          {
                              accountId: "amzn1.merchant.o.A21CXK3C4ERTY8";
                              asin: "B00094A20U";
                              currencyCode: "USD";
                              endTime: "2023-02-07T16:00:00Z";
                              marketplaceId: "ATVPDKIKX0DER";
                              orderedRevenue: 527.6;
                              orderedUnits: 5;
                              startTime: "2023-02-07T15:00:00Z";
                          },
                      ];
                  },
              ];
              properties: {
                  itemSalesEventChanges: {
                      $id: "#/definitions/Payload/properties/itemSalesEventChanges";
                      $ref: "#/definitions/ItemSalesEventChanges";
                  };
              };
              required: readonly ["itemSalesEventChanges"];
              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_SALES_EVENT_CHANGE";
              notificationVersion: "2020-09-04";
              payload: {
                  itemSalesEventChanges: readonly [
                      {
                          accountId: "amzn1.merchant.o.A21CXK3C4ERTY8";
                          asin: "B00032HE0O";
                          currencyCode: "USD";
                          endTime: "2023-02-07T16:00:00Z";
                          marketplaceId: "ATVPDKIKX0DER";
                          orderedRevenue: 80.91;
                          orderedUnits: 9;
                          startTime: "2023-02-07T15:00:00Z";
                      },
                      {
                          accountId: "amzn1.merchant.o.A21CXK3C4ERTY8";
                          asin: "B00094A20U";
                          currencyCode: "USD";
                          endTime: "2023-02-07T16:00:00Z";
                          marketplaceId: "ATVPDKIKX0DER";
                          orderedRevenue: 527.6;
                          orderedUnits: 5;
                          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_SALES_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"
    MMNEPVFCICPMFPCPTTAAATR