ShopGo
1.0.0
1.0.0
  • Welcome
  • Developer Guides
    • Order Processing
    • Webhooks
      • Calculate Shipping Rates
  • Management API
    • Introduction
    • Authentication
      • Using User API Key
      • Using Platform API Key
    • Authorization
    • Objects
      • Primitives
      • Order
      • Payment
      • Shipment
      • Purchase
      • Adjustment
      • Charge
      • Attribute
    • API Endpoints
  • Platform API
    • Introduction
    • Authentication
    • Objects
    • API Endpoints
      • Tenant
Powered by GitBook
On this page

Was this helpful?

  1. Developer Guides

Order Processing

PreviousWelcomeNextWebhooks

Last updated 4 years ago

Was this helpful?

The following represents the lifecycle of an order:

This consists of three interdependent processess:

  1. Payment

  2. Authorization

  3. Fulfillment

The possible interactions between these processes are shown in the Petri net. The key steps are:

  1. Creation (shopper receives price quote for order)

  2. Confirmation (shopper commits to payment)

  3. Authorization (merchant clears fulfillment)

  4. Completion (merchant completes fulfillment)

  5. Cancellation (merchant suspends authorization and fulfillment processes permanently)

There are few slightly counter-intuitive details to watch out for. As an example, cancellation and completion do not prevent the acceptance of new payments or issuing of refunds, since they don't affect the payment process (by definition).

Buttons and various operations on both storefronts and the dashboard may be given slightly different labels but the keywords above are the standard terminology for business logic and technical implementation. For example, the main checkout button in the flat front end is labelled "Place Order" but there's no "place order" operation in the model -- pressing "Place Order" completes the Confirmation step.

Petri net
62KB
order-model-v7.pdf
pdf
order-model-v7.pdf