I am working on an app for a 3rd party vendor let’s say they make custom neck ties. The app allows stores to create products to be manufactured by and shipped directly from the vendor (on-demand).
Supposing an order is created for 1x bow tie (vendor), 1x neck tie (vendor), and 1x pair of socks (different vendor), what are the events that lead to the vendor manufacturing and shipping the socks?
Here’s my thinking for the hooks I need (please correct me as I know I am wrong!):
ORDERS_CREATE - watch for orders where line_items match vendor
FULFILLMENTS_CREATE - create a fulfillment for each relevant line item
FULFILLMENT_ORDERS_FULFILLMENT_REQUEST_SUBMITTED - submit fulfillment to vendor
FULFILLMENT_ORDERS_FULFILLMENT_REQUEST_ACCEPTED - vendor accepts
PAYMENT_TERMS_CREATE - vendor charges
FULFILLMENTS_UPDATE - update fulfillment with tracking
ORDERS_PARTIALLY_FULFILLED - fulfill vendor specific items (1x bow tie, 1x neck tie)
I have never chained events before, but is this the right idea? What am I leaving out? Any insights would be much appreciated!