chengkun
2025-09-15 3c9050e82e582414dc7b208c8283fe47be37eeba
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
<?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/vendor-direct-fulfillment-inventory-api-model/vendorDirectFulfillmentInventoryV1.json
* Source MD5 signature: c7af746c021e86a555d1952eb7087188
*
*
* Selling Partner API for Direct Fulfillment Inventory Updates
* The Selling Partner API for Direct Fulfillment Inventory Updates provides programmatic access to a direct fulfillment vendor's inventory updates.
*/
namespace DoubleBreak\Spapi\Api;
use DoubleBreak\Spapi\Client;
 
class VendorDirectFulfillmentInventory extends Client {
 
  /**
  * Operation submitInventoryUpdate
  *
  * @param string $warehouseId Identifier for the warehouse for which to update inventory.
  *
  */
  public function submitInventoryUpdate($warehouseId, $body = [])
  {
    return $this->send("/vendor/directFulfillment/inventory/v1/warehouses/{$warehouseId}/items", [
      'method' => 'POST',
      'json' => $body
    ]);
  }
 
  public function submitInventoryUpdateAsync($warehouseId, $body = [])
  {
    return $this->sendAsync("/vendor/directFulfillment/inventory/v1/warehouses/{$warehouseId}/items", [
      'method' => 'POST',
      'json' => $body
    ]);
  }
}