cancel
Showing results for 
Search instead for 
Did you mean: 

REST API customer creation: adding and managing a new parameter

REST API customer creation: adding and managing a new parameter

Hi everyone,

 

I have a "design" problem and I would like to know your feedback about it.

 

The problem:

 

I need to extend the REST API to create a user:

POST /rest/V1/customers

adding an optional parameter.

When the parameter is passed, I need to add some logic to fill an auxiliary table.

 

I would like to avoid the <preference> approach because this seems an extension that should be possible to make with plugins..or at least I hope so.

 

Any hints please?

 

Thanks,

  Lorenzo

1 REPLY

Re: REST API customer creation: adding and managing a new parameter

Solved with plugins and extension attributes.

If you're facing the same problem, module-newsletter is your friend.