PHP code example of zero-to-prod / spapi-orders-cli
1. Go to this page and download the library: Download zero-to-prod/spapi-orders-cli library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
zero-to-prod / spapi-orders-cli example snippets json
{
"AmazonOrderId": "123-4567890-1234567",
"PurchaseDate": "2023-12-01T14:30:00Z",
"LastUpdateDate": "2023-12-02T10:15:00Z",
"OrderStatus": "Shipped",
"FulfillmentChannel": "MFN",
"SalesChannel": "Amazon.com",
"OrderChannel": "Online",
"ShipServiceLevel": "Std US D2D Dom",
"NumberOfItemsShipped": 1,
"NumberOfItemsUnshipped": 0,
"PaymentExecutionDetail": [],
"PaymentMethod": "Other",
"MarketplaceId": "ATVPDKIKX0DER",
"BuyerEmail": "[email protected] ",
"BuyerName": "John Doe",
"BuyerCounty": "King",
"BuyerTaxInfo": {
"CompanyLegalName": "Example Company",
"TaxingRegion": "WA",
"TaxClassifications": []
},
"ShipmentServiceLevelCategory": "Standard",
"ShippedByAmazonTFM": false,
"TFMShipmentStatus": "PendingPickUp",
"OrderType": "StandardOrder",
"EarliestShipDate": "2023-12-01T00:00:00Z",
"LatestShipDate": "2023-12-03T23:59:59Z",
"EarliestDeliveryDate": "2023-12-05T00:00:00Z",
"LatestDeliveryDate": "2023-12-08T23:59:59Z",
"IsBusinessOrder": false,
"IsPrime": true,
"IsPremiumOrder": false,
"IsGlobalExpressEnabled": false,
"ReplacedOrderId": null,
"IsReplacementOrder": false,
"PromiseResponseDueDate": "2023-12-01T16:30:00Z",
"IsEstimatedShipDateSet": false
}