chengkun
2025-09-12 b21e53f16f228d3192eb54178f081395878b2406
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<?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-small-and-light-api-model/fbaSmallandLight.json
* Source MD5 signature: d6843a7c8340c26b72ec6d6479f07236
*
*
* Selling Partner API for FBA Small And Light
* The Selling Partner API for FBA Small and Light lets you help sellers manage their listings in the Small and Light program. The program reduces the cost of fulfilling orders for small and lightweight FBA inventory. You can enroll or remove items from the program and check item eligibility and enrollment status. You can also preview the estimated program fees charged to a seller for items sold while enrolled in the program.
*/
namespace DoubleBreak\Spapi\Api;
use DoubleBreak\Spapi\Client;
 
class FbaSmallAndLight extends Client {
 
  /**
  * Operation getSmallAndLightEnrollmentBySellerSKU
  *
  * @param string $sellerSKU The seller SKU that identifies the item.
  *
  * @param array $queryParams
  *    - *marketplaceIds* array - The marketplace for which the enrollment status is retrieved. Note: Accepts a single marketplace only.
  *
  */
  public function getSmallAndLightEnrollmentBySellerSKU($sellerSKU, $queryParams = [])
  {
    return $this->send("/fba/smallAndLight/v1/enrollments/{$sellerSKU}", [
      'method' => 'GET',
      'query' => $queryParams,
    ]);
  }
 
  public function getSmallAndLightEnrollmentBySellerSKUAsync($sellerSKU, $queryParams = [])
  {
    return $this->sendAsync("/fba/smallAndLight/v1/enrollments/{$sellerSKU}", [
      'method' => 'GET',
      'query' => $queryParams,
    ]);
  }
 
  /**
  * Operation putSmallAndLightEnrollmentBySellerSKU
  *
  * @param string $sellerSKU The seller SKU that identifies the item.
  *
  * @param array $queryParams
  *    - *marketplaceIds* array - The marketplace in which to enroll the item. Note: Accepts a single marketplace only.
  *
  */
  public function putSmallAndLightEnrollmentBySellerSKU($sellerSKU, $queryParams = [])
  {
    return $this->send("/fba/smallAndLight/v1/enrollments/{$sellerSKU}", [
      'method' => 'PUT',
      'query' => $queryParams,
    ]);
  }
 
  public function putSmallAndLightEnrollmentBySellerSKUAsync($sellerSKU, $queryParams = [])
  {
    return $this->sendAsync("/fba/smallAndLight/v1/enrollments/{$sellerSKU}", [
      'method' => 'PUT',
      'query' => $queryParams,
    ]);
  }
 
  /**
  * Operation deleteSmallAndLightEnrollmentBySellerSKU
  *
  * @param string $sellerSKU The seller SKU that identifies the item.
  *
  * @param array $queryParams
  *    - *marketplaceIds* array - The marketplace in which to remove the item from the Small and Light program. Note: Accepts a single marketplace only.
  *
  */
  public function deleteSmallAndLightEnrollmentBySellerSKU($sellerSKU, $queryParams = [])
  {
    return $this->send("/fba/smallAndLight/v1/enrollments/{$sellerSKU}", [
      'method' => 'DELETE',
      'query' => $queryParams,
    ]);
  }
 
  public function deleteSmallAndLightEnrollmentBySellerSKUAsync($sellerSKU, $queryParams = [])
  {
    return $this->sendAsync("/fba/smallAndLight/v1/enrollments/{$sellerSKU}", [
      'method' => 'DELETE',
      'query' => $queryParams,
    ]);
  }
 
  /**
  * Operation getSmallAndLightEligibilityBySellerSKU
  *
  * @param string $sellerSKU The seller SKU that identifies the item.
  *
  * @param array $queryParams
  *    - *marketplaceIds* array - The marketplace for which the eligibility status is retrieved. NOTE: Accepts a single marketplace only.
  *
  */
  public function getSmallAndLightEligibilityBySellerSKU($sellerSKU, $queryParams = [])
  {
    return $this->send("/fba/smallAndLight/v1/eligibilities/{$sellerSKU}", [
      'method' => 'GET',
      'query' => $queryParams,
    ]);
  }
 
  public function getSmallAndLightEligibilityBySellerSKUAsync($sellerSKU, $queryParams = [])
  {
    return $this->sendAsync("/fba/smallAndLight/v1/eligibilities/{$sellerSKU}", [
      'method' => 'GET',
      'query' => $queryParams,
    ]);
  }
 
  /**
  * Operation getSmallAndLightFeePreview
  *
  */
  public function getSmallAndLightFeePreview($body = [])
  {
    return $this->send("/fba/smallAndLight/v1/feePreviews", [
      'method' => 'POST',
      'json' => $body
    ]);
  }
 
  public function getSmallAndLightFeePreviewAsync($body = [])
  {
    return $this->sendAsync("/fba/smallAndLight/v1/feePreviews", [
      'method' => 'POST',
      'json' => $body
    ]);
  }
}