How do I set an order's owner to an affiliated organization?

Former Member
Former Member $organization

I'm making a form for employees to place orders for an affiliated organization.  I want the employee who logged in to be the initiator, while the organization should be the owner.  How can I accomplish this using the SOAP or REST APIs?

Parents
  • Former Member
    Former Member $organization

    Hi Brian - 

    At this time, I'm not sure this can be done in the way you're describing.  Shifting context between accounts via the API only works with individuals/households not employees/organizations.  Could you consider flipping the owner / initiator values on the order so that the employee is the owner and the organization is the initiator (which I believe is possible via the SOAP API's MaintainOrderInitatorRecipient)?  In this approach you're still binding the order to both the employee and the company, though the assignments to the order are flipped.

  • Former Member
    Former Member $organization in reply to Former Member

    Thank you, Heather.  I guess I'll just write a stored procedure to call after checkout to set the order's customer ID.

Reply Children
No Data