Migrated from GitLab wiki

rob
2026-06-29 09:04:45 +00:00
commit e1540f6adf
+39
@@ -0,0 +1,39 @@
Amazon Multi-Channel Fulfillment (MCF) provides low-cost, reliable fulfillment for multiple ecommerce sales channels in as fast as two days. Its part of a fully automated set services we call Supply Chain by Amazon.
In eStack, we support MCF once order came we check in our local inventory if we don't have it on our inventory we check AMAZON Stocks (FBA), if we don't have stocks on amazon we tagged the order as STOCK-HOLD.
Amazon change their from MWS to SP-API. In estack we have third party script that will support amazon SP-API.
Here's the third party script that we use on AMAZON SP-API.
[Double Break SP-API](https://github.com/double-break/spapi-php/tree/master)
MCF CRON JOBS
`*/20 * * * * cd /estack; bin/pms3 amazon create mcforder`
1. This cron job will run every 20 minutes. This will create the MCF order. It will fetch all `fullfillment-routing` status order then will try to allocate stocks on amazon, if no stocks, order will be updated to stock-hold otherwise it will be updated to `mcf-processing`.
`5,15,35 * * * * cd /estack; bin/pms3 amazon update mcforder`
2. This cron job will run every minute on 5, 15 and 35. This will look for orders status 'mcf-processing' and 'partiallialy-picked' it will get updates from amazon. If the orde status on amazon is 'recieved', 'planning', 'processing' we leave the status to 'mcf-processing'. But if we get from amazon that order status is 'complete' we update our estack order to 'picked'. And if we get the status as 'complete-partialled' we update our order status to 'partially-picked'
| Amazon Status | eStack Status |
| ------ | ------ |
| recieved | mcf-processing |
| planning | mcf-processing |
| processing | mcf-processing |
| complete | picked |
| complete-partialled | partially-picked |
`10,20,45 * * * * cd /estack; bin/pms3 amazon fulfill mcforder`
3. This cron job will run in 10, 20 and 45 minute. This will look for orders that are in status 'picked' this cron will report the orders back to channel once it is successful we tagged it on estack as 'complete'