Class ByProjectKeyInStoreKeyByStoreKeyMeSignupPostString

All Implemented Interfaces:
ErrorableTrait<ByProjectKeyInStoreKeyByStoreKeyMeSignupPostString>, ClientRequestCommand<CustomerSignInResult>, CreateHttpRequestCommand, HttpRequestCommand<CustomerSignInResult>, RequestCommand<CustomerSignInResult>

If used with an optional access token for an anonymous session, all Orders and Carts that belong to the anonymousId are assigned to the newly created Customer.

If omitted in the request body, the Customer stores field is set to the Store specified in the path parameter.

A Cart returned in the CustomerSignInResult has any invalid Line Items removed and is updated with the latest prices, taxes, and discounts. During these updates, the following errors can be returned: MatchingPriceNotFound and MissingTaxRateForCountry.

Creating a Customer produces the CustomerCreated Message.



   CompletableFuture<ApiHttpResponse<com.commercetools.api.models.customer.CustomerSignInResult>> result = apiRoot
            .withProjectKey("{projectKey}")
            .inStoreKeyWithStoreKeyValue("{storeKey}")
            .me()
            .signup()
            .post("")
            .execute()