Flows

Flows

Overview

The MILK API is very flexible in how it can be integrated into an application. In any integration there are 2 parts:

  • API Level - calls from the application to the MILK API - this is handled on the application side.
  • Web Level - functionality handled inside a web view - this is handled by MILK.

How much UI is developed inside the application is dependent on what point the user is swapped over to the webview.

Typical Process

Regardless of which process is selected, the user flows though the same steps:

Content SelectionProduct SelectionProduct ConfigurationBasket ConfigurationShipping DetailsPayment DetailsOrder Confirmation

Option 1: Basic

This option allows most of the process to be handled by MILK. This would be a good option if you didn't want to invest in a custom UI and wanted a quick and simple integration.

APPAPIWEB
Content SelectionProduct SelectionProduct ConfigurationBasket ConfigurationShipping DetailsPayment DetailsOrder Confirmation

The basic flow would be build via the following integration points:

  1. User Authentication (or skip for Anonymous Users)
  2. Upload content to the Library (via Push or Pull)
  3. Start the Product Builder

Option 2: Advanced

This option allows most of the process to be handled inside the application. This option would be a good choice if you had requirements to build a heavily custom native UI and have a lot of control over the process.

APPAPIAPPAPIAPPAPIAPPAPIWEB
Content SelectionProduct SelectionProduct ConfigurationBasket ConfigurationShipping DetailsPayment DetailsOrder Confirmation

The advanced flow would be built via the following integration points (also see Examples):

  1. List the available Products
  2. If no active session, create a User, then create a Session
  3. Create a Project
  4. Create a Basket
  5. Add a Project to a Basket (creating a Basket Line)
  6. Project Artifacts are uploaded (or deferred)
  7. Checkout
  8. Get Order details
  9. View order status in the Customer Portal