Class ByProjectKeyInBusinessUnitKeyByBusinessUnitKeyMeCustomersPost

java.lang.Object
io.vrap.rmf.base.client.ApiMethod<T,TResult>
io.vrap.rmf.base.client.BodyApiMethod<ByProjectKeyInBusinessUnitKeyByBusinessUnitKeyMeCustomersPost,CustomerSignInResult,MyBusinessUnitAssociateDraft>
com.commercetools.api.client.ByProjectKeyInBusinessUnitKeyByBusinessUnitKeyMeCustomersPost
All Implemented Interfaces:
io.vrap.rmf.base.client.ClientRequestCommand<CustomerSignInResult>, io.vrap.rmf.base.client.RequestCommand<CustomerSignInResult>

The My Business Unit endpoint does not support assigning existing Customers to a Business Unit. Associates with the UpdateAssociates Permission can use this endpoint to create a new Customer and associate it with the Business Unit. If the required Permission is missing, an AssociateMissingPermission error is returned. The new Associate is created with an empty set of roles.



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