Typescript SDK Type Docs
    Preparing search index...

    Class ByProjectKeyInStoreKeyByStoreKeyShippingMethodsMatchingCartRequestBuilder

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    args: {
        baseUri?: string;
        executeRequest: executeRequest;
        pathArgs: { projectKey: string; storeKey: string };
    }

    Methods

    • Retrieves the active ShippingMethods that can ship to the shipping address of the provided Cart in a Store.

      Each ShippingMethod contains exactly one ShippingRate with the flag `isMatching` set to `true`. This ShippingRate is used when the ShippingMethod is [added to the Cart](ctp:api:type:CartSetShippingMethodAction).
      
      If a matching ShippingMethod has `isDefault` set to `true`, it is returned as the first item in the array.
      

      Parameters

      • methodArgs: {
            headers?: { [key: string]: string | string[] };
            queryArgs: {
                cartId: string;
                expand?: string | string[];
                [key: string]: QueryParam;
            };
        }

      Returns ApiRequest<ShippingMethodPagedQueryResponse>