This repository contains the assignment given by SHOPLINE to Benjamin Dean a final step of the interview process for the Open Platform Expert & Head of Developer Experience role.
Context A client is planning to develop a multi-level marketing (MLM) Platform using, SHOPLINE's APIs and Webhooks, to manage influencer Partnerships for their e-commerce operations. The pIattorm's primary functionalities must include:
-
Self-Sign-Up tor influencers: Enable influencers to onboard themselves and automatically set up personalized websites where the can sell products across up to ten (10) distinct categories of branded product lines.
-
Inventory and Discount Control: The client must be able to manage inventory levels and offer discounts dynamically, based on the sales performance metrics of each influencer.
-
Social Feed integration and Customization: Influencers should have the tools to integrate their social media feeds into their websites and customize front-end elements to suit their branding needs.
-
Multi-Level Commission Calculation: The platform needs to calculate commissions for influencers, and their downstream sales lines (supporting the MLM business model).
graph TD;
A[Client's MLM Platform] --> B[Self-Sign-Up for Influencers]
A --> C[Inventory and Discount Control]
A --> D[Social Feed Integration and Customization]
A --> E[Multi-Level Commission Calculation]
B --> B1[Onboard Influencers]
B --> B2[Set Up Personalized Websites]
B2 --> B21[Product Categories]
C --> C1[Manage Inventory Levels]
C --> C2[Dynamic Discounts Based on Performance]
D --> D1[Integrate Social Media Feeds]
D --> D2[Customize Front-End Elements]
E --> E1[Calculate Commissions for Influencers]
E --> E2[Support Downstream Sales Lines]
style A fill:#f9f,stroke:#333,stroke-width:4px
style B fill:#ccf,stroke:#333,stroke-width:2px
style C fill:#ccf,stroke:#333,stroke-width:2px
style D fill:#ccf,stroke:#333,stroke-width:2px
style E fill:#ccf,stroke:#333,stroke-width:2px
- Design different sequence diagrams that map out the interactions between the client's [MLM] system, [brand] influencers, and the Shopline's REST API and/or webhooks needed to satisfy the functionalities of this assignment's Contextual Overview.
- The diagrams should clearly illustrate all relevant API calls, data flows, and system responses
Suppose, during develoment, you identify an essential APl endpoint is missing from SHOPLINE's Developer Portal.
- Explain how you would go about prototyping this endpoint, including:
- Defining endpoint requirements (functionality, method, etc.)
- Designing the AP interface (URI design, request/response structures)
- Documenting the endpoint for use by the development team
- What do you think are the areas where SHOPLINE open e-commerce capabilities lack?
- Provide 2-3 specific examples