smart / 3pl-central
PHP 3PL Central
0.1.8
2016-06-28 23:19 UTC
Requires
- php: ^5.6 || ^7.0
- guzzlehttp/guzzle: ^6.0
- psr/log: ^1.0
Requires (Dev)
- phpunit/phpunit: ^5.4
README
这个库旨在将3PL Central API封装成一个简单易用的PHP库。请随时贡献。
目录
需求
此库使用PHP 7.0+。
要使用3PL Central,您必须从3PL Central获取凭据。对于每个请求,您都必须提供ID、客户ID、设施ID以及您的3PL Central登录名和密码。
安装
建议您通过composer安装PHP 3PL Central库。要这样做,请运行Composer命令安装PHP 3PL Central的最新稳定版本。
composer require smart/3pl-central
查找订单
示例
use ThreePlCentral\ThreePlCentral; $threepl = new ThreePlCentral($id, $customerId, $facilityId, $login, $password); $threepl->findOrders((new DateTime())->modify('-30 days'), new DateTime());
参数
查找订单的参数有
beginDate
Object(DateTime) 订单检索条件的开始日期时间。endDate
Object(DateTime) 订单检索条件的结束日期时间。
字段
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
许可证
PHP 3PL Central遵循MIT许可证(MIT)。