Download the PHP package zero-to-prod/spapi-orders without Composer
On this page you can find all versions of the php package zero-to-prod/spapi-orders. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download zero-to-prod/spapi-orders
More information about zero-to-prod/spapi-orders
Files in zero-to-prod/spapi-orders
Package spapi-orders
Short Description Amazon Selling Partner API (SPAPI) Orders API
License MIT
Homepage https://github.com/zero-to-prod/spapi-orders
Informations about the package spapi-orders
Zerotoprod\SpapiOrders
Contents
- Introduction
- Requirements
- Installation
- Usage
- getOrders
- getOrder
- getOrderBuyerInfo
- getOrderAddress
- getOrderItems
- getOrderItemsBuyerInfo
- Testing
- Factories
- Local Development
- Contributing
Introduction
Amazon Selling Partner API (SPAPI) Orders API.
Requirements
- PHP 7.1 or higher.
Installation
Install Zerotoprod\SpapiOrders
via Composer:
This will add the package to your project’s dependencies and create an autoloader entry for it.
Usage
getOrders
Returns orders that are created or updated during the specified time period. If you want to return specific types of orders, you can apply filters to your request. NextToken doesn't affect any filters that you include in your request; it only impacts the pagination for the filtered orders response.
getOrder
Returns the order that you specify.
getOrderBuyerInfo
Returns buyer information for the order that you specify.
getOrderAddress
Returns the shipping address for a specific order.
getOrderItems
Returns detailed order item information for the order that you specify. If NextToken is provided, it's used to retrieve the next page of order items.
Note: When an order is in the Pending state (the order has been placed but payment has not been authorized), the getOrderItems operation does not return information about pricing, taxes, shipping charges, gift status or promotions for the order items in the order. After an order leaves the Pending state (this occurs when payment has been authorized) and enters the Unshipped, Partially Shipped, or Shipped state, the getOrderItems operation returns information about pricing, taxes, shipping charges, gift status and promotions for the order items in the order.
getOrderItemsBuyerInfo
Returns detailed buyer information for each order item within a specific order.
Testing
The package provides SpapiOrdersFake
for testing your application without making real API calls:
Factories
Use the factory to populate the fake response with dummy data:
Contributing
Contributions, issues, and feature requests are welcome! Feel free to check the issues page if you want to contribute.
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Commit changes (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature-branch
). - Create a new Pull Request.
All versions of spapi-orders with dependencies
zero-to-prod/curl-helper Version ^1.0
ext-json Version *
ext-curl Version *
zero-to-prod/container Version ^0.1.0
zero-to-prod/factory Version ^0.1.1