chengkun
2025-09-05 4822304b63e1bd6327860af7f3db0133cecf167f
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?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/product-fees-api-model/productFeesV0.json
* Source MD5 signature: 8d2f4e1ac36d2a7ca87189876afa8b22
*
*
* Selling Partner API for Product Fees
* The Selling Partner API for Product Fees lets you programmatically retrieve estimated fees for a product. You can then account for those fees in your pricing.
*/
namespace DoubleBreak\Spapi\Api;
use DoubleBreak\Spapi\Client;
 
class ProductFees extends Client {
 
  /**
  * Operation getMyFeesEstimateForSKU
  *
  * @param string $sellerSKU Used to identify an item in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit.
  *
  */
  public function getMyFeesEstimateForSKU($sellerSKU, $body = [])
  {
    return $this->send("/products/fees/v0/listings/{$sellerSKU}/feesEstimate", [
      'method' => 'POST',
      'json' => $body
    ]);
  }
 
  public function getMyFeesEstimateForSKUAsync($sellerSKU, $body = [])
  {
    return $this->sendAsync("/products/fees/v0/listings/{$sellerSKU}/feesEstimate", [
      'method' => 'POST',
      'json' => $body
    ]);
  }
 
  /**
  * Operation getMyFeesEstimateForASIN
  *
  * @param string $asin The Amazon Standard Identification Number (ASIN) of the item.
  *
  */
  public function getMyFeesEstimateForASIN($asin, $body = [])
  {
    return $this->send("/products/fees/v0/items/{$asin}/feesEstimate", [
      'method' => 'POST',
      'json' => $body
    ]);
  }
 
  public function getMyFeesEstimateForASINAsync($asin, $body = [])
  {
    return $this->sendAsync("/products/fees/v0/items/{$asin}/feesEstimate", [
      'method' => 'POST',
      'json' => $body
    ]);
  }
 
  /**
  * Operation getMyFeesEstimates
  *
  */
  public function getMyFeesEstimates($body = [])
  {
    return $this->send("/products/fees/v0/feesEstimate", [
      'method' => 'POST',
      'json' => $body
    ]);
  }
 
  public function getMyFeesEstimatesAsync($body = [])
  {
    return $this->sendAsync("/products/fees/v0/feesEstimate", [
      'method' => 'POST',
      'json' => $body
    ]);
  }
}