Alireza MoradianMaintainX take-home

Due dates from priority.
Orders into Coupa.

My answer to the MaintainX Integration Developer take-home. Alireza Moradian, November 2026.

I built both answers and tested them in my own MaintainX trial account. MaintainX is real in every live test. I did not have access to a Coupa test account, so the Coupa side runs against a simulator that answers the way Coupa’s API pages describe.

Question 1

Can the due date be set from the work order’s priority, through the API?

Yes. MaintainX has no setting for this, so a small program does it. A webhook says a work order was made or changed, a rule table gives the days, and one API call writes the date back.

Built and tested liveOpen Question 1
Question 2

What is the best way to sync purchase orders from MaintainX into Coupa?

Send each approved order to Coupa as a requisition, a request to buy. Coupa’s own approval turns it into an order, and the order number comes back to MaintainX as a comment.

MaintainX side tested liveCoupa side on a simulatorOpen Question 2

How the pieces connect

My program sits in the middle. MaintainX calls it with webhooks, and it answers through the MaintainX and Coupa APIs. A timer also reads Coupa every 15 minutes, because I could not confirm that Coupa sends webhooks.