REST API Method

Job ID: 32255544

Budget: ₹600 – ₹1,500 INR

Company X produce digital marketing products like websites and paid search campaigns to their channel
partners customers. Company X has 4 partners that want to send orders to them via API.
We need you to develop a rest API for Company X’s partners, so that they can send orders into Company
X to fulfill. However each partner has slight differences in their order structure and some have more
information than others to pass.
You need to design the API method so that there is a single method to accept these orders from all the
partners. It’s also worth thinking about how extensible your design is, as Company X want to push all
their partners into using the API to submit orders.
On the next page, there are JSON examples of the basic order and products. Below are the additional
rules for each partner.
Partner A sells the website product only and collects the following additional fields about their
customers:
"ContactFirstName", "ContactLastName", "ContactTitle", "ContactPhone", "ContactMobile",
"ContactEmail"
Partner B uses the standard order fields and sells both website and paid search products.
Partner C sells both products, and collects the additional information below
"ExposureID", "UDAC", "RelatedOrder"
Partner D sells the paid search product only.
There should be Error Handling logic and Comments/Swagger.
Related categories: RESTful API