Class ByProjectKeyCustomersPostString

java.lang.Object
io.vrap.rmf.base.client.ApiMethod<T,TResult>
io.vrap.rmf.base.client.BodyApiMethod<T,TResult,String>
io.vrap.rmf.base.client.StringBodyApiMethod<ByProjectKeyCustomersPostString,CustomerSignInResult>
com.commercetools.api.client.ByProjectKeyCustomersPostString
All Implemented Interfaces:
Deprecatable201Trait<ByProjectKeyCustomersPostString>, ErrorableTrait<ByProjectKeyCustomersPostString>, ExpandableTrait<ByProjectKeyCustomersPostString>, io.vrap.rmf.base.client.ClientRequestCommand<CustomerSignInResult>, io.vrap.rmf.base.client.RequestCommand<CustomerSignInResult>

If the anonymousCart field is set on the CustomerDraft, then the newly created Customer will be assigned to that Cart. Similarly, if the anonymousId field is set, the Customer will be set on all Carts, Orders, ShoppingLists and Payments with the same anonymousId. Creating a Customer produces the CustomerCreated Message.



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