cancel
Showing results for 
Search instead for 
Did you mean: 

Best practice to create loyalty / customer users via API in FP12 / FP13

former_member616895
Participant
489

Hi all,

what is the best way currently to create loyalty / customer users in the CCOM via API?

In the past they could be created using the endpoint api/internal/users, but I think that one was deprecated. In the swagger documentation there are endpoints for serverusers, businesspartners and loyaltyrecords, but they don't seem correct.

I could of course use the ui endpoints of /api/ui/loyalty/loyaltyuser-management/users, but that is probably not the intended way.

Thanks

Kai

View Entire Topic
gunther_sandtner2
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello k.schittko,

Currently, there is no official Swagger API. There is a hidden API though which can be used to create basic customer users:


POST http://[servername]:[port]/ccos/api/users/register

JSON Payload:

{    
    "firstName": "test1234",
    "lastName": "test1234",
    "email": "test1234@sap.com",
    "secret": "Admin123!?!",
    "secretConfirm": "Admin123!?!",
    "agreementUuids": []
 }

Other fields have to be maintained in the CCO manager UI.

We do not recommend to use the API /api/ui/loyalty/loyaltyuser-management/users because it might be changed without further notice (it is an internal API).

Kind regards,

Gunther

arunparthan
Explorer
0 Kudos
How about for PL19