3pl-central
v0.1.7
Published
3PL Central API Wrapper
Downloads
26
Readme
3PL Central
Microservice
Config in .env
file.
docker pull smartio/3pl-central
docker run -p 4369:4369 -p 5671:5671 -p 5672:5672 -p 25672:25672 it --rm --name 3pl-central smartio/3pl-central
Docker Compose
3pl-central:
env_file: .env
image: smartio/3pl-central
volumes:
- "/mnt/sda1/var/3pl_central_data:/data/db"
ports:
- "4369:4369"
Usage
Listen to new orders
import { connect, listen } from '3pl-central';
connect(host)
.then(client => {
client.on('newOrder', order => console.log(order));
})
.then(listen);
Find orders
import { connect, close, findOrders } from '3pl-central';
import moment from 'moment';
connect(host)
.then(() => findOrders(moment().subtract(14, 'days')))
.then(orders => console.log(orders))
.then(close);
Data Structure
Order
CustomerName
CustomerEmail
CustomerPhone
Facility
FacilityID
WarehouseTransactionID
ReferenceNum
PONum
Retailer
ShipToCompanyName
ShipToName
ShipToEmail
ShipToPhone
ShipToAddress1
ShipToAddress2
ShipToCity
ShipToState
ShipToZip
ShipToCountry
ShipMethod
MarkForName
BatchOrderID
CreationDate
EarliestShipDate
ShipCancelDate
PickupDate
Carrier
BillingCode
TotWeight
TotCuFt
TotPackages
TotOrdQty
TotLines
Notes
OverAllocated
PickTicketPrintDate
ProcessDate
TrackingNumber
LoadNumber
BillOfLading
MasterBillOfLading
ASNSentDate
ConfirmASNSentDate
RememberRowInfo