chengkun
2025-09-12 26c5c0296e7c094f9a7ae4a4bb3c975796992eaf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
/**
* This class is autogenerated by the Spapi class generator
* Date of generation: 2022-05-26
* Specification: https://github.com/amzn/selling-partner-api-models/blob/main/models/fba-inventory-api-model/fbaInventory.json
* Source MD5 signature: 811b698d35cb93afc936d64d82a73d61
*
*
* Selling Partner API for FBA Inventory
* The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon's fulfillment network.
*/
namespace DoubleBreak\Spapi\Api;
use DoubleBreak\Spapi\Client;
 
class FbaInventory extends Client {
 
  /**
  * Operation getInventorySummaries
  *
  * @param array $queryParams
  *    - *details* boolean - true to return inventory summaries with additional summarized inventory details and quantities. Otherwise, returns inventory summaries only (default value).
  *    - *granularityType* string - The granularity type for the inventory aggregation level.
  *    - *granularityId* string - The granularity ID for the inventory aggregation level.
  *    - *startDateTime* string - A start date and time in ISO8601 format. If specified, all inventory summaries that have changed since then are returned. You must specify a date and time that is no earlier than 18 months prior to the date and time when you call the API. Note: Changes in inboundWorkingQuantity, inboundShippedQuantity and inboundReceivingQuantity are not detected.
  *    - *sellerSkus* array - A list of seller SKUs for which to return inventory summaries. You may specify up to 50 SKUs.
  *    - *nextToken* string - String token returned in the response of your previous request.
  *    - *marketplaceIds* array - The marketplace ID for the marketplace for which to return inventory summaries.
  *
  */
  public function getInventorySummaries($queryParams = [])
  {
    return $this->send("/fba/inventory/v1/summaries", [
      'method' => 'GET',
      'query' => $queryParams,
    ]);
  }
 
  public function getInventorySummariesAsync($queryParams = [])
  {
    return $this->sendAsync("/fba/inventory/v1/summaries", [
      'method' => 'GET',
      'query' => $queryParams,
    ]);
  }
}