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
<?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/listings-restrictions-api-model/listingsRestrictions_2021-08-01.json
* Source MD5 signature: 2319e2bbf9d421f571cd0457aa9944b7
*
*
* Selling Partner API for Listings Restrictions
* The Selling Partner API for Listings Restrictions provides programmatic access to restrictions on Amazon catalog listings.
 
For more information, see the [Listings Restrictions API Use Case Guide](doc:listings-restrictions-api-v2021-08-01-use-case-guide).
*/
namespace DoubleBreak\Spapi\Api;
use DoubleBreak\Spapi\Client;
 
class ListingsRestrictions extends Client {
 
  /**
  * Operation getListingsRestrictions
  *
  * @param array $queryParams
  *    - *asin* string - The Amazon Standard Identification Number (ASIN) of the item.
  *    - *conditionType* string - The condition used to filter restrictions.
  *    - *sellerId* string - A selling partner identifier, such as a merchant account.
  *    - *marketplaceIds* array - A comma-delimited list of Amazon marketplace identifiers for the request.
  *    - *reasonLocale* string - A locale for reason text localization. When not provided, the default language code of the first marketplace is used. Examples: "en_US", "fr_CA", "fr_FR". Localized messages default to "en_US" when a localization is not available in the specified locale.
  *
  */
  public function getListingsRestrictions($queryParams = [])
  {
    return $this->send("/listings/2021-08-01/restrictions", [
      'method' => 'GET',
      'query' => $queryParams,
    ]);
  }
 
  public function getListingsRestrictionsAsync($queryParams = [])
  {
    return $this->sendAsync("/listings/2021-08-01/restrictions", [
      'method' => 'GET',
      'query' => $queryParams,
    ]);
  }
}