Hierarchy

  • InventoryRecords

Properties

impersonating: boolean = false

Methods

  • Create a new inventory record. If ID is provided and an object with that ID already exists, a 409 (conflict) error is returned. Check out the docs for more info

    Type Parameters

    Parameters

    Returns Promise<RequiredDeep<TInventoryRecord>>

  • Delete an inventory record. Check out the docs for more info

    Parameters

    • productID: string

      ID of the product.

    • inventoryRecordID: string

      ID of the inventory record.

    • requestOptions: RequestOptions = {}

    Returns Promise<void>

  • Delete an inventory record assignment. Check out the docs for more info

    Parameters

    • productID: string

      ID of the product.

    • inventoryRecordID: string

      ID of the inventory record.

    • listOptions: {
          buyerID?: string;
          userGroupID?: string;
          userID?: string;
      } = {}
      • Optional buyerID?: string

        ID of the buyer.

      • Optional userGroupID?: string

        ID of the user group.

      • Optional userID?: string

        ID of the user.

    • requestOptions: RequestOptions = {}

    Returns Promise<void>

  • Delete a variant inventory record. Check out the docs for more info

    Parameters

    • productID: string

      ID of the product.

    • variantID: string

      ID of the variant.

    • inventoryRecordID: string

      ID of the inventory record.

    • requestOptions: RequestOptions = {}

    Returns Promise<void>

  • Delete an inventory record variant assignment. Check out the docs for more info

    Parameters

    • productID: string

      ID of the product.

    • variantID: string

      ID of the variant.

    • inventoryRecordID: string

      ID of the inventory record.

    • listOptions: {
          buyerID?: string;
          userGroupID?: string;
          userID?: string;
      } = {}
      • Optional buyerID?: string

        ID of the buyer.

      • Optional userGroupID?: string

        ID of the user group.

      • Optional userID?: string

        ID of the user.

    • requestOptions: RequestOptions = {}

    Returns Promise<void>

  • Get a single inventory record. Check out the docs for more info

    Type Parameters

    Parameters

    • productID: string

      ID of the product.

    • inventoryRecordID: string

      ID of the inventory record.

    • requestOptions: RequestOptions = {}

    Returns Promise<RequiredDeep<TInventoryRecord>>

  • Get a single variant inventory record. Check out the docs for more info

    Type Parameters

    Parameters

    • productID: string

      ID of the product.

    • variantID: string

      ID of the variant.

    • inventoryRecordID: string

      ID of the inventory record.

    • requestOptions: RequestOptions = {}

    Returns Promise<RequiredDeep<TInventoryRecord>>

  • Get a list of inventory records. Check out the docs for more info

    Type Parameters

    Parameters

    • productID: string

      ID of the product.

    • listOptions: {
          filters?: Filters;
          page?: number;
          pageSize?: number;
          search?: string;
          searchOn?: ("ID" | "AddressID")[];
          sortBy?: ("ID" | "AddressID" | "!ID" | "!AddressID")[];
      } = {}
      • Optional filters?: Filters

        An object or dictionary representing key/value pairs to apply as filters. Valid keys are top-level properties of the returned model or 'xp.???'

      • Optional page?: number

        Page of results to return. Default: 1. When paginating through many items (> page 30), we recommend the "Last ID" method, as outlined in the Advanced Querying documentation.

      • Optional pageSize?: number

        Number of results to return per page. Default: 20, max: 100.

      • Optional search?: string

        Word or phrase to search for.

      • Optional searchOn?: ("ID" | "AddressID")[]

        Comma-delimited list of fields to search on.

      • Optional sortBy?: ("ID" | "AddressID" | "!ID" | "!AddressID")[]

        Comma-delimited list of fields to sort by.

    • requestOptions: RequestOptions = {}

    Returns Promise<RequiredObjectDeep<ListPage<TInventoryRecord>>>

  • Get a list of inventory record assignments. Check out the docs for more info

    Type Parameters

    Parameters

    • productID: string

      ID of the product.

    • listOptions: {
          buyerID?: string;
          inventoryRecordID?: string;
          level?: PartyType;
          page?: number;
          pageSize?: number;
          userGroupID?: string;
          userID?: string;
      } = {}
      • Optional buyerID?: string

        ID of the buyer.

      • Optional inventoryRecordID?: string

        ID of the inventory record.

      • Optional level?: PartyType

        Level of the inventory record assignment. Possible values: User, Group, Company.

      • Optional page?: number

        Page of results to return. Default: 1. When paginating through many items (> page 30), we recommend the "Last ID" method, as outlined in the Advanced Querying documentation.

      • Optional pageSize?: number

        Number of results to return per page. Default: 20, max: 100.

      • Optional userGroupID?: string

        ID of the user group.

      • Optional userID?: string

        ID of the user.

    • requestOptions: RequestOptions = {}

    Returns Promise<RequiredObjectDeep<ListPage<TInventoryRecordAssignment>>>

  • Get a list of variant inventory records. Check out the docs for more info

    Type Parameters

    Parameters

    • productID: string

      ID of the product.

    • variantID: string

      ID of the variant.

    • listOptions: {
          filters?: Filters;
          page?: number;
          pageSize?: number;
          search?: string;
          searchOn?: ("ID" | "AddressID")[];
          sortBy?: ("ID" | "AddressID" | "!ID" | "!AddressID")[];
      } = {}
      • Optional filters?: Filters

        An object or dictionary representing key/value pairs to apply as filters. Valid keys are top-level properties of the returned model or 'xp.???'

      • Optional page?: number

        Page of results to return. Default: 1. When paginating through many items (> page 30), we recommend the "Last ID" method, as outlined in the Advanced Querying documentation.

      • Optional pageSize?: number

        Number of results to return per page. Default: 20, max: 100.

      • Optional search?: string

        Word or phrase to search for.

      • Optional searchOn?: ("ID" | "AddressID")[]

        Comma-delimited list of fields to search on.

      • Optional sortBy?: ("ID" | "AddressID" | "!ID" | "!AddressID")[]

        Comma-delimited list of fields to sort by.

    • requestOptions: RequestOptions = {}

    Returns Promise<RequiredObjectDeep<ListPage<TInventoryRecord>>>

  • Get a list of inventory record variant assignments. Check out the docs for more info

    Type Parameters

    Parameters

    • productID: string

      ID of the product.

    • variantID: string

      ID of the variant.

    • listOptions: {
          buyerID?: string;
          inventoryRecordID?: string;
          level?: PartyType;
          page?: number;
          pageSize?: number;
          userGroupID?: string;
          userID?: string;
      } = {}
      • Optional buyerID?: string

        ID of the buyer.

      • Optional inventoryRecordID?: string

        ID of the inventory record.

      • Optional level?: PartyType

        Level of the inventory record assignment. Possible values: User, Group, Company.

      • Optional page?: number

        Page of results to return. Default: 1. When paginating through many items (> page 30), we recommend the "Last ID" method, as outlined in the Advanced Querying documentation.

      • Optional pageSize?: number

        Number of results to return per page. Default: 20, max: 100.

      • Optional userGroupID?: string

        ID of the user group.

      • Optional userID?: string

        ID of the user.

    • requestOptions: RequestOptions = {}

    Returns Promise<RequiredObjectDeep<ListPage<TInventoryRecordAssignment>>>

  • Create or update an inventory record. If an object with the same ID already exists, it will be overwritten. Check out the docs for more info

    Type Parameters

    Parameters

    • productID: string

      ID of the product.

    • inventoryRecordID: string

      ID of the inventory record.

    • inventoryRecord: InventoryRecord<any, any>

      Required fields: AddressID

    • requestOptions: RequestOptions = {}

    Returns Promise<RequiredDeep<TInventoryRecord>>

  • Create or update a variant inventory record. Check out the docs for more info

    Type Parameters

    Parameters

    • productID: string

      ID of the product.

    • variantID: string

      ID of the variant.

    • inventoryRecordID: string

      ID of the inventory record.

    • inventoryRecord: InventoryRecord<any, any>

      Required fields: AddressID

    • requestOptions: RequestOptions = {}

    Returns Promise<RequiredDeep<TInventoryRecord>>

Generated using TypeDoc