ordercloud-javascript-sdk
    Preparing search index...

    Class Me

    Index
    AcceptProductCollectionInvitation As CreateAddress CreateCreditCard CreateGroupOrderInvitation CreateProductCollection CreateProductCollectionEntry CreateProductCollectionInvitation CreateSubscription CreateSubscriptionBundleItem CreateSubscriptionItem DeclineProductCollectionInvitation DeleteAddress DeleteCreditCard DeleteGroupOrderInvitation DeleteProductCollection DeleteProductCollectionEntry DeleteProductCollectionInvitation DeleteSubscription DeleteSubscriptionBundleItem DeleteSubscriptionItem Get GetAddress GetCatalog GetCategory GetCreditCard GetGroupOrderInvitation GetProduct GetProductCollection GetProductCollectionInvitation GetPromotion GetShipment GetSpec GetSpendingAccount GetSubscription GetSubscriptionItem GetVariant ListAddresses ListApprovableOrders ListBuyerSellers ListCatalogs ListCategories ListCostCenters ListCreditCards ListGroupOrderInvitations ListOrders ListProductCollectionEntries ListProductCollectionInvitations ListProductCollections ListProductInventoryRecords ListProducts ListProductSellers ListPromotions ListShipmentItems ListShipments ListSpecs ListSpendingAccounts ListSubscriptionItems ListSubscriptions ListUserGroups ListVariantInventoryRecords ListVariants Patch PatchAddress PatchCreditCard PatchGroupOrderInvitation PatchProductCollection PatchProductCollectionInvitation PatchSubscription PatchSubscriptionItem Register ResetPasswordByToken RevokeTokens Save SaveAddress SaveCreditCard SaveProductCollection SaveProductCollectionEntry SaveSubscription SaveSubscriptionItem TransferAnonUserOrder
    • Accept a product collection invitation Check out the docs for more info

      Parameters

      • productCollectionID: string

        ID of the product collection.

      • invitationID: string

        ID of the invitation.

      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<void>

    • Returns this

      enables impersonation by calling the subsequent method with the stored impersonation token

      Me.As().List() // lists Me using the impersonated users' token
      
    • Create an address Only available to Buyer Users. Addresses created using this endpoint are considered private, and only accessible to the user who created them. Check out the docs for more info

      Type Parameters

      Parameters

      • buyerAddress: BuyerAddress

        Required fields: Street1, City, Country

      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<RequiredDeep<TBuyerAddress>>

    • Create a product collection entry Only available to Buyer Users. Check out the docs for more info

      Parameters

      • productCollectionID: string

        ID of the product collection.

      • productID: string

        ID of the product.

      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<void>

    • Create a subscription bundle item Check out the docs for more info

      Type Parameters

      • TLineItem extends LineItem<any, any, any, any, any>

      Parameters

      • subscriptionID: string

        ID of the subscription.

      • bundleID: string

        ID of the bundle.

      • bundleItems: BundleItems
      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<RequiredDeep<TLineItem>>

    • Create a subscription item Check out the docs for more info

      Type Parameters

      • TLineItem extends LineItem<any, any, any, any, any>

      Parameters

      • subscriptionID: string

        ID of the subscription.

      • lineItem: LineItem

        Required fields: ProductID

      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<RequiredDeep<TLineItem>>

    • Decline a product collection invitation Check out the docs for more info

      Parameters

      • productCollectionID: string

        ID of the product collection.

      • invitationID: string

        ID of the invitation.

      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<void>

    • Delete an address Only available to Buyer Users. Check out the docs for more info

      Parameters

      • addressID: string

        ID of the address.

      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<void>

    • Delete a credit card Only available to Buyer Users. Check out the docs for more info

      Parameters

      • creditcardID: string

        ID of the creditcard.

      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<void>

    • Delete a group order invitation Check out the docs for more info

      Parameters

      • invitationID: string

        ID of the invitation.

      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<void>

    • Delete a product collection Only available to Buyer Users. Check out the docs for more info

      Parameters

      • productCollectionID: string

        ID of the product collection.

      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<void>

    • Delete a product collection entry Only available to Buyer Users. Check out the docs for more info

      Parameters

      • productCollectionID: string

        ID of the product collection.

      • productID: string

        ID of the product.

      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<void>

    • Delete a product collection invitation Only available to Buyer Users. Check out the docs for more info

      Parameters

      • productCollectionID: string

        ID of the product collection.

      • invitationID: string

        ID of the invitation.

      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<void>

    • Delete a subscription Check out the docs for more info

      Parameters

      • subscriptionID: string

        ID of the subscription.

      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<void>

    • Delete a subscription bundle item Check out the docs for more info

      Parameters

      • subscriptionID: string

        ID of the subscription.

      • bundleID: string

        ID of the bundle.

      • bundleItemID: string

        ID of the bundle item.

      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<void>

    • Delete a subscription item Check out the docs for more info

      Parameters

      • subscriptionID: string

        ID of the subscription.

      • subscriptionItemID: string

        ID of the subscription item.

      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<void>

    • Get the currently authenticated user Check out the docs for more info

      Type Parameters

      Parameters

      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<RequiredDeep<TMeUser>>

    • Retrieve a catalog Only available to Buyer Users. Check out the docs for more info

      Type Parameters

      Parameters

      • catalogID: string

        ID of the catalog.

      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<RequiredDeep<TCatalog>>

    • Retrieve a category Only available to Buyer Users. Check out the docs for more info

      Type Parameters

      Parameters

      • categoryID: string

        ID of the category.

      • listOptions: { catalogID?: string } = {}
        • OptionalcatalogID?: string

          ID of the catalog.

      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<RequiredDeep<TCategory>>

    • Retrieve a product Only available to Buyer Users. Check out the docs for more info

      Type Parameters

      Parameters

      • productID: string

        ID of the product.

      • listOptions: { sellerID?: string } = {}
        • OptionalsellerID?: string

          ID of the seller.

      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<RequiredDeep<TBuyerProduct>>

    • Retrieve a promotion Only available to Buyer Users. Check out the docs for more info

      Type Parameters

      Parameters

      • promotionID: string

        ID of the promotion.

      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<RequiredDeep<TPromotion>>

    • Retrieve a shipment Only available to Buyer Users. Check out the docs for more info

      Type Parameters

      • TShipment extends Shipment<any, any, any>

      Parameters

      • shipmentID: string

        ID of the shipment.

      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<RequiredDeep<TShipment>>

    • Retrieve a spec Only available to Buyer Users. Check out the docs for more info

      Type Parameters

      • TSpec extends Spec<any, any>

      Parameters

      • productID: string

        ID of the product.

      • specID: string

        ID of the spec.

      • listOptions: { catalogID?: string } = {}
        • OptionalcatalogID?: string

          ID of the catalog.

      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<RequiredDeep<TSpec>>

    • Retrieve a subscription item Check out the docs for more info

      Type Parameters

      • TLineItem extends LineItem<any, any, any, any, any>

      Parameters

      • subscriptionID: string

        ID of the subscription.

      • subscriptionItemID: string

        ID of the subscription item.

      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<RequiredDeep<TLineItem>>

    • Retrieve a variant Only available to Buyer Users. Check out the docs for more info

      Type Parameters

      Parameters

      • productID: string

        ID of the product.

      • variantID: string

        ID of the variant.

      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<RequiredDeep<TVariant>>

    • List addresses visible to this user Only available to Buyer Users. Check out the docs for more info

      Type Parameters

      Parameters

      • listOptions: {
            filters?: Filters;
            page?: number;
            pageSize?: number;
            search?: string;
            searchOn?: (
                | "ID"
                | "AddressName"
                | "CompanyName"
                | "City"
                | "Street1"
                | "Street2"
                | "LastName"
                | "FirstName"
                | "State"
                | "Zip"
            )[];
            sortBy?: (
                | "ID"
                | "AddressName"
                | "CompanyName"
                | "City"
                | "Street1"
                | "Street2"
                | "LastName"
                | "FirstName"
                | "State"
                | "Zip"
                | "DateCreated"
                | "Country"
                | "Phone"
                | "!AddressName"
                | "!ID"
                | "!DateCreated"
                | "!CompanyName"
                | "!FirstName"
                | "!LastName"
                | "!Street1"
                | "!Street2"
                | "!City"
                | "!State"
                | "!Zip"
                | "!Country"
                | "!Phone"
            )[];
        } = {}
        • Optionalfilters?: 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.???'

        • Optionalpage?: number

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

        • OptionalpageSize?: number

          Number of results to return per page.

        • Optionalsearch?: string

          Word or phrase to search for.

        • OptionalsearchOn?: (
              | "ID"
              | "AddressName"
              | "CompanyName"
              | "City"
              | "Street1"
              | "Street2"
              | "LastName"
              | "FirstName"
              | "State"
              | "Zip"
          )[]

          Comma-delimited list of fields to search on.

        • OptionalsortBy?: (
              | "ID"
              | "AddressName"
              | "CompanyName"
              | "City"
              | "Street1"
              | "Street2"
              | "LastName"
              | "FirstName"
              | "State"
              | "Zip"
              | "DateCreated"
              | "Country"
              | "Phone"
              | "!AddressName"
              | "!ID"
              | "!DateCreated"
              | "!CompanyName"
              | "!FirstName"
              | "!LastName"
              | "!Street1"
              | "!Street2"
              | "!City"
              | "!State"
              | "!Zip"
              | "!Country"
              | "!Phone"
          )[]

          Comma-delimited list of fields to sort by.

      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<RequiredObjectDeep<ListPage<TBuyerAddress>>>

    • Get a list of orders that this user can approve Check out the docs for more info

      Type Parameters

      • TOrder extends Order<any, any, any>

      Parameters

      • listOptions: {
            filters?: Filters;
            from?: string;
            page?: number;
            pageSize?: number;
            search?: string;
            searchOn?: ("ID" | "FromCompanyID" | "ToCompanyID" | "Comments")[];
            sortBy?: (
                | "ID"
                | "FromCompanyID"
                | "ToCompanyID"
                | "DateCreated"
                | "!ID"
                | "!DateCreated"
                | "DateSubmitted"
                | "FromUserID"
                | "Status"
                | "DateApproved"
                | "DateDeclined"
                | "DateCanceled"
                | "DateCompleted"
                | "LastUpdated"
                | "Subtotal"
                | "ShippingCost"
                | "TaxCost"
                | "Gratuity"
                | "Fees"
                | "BaseDiscount"
                | "PromotionDiscount"
                | "Total"
                | "IsSubmitted"
                | "!DateSubmitted"
                | "!FromCompanyID"
                | "!ToCompanyID"
                | "!FromUserID"
                | "!Status"
                | "!DateApproved"
                | "!DateDeclined"
                | "!DateCanceled"
                | "!DateCompleted"
                | "!LastUpdated"
                | "!Subtotal"
                | "!ShippingCost"
                | "!TaxCost"
                | "!Gratuity"
                | "!Fees"
                | "!BaseDiscount"
                | "!PromotionDiscount"
                | "!Total"
                | "!IsSubmitted"
            )[];
            to?: string;
        } = {}
        • Optionalfilters?: 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.???'

        • Optionalfrom?: string

          Lower bound of date range that the order was created (if outgoing) or submitted (if incoming).

        • Optionalpage?: number

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

        • OptionalpageSize?: number

          Number of results to return per page.

        • Optionalsearch?: string

          Word or phrase to search for.

        • OptionalsearchOn?: ("ID" | "FromCompanyID" | "ToCompanyID" | "Comments")[]

          Comma-delimited list of fields to search on.

        • OptionalsortBy?: (
              | "ID"
              | "FromCompanyID"
              | "ToCompanyID"
              | "DateCreated"
              | "!ID"
              | "!DateCreated"
              | "DateSubmitted"
              | "FromUserID"
              | "Status"
              | "DateApproved"
              | "DateDeclined"
              | "DateCanceled"
              | "DateCompleted"
              | "LastUpdated"
              | "Subtotal"
              | "ShippingCost"
              | "TaxCost"
              | "Gratuity"
              | "Fees"
              | "BaseDiscount"
              | "PromotionDiscount"
              | "Total"
              | "IsSubmitted"
              | "!DateSubmitted"
              | "!FromCompanyID"
              | "!ToCompanyID"
              | "!FromUserID"
              | "!Status"
              | "!DateApproved"
              | "!DateDeclined"
              | "!DateCanceled"
              | "!DateCompleted"
              | "!LastUpdated"
              | "!Subtotal"
              | "!ShippingCost"
              | "!TaxCost"
              | "!Gratuity"
              | "!Fees"
              | "!BaseDiscount"
              | "!PromotionDiscount"
              | "!Total"
              | "!IsSubmitted"
          )[]

          Comma-delimited list of fields to sort by.

        • Optionalto?: string

          Upper bound of date range that the order was created (if outgoing) or submitted (if incoming).

      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<RequiredObjectDeep<ListPage<TOrder>>>

    • Get a list of sellers this user can purchase from Organizations you can place orders directly to. Check out the docs for more info

      Type Parameters

      Parameters

      • listOptions: {
            filters?: Filters;
            page?: number;
            pageSize?: number;
            search?: string;
            searchOn?: ("ID" | "Name")[];
            sortBy?: ("ID" | "Name" | "!ID" | "!Name")[];
        } = {}
        • Optionalfilters?: 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.???'

        • Optionalpage?: number

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

        • OptionalpageSize?: number

          Number of results to return per page.

        • Optionalsearch?: string

          Word or phrase to search for.

        • OptionalsearchOn?: ("ID" | "Name")[]

          Comma-delimited list of fields to search on.

        • OptionalsortBy?: ("ID" | "Name" | "!ID" | "!Name")[]

          Comma-delimited list of fields to sort by.

      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<RequiredObjectDeep<ListPage<TBuyerSupplier>>>

    • List catalogs visible to this user Only available to Buyer Users. Check out the docs for more info

      Type Parameters

      Parameters

      • listOptions: {
            filters?: Filters;
            page?: number;
            pageSize?: number;
            search?: string;
            searchOn?: ("ID" | "Name" | "Description")[];
            sellerID?: string;
            sortBy?: ("ID" | "Name" | "!ID" | "!Name" | "OwnerID" | "!OwnerID")[];
        } = {}
        • Optionalfilters?: 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.???'

        • Optionalpage?: number

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

        • OptionalpageSize?: number

          Number of results to return per page.

        • Optionalsearch?: string

          Word or phrase to search for.

        • OptionalsearchOn?: ("ID" | "Name" | "Description")[]

          Comma-delimited list of fields to search on.

        • OptionalsellerID?: string

          ID of the seller.

        • OptionalsortBy?: ("ID" | "Name" | "!ID" | "!Name" | "OwnerID" | "!OwnerID")[]

          Comma-delimited list of fields to sort by.

      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<RequiredObjectDeep<ListPage<TCatalog>>>

    • List categories visible to this user Only available to Buyer Users. Check out the docs for more info

      Type Parameters

      Parameters

      • listOptions: {
            catalogID?: string;
            depth?: string;
            filters?: Filters;
            page?: number;
            pageSize?: number;
            productID?: string;
            search?: string;
            searchOn?: ("ID" | "Name" | "Description")[];
            sortBy?: ("ID" | "Name" | "!ID" | "!Name")[];
        } = {}
        • OptionalcatalogID?: string

          The user’s default CatalogID will be used to return categories if you do not pass another CatalogID explicitly. Listing categories across multiple catalogs is not supported.

        • Optionaldepth?: string

          Indicates how deep down the hierarchy to return results. Valid values are a number of 1 or greater, or 'all'. Relative to ParentID if specified. Default is 1.

        • Optionalfilters?: 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.???'

        • Optionalpage?: number

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

        • OptionalpageSize?: number

          Number of results to return per page.

        • OptionalproductID?: string

          ID of the product.

        • Optionalsearch?: string

          Word or phrase to search for.

        • OptionalsearchOn?: ("ID" | "Name" | "Description")[]

          Comma-delimited list of fields to search on.

        • OptionalsortBy?: ("ID" | "Name" | "!ID" | "!Name")[]

          Comma-delimited list of fields to sort by.

      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<RequiredObjectDeep<ListPage<TCategory>>>

    • List cost centers visible to this user Only available to Buyer Users. Check out the docs for more info

      Type Parameters

      Parameters

      • listOptions: {
            filters?: Filters;
            page?: number;
            pageSize?: number;
            search?: string;
            searchOn?: ("ID" | "Name" | "Description")[];
            sortBy?: ("ID" | "Name" | "!ID" | "!Name")[];
        } = {}
        • Optionalfilters?: 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.???'

        • Optionalpage?: number

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

        • OptionalpageSize?: number

          Number of results to return per page.

        • Optionalsearch?: string

          Word or phrase to search for.

        • OptionalsearchOn?: ("ID" | "Name" | "Description")[]

          Comma-delimited list of fields to search on.

        • OptionalsortBy?: ("ID" | "Name" | "!ID" | "!Name")[]

          Comma-delimited list of fields to sort by.

      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<RequiredObjectDeep<ListPage<TCostCenter>>>

    • List credit cards visible to this user Only available to Buyer Users. Check out the docs for more info

      Type Parameters

      Parameters

      • listOptions: {
            filters?: Filters;
            page?: number;
            pageSize?: number;
            search?: string;
            searchOn?: (
                "ID"
                | "CardholderName"
                | "CardType"
                | "ExpirationDate"
                | "Editable"
            )[];
            sortBy?: (
                | "ID"
                | "CardholderName"
                | "CardType"
                | "ExpirationDate"
                | "DateCreated"
                | "!ID"
                | "!DateCreated"
                | "!CardholderName"
                | "!CardType"
                | "!ExpirationDate"
            )[];
        } = {}
        • Optionalfilters?: 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.???'

        • Optionalpage?: number

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

        • OptionalpageSize?: number

          Number of results to return per page.

        • Optionalsearch?: string

          Word or phrase to search for.

        • OptionalsearchOn?: ("ID" | "CardholderName" | "CardType" | "ExpirationDate" | "Editable")[]

          Comma-delimited list of fields to search on.

        • OptionalsortBy?: (
              | "ID"
              | "CardholderName"
              | "CardType"
              | "ExpirationDate"
              | "DateCreated"
              | "!ID"
              | "!DateCreated"
              | "!CardholderName"
              | "!CardType"
              | "!ExpirationDate"
          )[]

          Comma-delimited list of fields to sort by.

      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<RequiredObjectDeep<ListPage<TBuyerCreditCard>>>

    • List group order invitations visible to this user Check out the docs for more info

      Type Parameters

      Parameters

      • listOptions: {
            filters?: Filters;
            page?: number;
            pageSize?: number;
            search?: string;
            searchOn?: ("ID" | "Name" | "OrderID" | "OrderStatus")[];
            sortBy?: (
                | "ID"
                | "Name"
                | "OrderID"
                | "OrderStatus"
                | "!ID"
                | "!Name"
                | "!OrderID"
                | "!OrderStatus"
            )[];
        } = {}
        • Optionalfilters?: 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.???'

        • Optionalpage?: number

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

        • OptionalpageSize?: number

          Number of results to return per page.

        • Optionalsearch?: string

          Word or phrase to search for.

        • OptionalsearchOn?: ("ID" | "Name" | "OrderID" | "OrderStatus")[]

          Comma-delimited list of fields to search on.

        • OptionalsortBy?: (
              | "ID"
              | "Name"
              | "OrderID"
              | "OrderStatus"
              | "!ID"
              | "!Name"
              | "!OrderID"
              | "!OrderStatus"
          )[]

          Comma-delimited list of fields to sort by.

      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<RequiredObjectDeep<ListPage<TGroupOrderInvitation>>>

    • List orders visible to this user List orders created by this user. Check out the docs for more info

      Type Parameters

      • TOrder extends Order<any, any, any>

      Parameters

      • listOptions: {
            filters?: Filters;
            from?: string;
            page?: number;
            pageSize?: number;
            search?: string;
            searchOn?: ("ID" | "FromCompanyID" | "ToCompanyID" | "Comments")[];
            searchType?: SearchType;
            sortBy?: (
                | "ID"
                | "FromCompanyID"
                | "ToCompanyID"
                | "DateCreated"
                | "!ID"
                | "!DateCreated"
                | "DateSubmitted"
                | "FromUserID"
                | "Status"
                | "DateApproved"
                | "DateDeclined"
                | "DateCanceled"
                | "DateCompleted"
                | "LastUpdated"
                | "Subtotal"
                | "ShippingCost"
                | "TaxCost"
                | "Gratuity"
                | "Fees"
                | "BaseDiscount"
                | "PromotionDiscount"
                | "Total"
                | "IsSubmitted"
                | "!DateSubmitted"
                | "!FromCompanyID"
                | "!ToCompanyID"
                | "!FromUserID"
                | "!Status"
                | "!DateApproved"
                | "!DateDeclined"
                | "!DateCanceled"
                | "!DateCompleted"
                | "!LastUpdated"
                | "!Subtotal"
                | "!ShippingCost"
                | "!TaxCost"
                | "!Gratuity"
                | "!Fees"
                | "!BaseDiscount"
                | "!PromotionDiscount"
                | "!Total"
                | "!IsSubmitted"
            )[];
            to?: string;
        } = {}
        • Optionalfilters?: 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.???'

        • Optionalfrom?: string

          Lower bound of date range that the order was created (if outgoing) or submitted (if incoming).

        • Optionalpage?: number

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

        • OptionalpageSize?: number

          Number of results to return per page.

        • Optionalsearch?: string

          Word or phrase to search for.

        • OptionalsearchOn?: ("ID" | "FromCompanyID" | "ToCompanyID" | "Comments")[]

          Comma-delimited list of fields to search on.

        • OptionalsearchType?: SearchType

          Type of search to perform.

        • OptionalsortBy?: (
              | "ID"
              | "FromCompanyID"
              | "ToCompanyID"
              | "DateCreated"
              | "!ID"
              | "!DateCreated"
              | "DateSubmitted"
              | "FromUserID"
              | "Status"
              | "DateApproved"
              | "DateDeclined"
              | "DateCanceled"
              | "DateCompleted"
              | "LastUpdated"
              | "Subtotal"
              | "ShippingCost"
              | "TaxCost"
              | "Gratuity"
              | "Fees"
              | "BaseDiscount"
              | "PromotionDiscount"
              | "Total"
              | "IsSubmitted"
              | "!DateSubmitted"
              | "!FromCompanyID"
              | "!ToCompanyID"
              | "!FromUserID"
              | "!Status"
              | "!DateApproved"
              | "!DateDeclined"
              | "!DateCanceled"
              | "!DateCompleted"
              | "!LastUpdated"
              | "!Subtotal"
              | "!ShippingCost"
              | "!TaxCost"
              | "!Gratuity"
              | "!Fees"
              | "!BaseDiscount"
              | "!PromotionDiscount"
              | "!Total"
              | "!IsSubmitted"
          )[]

          Comma-delimited list of fields to sort by.

        • Optionalto?: string

          Upper bound of date range that the order was created (if outgoing) or submitted (if incoming).

      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<RequiredObjectDeep<ListPage<TOrder>>>

    • List product collection entries visible to this user Only available to Buyer Users. Check out the docs for more info

      Type Parameters

      Parameters

      • productCollectionID: string

        ID of the product collection.

      • listOptions: {
            filters?: Filters;
            page?: number;
            pageSize?: number;
            search?: string;
            searchOn?: string[];
            searchType?: SearchType;
            sortBy?: string[];
        } = {}
        • Optionalfilters?: 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.???'

        • Optionalpage?: number

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

        • OptionalpageSize?: number

          Number of results to return per page.

        • Optionalsearch?: string

          Word or phrase to search for.

        • OptionalsearchOn?: string[]

          Comma-delimited list of fields to search on.

        • OptionalsearchType?: SearchType

          Type of search to perform.

        • OptionalsortBy?: string[]

          Comma-delimited list of fields to sort by.

      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<
          RequiredObjectDeep<
              ListPageWithFacets<TProductCollectionBuyerProduct, any>,
          >,
      >

    • List product collection invitations visible to this user Only available to Buyer Users. Check out the docs for more info

      Type Parameters

      Parameters

      • productCollectionID: string

        ID of the product collection.

      • listOptions: {
            filters?: Filters;
            page?: number;
            pageSize?: number;
            search?: string;
            searchOn?: ("ID" | "Name")[];
            searchType?: SearchType;
            sortBy?: ("ID" | "Name" | "!ID" | "!Name")[];
        } = {}
        • Optionalfilters?: 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.???'

        • Optionalpage?: number

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

        • OptionalpageSize?: number

          Number of results to return per page.

        • Optionalsearch?: string

          Word or phrase to search for.

        • OptionalsearchOn?: ("ID" | "Name")[]

          Comma-delimited list of fields to search on.

        • OptionalsearchType?: SearchType

          Type of search to perform.

        • OptionalsortBy?: ("ID" | "Name" | "!ID" | "!Name")[]

          Comma-delimited list of fields to sort by.

      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<RequiredObjectDeep<ListPage<TProductCollectionInvitation>>>

    • List product collections visible to this user Only available to Buyer Users. Check out the docs for more info

      Type Parameters

      Parameters

      • listOptions: {
            filters?: Filters;
            page?: number;
            pageSize?: number;
            search?: string;
            searchOn?: ("ID" | "Name")[];
            sortBy?: ("ID" | "Name" | "!ID" | "!Name")[];
        } = {}
        • Optionalfilters?: 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.???'

        • Optionalpage?: number

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

        • OptionalpageSize?: number

          Number of results to return per page.

        • Optionalsearch?: string

          Word or phrase to search for.

        • OptionalsearchOn?: ("ID" | "Name")[]

          Comma-delimited list of fields to search on.

        • OptionalsortBy?: ("ID" | "Name" | "!ID" | "!Name")[]

          Comma-delimited list of fields to sort by.

      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<RequiredObjectDeep<ListPage<TProductCollection>>>

    • List product inventory records visible to this user Only available to Buyer Users. Check out the docs for more info

      Type Parameters

      Parameters

      • productID: string

        ID of the product.

      • listOptions: {
            filters?: Filters;
            includeAddress?: boolean;
            page?: number;
            pageSize?: number;
            search?: string;
            searchOn?: ("ID" | "AddressID")[];
            sortBy?: ("ID" | "AddressID" | "!ID" | "!AddressID")[];
        } = {}
        • Optionalfilters?: 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.???'

        • OptionalincludeAddress?: boolean

          Include address of the inventory record.

        • Optionalpage?: number

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

        • OptionalpageSize?: number

          Number of results to return per page.

        • Optionalsearch?: string

          Word or phrase to search for.

        • OptionalsearchOn?: ("ID" | "AddressID")[]

          Comma-delimited list of fields to search on.

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

          Comma-delimited list of fields to sort by.

      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<RequiredObjectDeep<ListPage<TInventoryRecord>>>

    • List products visible to this user Only available to Buyer Users. Check out the docs for more info

      Type Parameters

      Parameters

      • listOptions: {
            catalogID?: string;
            categoryID?: string;
            depth?: string;
            filters?: Filters;
            page?: number;
            pageSize?: number;
            search?: string;
            searchOn?: string[];
            searchType?: SearchType;
            sellerID?: string;
            sortBy?: string[];
        } = {}
        • OptionalcatalogID?: string

          ID of the catalog.

        • OptionalcategoryID?: string

          ID of the category.

        • Optionaldepth?: string

          Indicates how deep down the category hierarchy to return results. Valid values are a number of 1 or greater, or 'all'. Relative to CategoryID if specified, otherwise top level of the Catalog. Default is 'all'.

        • Optionalfilters?: 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.???'

        • Optionalpage?: number

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

        • OptionalpageSize?: number

          Number of results to return per page.

        • Optionalsearch?: string

          Word or phrase to search for.

        • OptionalsearchOn?: string[]

          Comma-delimited list of fields to search on.

        • OptionalsearchType?: SearchType

          Type of search to perform.

        • OptionalsellerID?: string

          ID of the seller.

        • OptionalsortBy?: string[]

          Comma-delimited list of fields to sort by.

      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<RequiredObjectDeep<ListPageWithFacets<TBuyerProduct, any>>>

    • List product sellers visible to this user Only available to Buyer Users. 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" | "Name")[];
            sortBy?: ("ID" | "Name" | "!ID" | "!Name")[];
        } = {}
        • Optionalfilters?: 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.???'

        • Optionalpage?: number

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

        • OptionalpageSize?: number

          Number of results to return per page.

        • Optionalsearch?: string

          Word or phrase to search for.

        • OptionalsearchOn?: ("ID" | "Name")[]

          Comma-delimited list of fields to search on.

        • OptionalsortBy?: ("ID" | "Name" | "!ID" | "!Name")[]

          Comma-delimited list of fields to sort by.

      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<RequiredObjectDeep<ListPage<TProductSeller>>>

    • List promotions visible to this user Only available to Buyer Users. Check out the docs for more info

      Type Parameters

      Parameters

      • listOptions: {
            filters?: Filters;
            page?: number;
            pageSize?: number;
            search?: string;
            searchOn?: (
                | "ID"
                | "Name"
                | "Description"
                | "Code"
                | "FinePrint"
                | "EligibleExpression"
                | "ValueExpression"
            )[];
            sortBy?: (
                | "ID"
                | "Name"
                | "ExpirationDate"
                | "Code"
                | "EligibleExpression"
                | "ValueExpression"
                | "!ID"
                | "!Name"
                | "!ExpirationDate"
                | "StartDate"
                | "CanCombine"
                | "AutoApply"
                | "Active"
                | "Priority"
                | "!Code"
                | "!StartDate"
                | "!EligibleExpression"
                | "!ValueExpression"
                | "!CanCombine"
                | "!AutoApply"
                | "!Active"
                | "!Priority"
            )[];
        } = {}
        • Optionalfilters?: 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.???'

        • Optionalpage?: number

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

        • OptionalpageSize?: number

          Number of results to return per page.

        • Optionalsearch?: string

          Word or phrase to search for.

        • OptionalsearchOn?: (
              | "ID"
              | "Name"
              | "Description"
              | "Code"
              | "FinePrint"
              | "EligibleExpression"
              | "ValueExpression"
          )[]

          Comma-delimited list of fields to search on.

        • OptionalsortBy?: (
              | "ID"
              | "Name"
              | "ExpirationDate"
              | "Code"
              | "EligibleExpression"
              | "ValueExpression"
              | "!ID"
              | "!Name"
              | "!ExpirationDate"
              | "StartDate"
              | "CanCombine"
              | "AutoApply"
              | "Active"
              | "Priority"
              | "!Code"
              | "!StartDate"
              | "!EligibleExpression"
              | "!ValueExpression"
              | "!CanCombine"
              | "!AutoApply"
              | "!Active"
              | "!Priority"
          )[]

          Comma-delimited list of fields to sort by.

      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<RequiredObjectDeep<ListPage<TPromotion>>>

    • List shipment items visible to this user Only available to Buyer Users. Check out the docs for more info

      Type Parameters

      Parameters

      • shipmentID: string

        ID of the shipment.

      • listOptions: {
            filters?: Filters;
            orderID?: string;
            page?: number;
            pageSize?: number;
            sortBy?: ("OrderID" | "!OrderID" | "LineItemID" | "!LineItemID")[];
        } = {}
        • Optionalfilters?: 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.???'

        • OptionalorderID?: string

          ID of the order.

        • Optionalpage?: number

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

        • OptionalpageSize?: number

          Number of results to return per page.

        • OptionalsortBy?: ("OrderID" | "!OrderID" | "LineItemID" | "!LineItemID")[]

          Comma-delimited list of fields to sort by.

      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<RequiredObjectDeep<ListPage<TShipmentItem>>>

    • List shipments visible to this user Only available to Buyer Users. Check out the docs for more info

      Type Parameters

      • TShipment extends Shipment<any, any, any>

      Parameters

      • listOptions: {
            filters?: Filters;
            orderID?: string;
            page?: number;
            pageSize?: number;
            search?: string;
            searchOn?: (
                | "ID"
                | "BuyerID"
                | "Shipper"
                | "DateShipped"
                | "DateDelivered"
                | "TrackingNumber"
            )[];
            sortBy?: (
                | "ID"
                | "BuyerID"
                | "Shipper"
                | "DateShipped"
                | "DateDelivered"
                | "!ID"
                | "OwnerID"
                | "!OwnerID"
                | "!BuyerID"
                | "Cost"
                | "!DateShipped"
                | "!Shipper"
                | "!DateDelivered"
                | "!Cost"
            )[];
        } = {}
        • Optionalfilters?: 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.???'

        • OptionalorderID?: string

          ID of the order.

        • Optionalpage?: number

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

        • OptionalpageSize?: number

          Number of results to return per page.

        • Optionalsearch?: string

          Word or phrase to search for.

        • OptionalsearchOn?: (
              | "ID"
              | "BuyerID"
              | "Shipper"
              | "DateShipped"
              | "DateDelivered"
              | "TrackingNumber"
          )[]

          Comma-delimited list of fields to search on.

        • OptionalsortBy?: (
              | "ID"
              | "BuyerID"
              | "Shipper"
              | "DateShipped"
              | "DateDelivered"
              | "!ID"
              | "OwnerID"
              | "!OwnerID"
              | "!BuyerID"
              | "Cost"
              | "!DateShipped"
              | "!Shipper"
              | "!DateDelivered"
              | "!Cost"
          )[]

          Comma-delimited list of fields to sort by.

      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<RequiredObjectDeep<ListPage<TShipment>>>

    • List specs visible to this user Only available to Buyer Users. Check out the docs for more info

      Type Parameters

      • TSpec extends Spec<any, any>

      Parameters

      • productID: string

        ID of the product.

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

          ID of the catalog.

        • Optionalfilters?: 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.???'

        • Optionalpage?: number

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

        • OptionalpageSize?: number

          Number of results to return per page.

        • Optionalsearch?: string

          Word or phrase to search for.

        • OptionalsearchOn?: ("ID" | "Name")[]

          Comma-delimited list of fields to search on.

        • OptionalsortBy?: ("ID" | "Name" | "!ID" | "!Name" | "ListOrder" | "!ListOrder")[]

          Comma-delimited list of fields to sort by.

      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<RequiredObjectDeep<ListPage<TSpec>>>

    • List spending accounts visible to this user Only available to Buyer Users. Check out the docs for more info

      Type Parameters

      Parameters

      • listOptions: {
            filters?: Filters;
            page?: number;
            pageSize?: number;
            search?: string;
            searchOn?: ("ID" | "Name")[];
            sortBy?: ("ID" | "Name" | "!ID" | "!Name")[];
        } = {}
        • Optionalfilters?: 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.???'

        • Optionalpage?: number

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

        • OptionalpageSize?: number

          Number of results to return per page.

        • Optionalsearch?: string

          Word or phrase to search for.

        • OptionalsearchOn?: ("ID" | "Name")[]

          Comma-delimited list of fields to search on.

        • OptionalsortBy?: ("ID" | "Name" | "!ID" | "!Name")[]

          Comma-delimited list of fields to sort by.

      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<RequiredObjectDeep<ListPage<TSpendingAccount>>>

    • List subscription items visible to this user Check out the docs for more info

      Type Parameters

      • TLineItem extends LineItem<any, any, any, any, any>

      Parameters

      • subscriptionID: string

        ID of the subscription.

      • listOptions: {
            filters?: Filters;
            page?: number;
            pageSize?: number;
            search?: string;
            searchOn?: ("ID" | "ProductID")[];
            sortBy?: (
                "ID"
                | "ProductID"
                | "!ID"
                | "DateAdded"
                | "!DateAdded"
                | "!ProductID"
            )[];
        } = {}
        • Optionalfilters?: 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.???'

        • Optionalpage?: number

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

        • OptionalpageSize?: number

          Number of results to return per page.

        • Optionalsearch?: string

          Word or phrase to search for.

        • OptionalsearchOn?: ("ID" | "ProductID")[]

          Comma-delimited list of fields to search on.

        • OptionalsortBy?: ("ID" | "ProductID" | "!ID" | "DateAdded" | "!DateAdded" | "!ProductID")[]

          Comma-delimited list of fields to sort by.

      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<RequiredObjectDeep<ListPage<TLineItem>>>

    • List subscriptions visible to this user Check out the docs for more info

      Type Parameters

      Parameters

      • listOptions: {
            filters?: Filters;
            page?: number;
            pageSize?: number;
            search?: string;
            searchOn?: ("ID" | "FromCompanyID" | "ToCompanyID" | "Interval")[];
            sortBy?: (
                | "ID"
                | "FromCompanyID"
                | "ToCompanyID"
                | "Interval"
                | "DateCreated"
                | "!ID"
                | "!DateCreated"
                | "FromUserID"
                | "!FromCompanyID"
                | "!ToCompanyID"
                | "!FromUserID"
                | "NextOrderDate"
                | "LastOrderDate"
                | "EndDate"
                | "!Interval"
                | "!NextOrderDate"
                | "!LastOrderDate"
                | "!EndDate"
            )[];
        } = {}
        • Optionalfilters?: 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.???'

        • Optionalpage?: number

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

        • OptionalpageSize?: number

          Number of results to return per page.

        • Optionalsearch?: string

          Word or phrase to search for.

        • OptionalsearchOn?: ("ID" | "FromCompanyID" | "ToCompanyID" | "Interval")[]

          Comma-delimited list of fields to search on.

        • OptionalsortBy?: (
              | "ID"
              | "FromCompanyID"
              | "ToCompanyID"
              | "Interval"
              | "DateCreated"
              | "!ID"
              | "!DateCreated"
              | "FromUserID"
              | "!FromCompanyID"
              | "!ToCompanyID"
              | "!FromUserID"
              | "NextOrderDate"
              | "LastOrderDate"
              | "EndDate"
              | "!Interval"
              | "!NextOrderDate"
              | "!LastOrderDate"
              | "!EndDate"
          )[]

          Comma-delimited list of fields to sort by.

      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<RequiredObjectDeep<ListPage<TSubscription>>>

    • List user groups visible to this user Only available to Buyer Users. Check out the docs for more info

      Type Parameters

      Parameters

      • listOptions: {
            filters?: Filters;
            page?: number;
            pageSize?: number;
            search?: string;
            searchOn?: ("ID" | "Name" | "Description")[];
            sortBy?: ("ID" | "Name" | "!ID" | "!Name")[];
        } = {}
        • Optionalfilters?: 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.???'

        • Optionalpage?: number

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

        • OptionalpageSize?: number

          Number of results to return per page.

        • Optionalsearch?: string

          Word or phrase to search for.

        • OptionalsearchOn?: ("ID" | "Name" | "Description")[]

          Comma-delimited list of fields to search on.

        • OptionalsortBy?: ("ID" | "Name" | "!ID" | "!Name")[]

          Comma-delimited list of fields to sort by.

      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<RequiredObjectDeep<ListPage<TUserGroup>>>

    • List variant inventory records visible to this user Only available to Buyer Users. 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;
            includeAddress?: boolean;
            page?: number;
            pageSize?: number;
            search?: string;
            searchOn?: ("ID" | "AddressID")[];
            sortBy?: ("ID" | "AddressID" | "!ID" | "!AddressID")[];
        } = {}
        • Optionalfilters?: 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.???'

        • OptionalincludeAddress?: boolean

          Include address of the inventory record.

        • Optionalpage?: number

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

        • OptionalpageSize?: number

          Number of results to return per page.

        • Optionalsearch?: string

          Word or phrase to search for.

        • OptionalsearchOn?: ("ID" | "AddressID")[]

          Comma-delimited list of fields to search on.

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

          Comma-delimited list of fields to sort by.

      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<RequiredObjectDeep<ListPage<TInventoryRecord>>>

    • List variants visible to this user Only available to Buyer Users. 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" | "Name" | "Description")[];
            sortBy?: ("ID" | "Name" | "!ID" | "!Name")[];
        } = {}
        • Optionalfilters?: 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.???'

        • Optionalpage?: number

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

        • OptionalpageSize?: number

          Number of results to return per page.

        • Optionalsearch?: string

          Word or phrase to search for.

        • OptionalsearchOn?: ("ID" | "Name" | "Description")[]

          Comma-delimited list of fields to search on.

        • OptionalsortBy?: ("ID" | "Name" | "!ID" | "!Name")[]

          Comma-delimited list of fields to sort by.

      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<RequiredObjectDeep<ListPage<TVariant>>>

    • Partially update an address Only available to Buyer Users. Check out the docs for more info

      Parameters

      • addressID: string

        ID of the address.

      • buyerAddress: PartialDeep<BuyerAddress>
      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<void>

    • Partially update a credit card Only available to Buyer Users. Check out the docs for more info

      Parameters

      • creditcardID: string

        ID of the creditcard.

      • buyerCreditCard: PartialDeep<BuyerCreditCard>
      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<void>

    • Partially update a subscription item Check out the docs for more info

      Type Parameters

      • TLineItem extends LineItem<any, any, any, any, any>

      Parameters

      • subscriptionID: string

        ID of the subscription.

      • subscriptionItemID: string

        ID of the subscription item.

      • lineItem: PartialDeep<LineItem>
      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<RequiredDeep<TLineItem>>

    • Reset a password by token Check out the docs for more info

      Parameters

      • tokenPasswordReset: TokenPasswordReset

        Required fields: NewPassword

      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<void>

    • Revoke tokens Revokes all tokens previously issued to the current user and forces them to reauthenticate. Check out the docs for more info

      Parameters

      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<void>

    • Update the currently authenticated user If an object with the same ID already exists, it will be overwritten. Check out the docs for more info

      Type Parameters

      Parameters

      • meUser: MeUser

        Required fields: Username, FirstName, LastName, Email, Active

      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<RequiredDeep<TMeUser>>

    • Create or update a product collection entry Only available to Buyer Users. Check out the docs for more info

      Parameters

      • productCollectionID: string

        ID of the product collection.

      • productCollectionEntry: ProductCollectionEntry

        Required fields: ProductID

      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<void>

    • Create or update a subscription item Check out the docs for more info

      Type Parameters

      • TLineItem extends LineItem<any, any, any, any, any>

      Parameters

      • subscriptionID: string

        ID of the subscription.

      • subscriptionItemID: string

        ID of the subscription item.

      • lineItem: LineItem

        Required fields: ProductID

      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<RequiredDeep<TLineItem>>

    • Transfer an anon user order If a user begins an order as the anonymous shopper and later logs in, use this endpoint to transfer that order to them. Check out the docs for more info

      Parameters

      • listOptions: { anonUserToken?: string } = {}
        • OptionalanonUserToken?: string

          Anon user token of the me.

      • requestOptions: RequestOptions = {}
        • OptionalaccessToken?: string

          Alternative token to the one stored in the sdk instance (useful for impersonation).

        • OptionalcancelToken?: CancelToken

          Axios cancelToken that can be used to cancel the request.

        • OptionalrequestType?: string

          Identify the type of request. Useful for error logs.

      Returns Promise<void>