Selling Partner API SDK for JavaScript
    Preparing search index...
    • SupplySourcesApi - functional programming interface

      Parameters

      • Optionalconfiguration: Configuration

      Returns {
          archiveSupplySource(
              supplySourceId: string,
              options?: RawAxiosRequestConfig,
          ): Promise<
              (axios?: AxiosInstance, basePath?: string) => AxiosPromise<ErrorList>,
          >;
          createSupplySource(
              payload: CreateSupplySourceRequest,
              options?: RawAxiosRequestConfig,
          ): Promise<
              (
                  axios?: AxiosInstance,
                  basePath?: string,
              ) => AxiosPromise<CreateSupplySourceResponse>,
          >;
          getSupplySource(
              supplySourceId: string,
              options?: RawAxiosRequestConfig,
          ): Promise<
              (
                  axios?: AxiosInstance,
                  basePath?: string,
              ) => AxiosPromise<SupplySource>,
          >;
          getSupplySources(
              nextPageToken?: string,
              pageSize?: number,
              options?: RawAxiosRequestConfig,
          ): Promise<
              (
                  axios?: AxiosInstance,
                  basePath?: string,
              ) => AxiosPromise<GetSupplySourcesResponse>,
          >;
          updateSupplySource(
              supplySourceId: string,
              payload?: UpdateSupplySourceRequest,
              options?: RawAxiosRequestConfig,
          ): Promise<
              (axios?: AxiosInstance, basePath?: string) => AxiosPromise<ErrorList>,
          >;
          updateSupplySourceStatus(
              supplySourceId: string,
              payload?: UpdateSupplySourceStatusRequest,
              options?: RawAxiosRequestConfig,
          ): Promise<
              (axios?: AxiosInstance, basePath?: string) => AxiosPromise<ErrorList>,
          >;
      }

      • archiveSupplySource: function
        • Archive a supply source, making it inactive. Cannot be undone.

          Parameters

          • supplySourceId: string

            The unique identifier of a supply source.

          • Optionaloptions: RawAxiosRequestConfig

            Override http request option.

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

      • createSupplySource: function
      • getSupplySource: function
        • Retrieve a supply source.

          Parameters

          • supplySourceId: string

            The unique identifier of a supply source.

          • Optionaloptions: RawAxiosRequestConfig

            Override http request option.

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

      • getSupplySources: function
        • The path to retrieve paginated supply sources.

          Parameters

          • OptionalnextPageToken: string

            The pagination token to retrieve a specific page of results.

          • OptionalpageSize: number

            The number of supply sources to return per paginated request.

          • Optionaloptions: RawAxiosRequestConfig

            Override http request option.

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

      • updateSupplySource: function
        • Update the configuration and capabilities of a supply source.

          Parameters

          • supplySourceId: string

            The unique identitier of a supply source.

          • Optionalpayload: UpdateSupplySourceRequest
          • Optionaloptions: RawAxiosRequestConfig

            Override http request option.

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

      • updateSupplySourceStatus: function
        • Update the status of a supply source.

          Parameters

          • supplySourceId: string

            The unique identifier of a supply source.

          • Optionalpayload: UpdateSupplySourceStatusRequest
          • Optionaloptions: RawAxiosRequestConfig

            Override http request option.

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