Create ITShop request via script (business role for employee)

Hello,

We are onboarding a number of services in our company. Each service has provided us with a list of business roles and employee membership of these business roles.

I already have the scripting to provision business roles in the IT Shop. What I still need is to create a script to create the IT Shop requests programmatically (script or REST API), actually simulate the request process via the web portal.

The IT Shop request are autoapproved.

I am not sure if I can just create an new entry in the table PersonWantOrg,or that I need to create first a ShoppingCartOrder with one or more ShoppingCartItems and then create a new entry in the table PersonWantOrg with a reference to the ShoppingCartOrder.

I cannot find information in the documentation how to do that. Does anyone know how to do this via script?

Thank you in advance.

Kind regards,

Mrs. Wilke Jansoone