Endpoints:
Assign Order Users
POST /order/users assigns users to the specified orders
Required fields:
order_ids, user_emails, are required when assigning users to an order.
This endpoint will return200 OK if the request was a success.
If ANY of the user_emails cannot be found, the entire request will fail with a 400
Bad Request and no orders will be updated.
Example JSON Request
{
"order_ids": [2234234, 53434534534, 34534534, 674567456],
"user_emails": ["john@mysite.com", "roberto@mysite.com"]
}
Remove Order Users
POST /order/users/remove removes users from the specified orders
Required fields:
order_ids, user_emails, are required when removing users from an order.
This endpoint will return200 OK if the request was a success.
Example JSON Request
{
"order_ids": [2234234, 53434534534, 34534534, 674567456],
"user_emails": ["john@mysite.com", "roberto@mysite.com"]
}