FbaInventoryApi - functional programming interface

  • Parameters

    • Optionalconfiguration: Configuration

    Returns {
        addInventory(
            xAmznIdempotencyToken: string,
            addInventoryRequestBody: AddInventoryRequest,
            options?: RawAxiosRequestConfig,
        ): Promise<
            (
                axios?: AxiosInstance,
                basePath?: string,
            ) => AxiosPromise<AddInventoryResponse>,
        >;
        createInventoryItem(
            createInventoryItemRequestBody: CreateInventoryItemRequest,
            options?: RawAxiosRequestConfig,
        ): Promise<
            (
                axios?: AxiosInstance,
                basePath?: string,
            ) => AxiosPromise<CreateInventoryItemResponse>,
        >;
        deleteInventoryItem(
            sellerSku: string,
            marketplaceId: string,
            options?: RawAxiosRequestConfig,
        ): Promise<
            (
                axios?: AxiosInstance,
                basePath?: string,
            ) => AxiosPromise<DeleteInventoryItemResponse>,
        >;
        getInventorySummaries(
            granularityType: "Marketplace",
            granularityId: string,
            marketplaceIds: string[],
            details?: boolean,
            startDateTime?: string,
            sellerSkus?: string[],
            sellerSku?: string,
            nextToken?: string,
            options?: RawAxiosRequestConfig,
        ): Promise<
            (
                axios?: AxiosInstance,
                basePath?: string,
            ) => AxiosPromise<GetInventorySummariesResponse>,
        >;
    }

    • addInventory:function
      • Requests that Amazon add items to the Sandbox Inventory with desired amount of quantity in the sandbox environment. This is a sandbox-only operation and must be directed to a sandbox endpoint. Refer to Selling Partner API sandbox for more information.

        Parameters

        • xAmznIdempotencyToken: string

          A unique token/requestId provided with each call to ensure idempotency.

        • addInventoryRequestBody: AddInventoryRequest

          List of items to add to Sandbox inventory.

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<
            (
                axios?: AxiosInstance,
                basePath?: string,
            ) => AxiosPromise<AddInventoryResponse>,
        >

    • createInventoryItem:function
      • Requests that Amazon create product-details in the Sandbox Inventory in the sandbox environment. This is a sandbox-only operation and must be directed to a sandbox endpoint. Refer to Selling Partner API sandbox for more information.

        Parameters

        • createInventoryItemRequestBody: CreateInventoryItemRequest

          CreateInventoryItem Request Body Parameter.

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<
            (
                axios?: AxiosInstance,
                basePath?: string,
            ) => AxiosPromise<CreateInventoryItemResponse>,
        >

    • deleteInventoryItem:function
      • Requests that Amazon Deletes an item from the Sandbox Inventory in the sandbox environment. This is a sandbox-only operation and must be directed to a sandbox endpoint. Refer to Selling Partner API sandbox for more information.

        Parameters

        • sellerSku: string

          A single seller SKU used for querying the specified seller SKU inventory summaries.

        • marketplaceId: string

          The marketplace ID for the marketplace for which the sellerSku is to be deleted.

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<
            (
                axios?: AxiosInstance,
                basePath?: string,
            ) => AxiosPromise<DeleteInventoryItemResponse>,
        >

    • getInventorySummaries:function
      • Returns a list of inventory summaries. The summaries returned depend on the presence or absence of the startDateTime, sellerSkus and sellerSku parameters: - All inventory summaries with available details are returned when the startDateTime, sellerSkus and sellerSku parameters are omitted. - When startDateTime is provided, the operation returns inventory summaries that have had changes after the date and time specified. The sellerSkus and sellerSku parameters are ignored. Important: To avoid errors, use both startDateTime and nextToken to get the next page of inventory summaries that have changed after the date and time specified. - When the sellerSkus parameter is provided, the operation returns inventory summaries for only the specified sellerSkus. The sellerSku parameter is ignored. - When the sellerSku parameter is provided, the operation returns inventory summaries for only the specified sellerSku. Note: The parameters associated with this operation may contain special characters that must be encoded to successfully call the API. To avoid errors with SKUs when encoding URLs, refer to URL Encoding. Usage Plan: | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see Usage Plans and Rate Limits in the Selling Partner API.

        Parameters

        • granularityType: "Marketplace"

          The granularity type for the inventory aggregation level.

        • granularityId: string

          The granularity ID for the inventory aggregation level.

        • marketplaceIds: string[]

          The marketplace ID for the marketplace for which to return inventory summaries.

        • Optionaldetails: boolean

          true to return inventory summaries with additional summarized inventory details and quantities. Otherwise, returns inventory summaries only (default value).

        • OptionalstartDateTime: string

          A start date and time in ISO8601 format. If specified, all inventory summaries that have changed since then are returned. You must specify a date and time that is no earlier than 18 months prior to the date and time when you call the API. Note: Changes in inboundWorkingQuantity, inboundShippedQuantity and inboundReceivingQuantity are not detected.

        • OptionalsellerSkus: string[]

          A list of seller SKUs for which to return inventory summaries. You may specify up to 50 SKUs.

        • OptionalsellerSku: string

          A single seller SKU used for querying the specified seller SKU inventory summaries.

        • OptionalnextToken: string

          String token returned in the response of your previous request. The string token will expire 30 seconds after being created.

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<
            (
                axios?: AxiosInstance,
                basePath?: string,
            ) => AxiosPromise<GetInventorySummariesResponse>,
        >