We have a webshop that has different pricing for certain customers (certain customers might have 15% off certain product categories).
I'm making orders using the Woocommerce API, but when placing an order the pricing is based on the user that created the consumer key and secret (if I place a discount on products on this account, I can see the discounted price). And out of the box Woocommerce doesn't allow customers to create API keys.
So I'm looking for a way to access the products as if I'm a certain user. Something like
https://example.com/wp-json/wc/v3/products/{product_id}?customer_id={customer_id}
or
https://example.com/wp-json/wc/v3/customers/{customer_id}/products/...
But I do not know where to start to create something like this...