All URIs are relative to https://openapi.etsy.com
Method | HTTP request | Description |
---|---|---|
createDraftListing | POST /v3/application/shops/{shop_id}/listings | |
deleteListing | DELETE /v3/application/listings/{listing_id} | |
deleteListingProperty | DELETE /v3/application/shops/{shop_id}/listings/{listing_id}/properties/{property_id} | |
findAllActiveListingsByShop | GET /v3/application/shops/{shop_id}/listings/active | |
findAllListingsActive | GET /v3/application/listings/active | |
getFeaturedListingsByShop | GET /v3/application/shops/{shop_id}/listings/featured | |
getListing | GET /v3/application/listings/{listing_id} | |
getListingProperties | GET /v3/application/shops/{shop_id}/listings/{listing_id}/properties | |
getListingProperty | GET /v3/application/listings/{listing_id}/properties/{property_id} | |
getListingsByListingIds | GET /v3/application/listings/batch | |
getListingsByShop | GET /v3/application/shops/{shop_id}/listings | |
getListingsByShopReceipt | GET /v3/application/shops/{shop_id}/receipts/{receipt_id}/listings | |
getListingsByShopReturnPolicy | GET /v3/application/shops/{shop_id}/policies/return/{return_policy_id}/listings | |
getListingsByShopSectionId | GET /v3/application/shops/{shop_id}/shop-sections/listings | |
updateListing | PATCH /v3/application/shops/{shop_id}/listings/{listing_id} | |
updateListingDeprecated | PUT /v3/application/shops/{shop_id}/listings/{listing_id} | |
updateListingProperty | PUT /v3/application/shops/{shop_id}/listings/{listing_id}/properties/{property_id} |
\Swagger\Client\Model\ShopListing createDraftListing($shop_id, $quantity, $title, $description, $price, $who_made, $when_made, $taxonomy_id, $shipping_profile_id, $return_policy_id, $materials, $shop_section_id, $processing_min, $processing_max, $tags, $styles, $item_weight, $item_length, $item_width, $item_height, $item_weight_unit, $item_dimensions_unit, $is_personalizable, $personalization_is_required, $personalization_char_count_max, $personalization_instructions, $production_partner_ids, $image_ids, $is_supply, $is_customizable, $should_auto_renew, $is_taxable, $type)
This endpoint is ready for production use.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Swagger\Client\Api\ShopListingApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$shop_id = 56; // int | The unique positive non-zero numeric ID for an Etsy Shop.
$quantity = 56; // int |
$title = "title_example"; // string |
$description = "description_example"; // string |
$price = 3.4; // float |
$who_made = "who_made_example"; // string |
$when_made = "when_made_example"; // string |
$taxonomy_id = 56; // int |
$shipping_profile_id = 56; // int |
$return_policy_id = 56; // int |
$materials = array("materials_example"); // string[] |
$shop_section_id = 56; // int |
$processing_min = 56; // int |
$processing_max = 56; // int |
$tags = array("tags_example"); // string[] |
$styles = array("styles_example"); // string[] |
$item_weight = 3.4; // float |
$item_length = 3.4; // float |
$item_width = 3.4; // float |
$item_height = 3.4; // float |
$item_weight_unit = "item_weight_unit_example"; // string |
$item_dimensions_unit = "item_dimensions_unit_example"; // string |
$is_personalizable = true; // bool |
$personalization_is_required = true; // bool |
$personalization_char_count_max = 56; // int |
$personalization_instructions = "personalization_instructions_example"; // string |
$production_partner_ids = array(56); // int[] |
$image_ids = array(56); // int[] |
$is_supply = true; // bool |
$is_customizable = true; // bool |
$should_auto_renew = true; // bool |
$is_taxable = true; // bool |
$type = "type_example"; // string |
try {
$result = $apiInstance->createDraftListing($shop_id, $quantity, $title, $description, $price, $who_made, $when_made, $taxonomy_id, $shipping_profile_id, $return_policy_id, $materials, $shop_section_id, $processing_min, $processing_max, $tags, $styles, $item_weight, $item_length, $item_width, $item_height, $item_weight_unit, $item_dimensions_unit, $is_personalizable, $personalization_is_required, $personalization_char_count_max, $personalization_instructions, $production_partner_ids, $image_ids, $is_supply, $is_customizable, $should_auto_renew, $is_taxable, $type);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ShopListingApi->createDraftListing: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
shop_id | int | The unique positive non-zero numeric ID for an Etsy Shop. | |
quantity | int | [optional] | |
title | string | [optional] | |
description | string | [optional] | |
price | float | [optional] | |
who_made | string | [optional] | |
when_made | string | [optional] | |
taxonomy_id | int | [optional] | |
shipping_profile_id | int | [optional] | |
return_policy_id | int | [optional] | |
materials | string[] | [optional] | |
shop_section_id | int | [optional] | |
processing_min | int | [optional] | |
processing_max | int | [optional] | |
tags | string[] | [optional] | |
styles | string[] | [optional] | |
item_weight | float | [optional] | |
item_length | float | [optional] | |
item_width | float | [optional] | |
item_height | float | [optional] | |
item_weight_unit | string | [optional] | |
item_dimensions_unit | string | [optional] | |
is_personalizable | bool | [optional] | |
personalization_is_required | bool | [optional] | |
personalization_char_count_max | int | [optional] | |
personalization_instructions | string | [optional] | |
production_partner_ids | int[] | [optional] | |
image_ids | int[] | [optional] | |
is_supply | bool | [optional] | |
is_customizable | bool | [optional] | |
should_auto_renew | bool | [optional] | |
is_taxable | bool | [optional] | |
type | string | [optional] |
\Swagger\Client\Model\ShopListing
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteListing($listing_id)
This endpoint is ready for production use.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Swagger\Client\Api\ShopListingApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$listing_id = 56; // int | The numeric ID for the [listing](/documentation/reference#tag/ShopListing) associated to this transaction.
try {
$apiInstance->deleteListing($listing_id);
} catch (Exception $e) {
echo 'Exception when calling ShopListingApi->deleteListing: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
listing_id | int | The numeric ID for the listing associated to this transaction. |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteListingProperty($shop_id, $listing_id, $property_id)
This endpoint is ready for production use.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Swagger\Client\Api\ShopListingApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$shop_id = 56; // int | The unique positive non-zero numeric ID for an Etsy Shop.
$listing_id = 56; // int | The numeric ID for the [listing](/documentation/reference#tag/ShopListing) associated to this transaction.
$property_id = 56; // int | The unique ID of an Etsy [listing property](/documentation/reference#operation/getListingProperties).
try {
$apiInstance->deleteListingProperty($shop_id, $listing_id, $property_id);
} catch (Exception $e) {
echo 'Exception when calling ShopListingApi->deleteListingProperty: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
shop_id | int | The unique positive non-zero numeric ID for an Etsy Shop. | |
listing_id | int | The numeric ID for the listing associated to this transaction. | |
property_id | int | The unique ID of an Etsy listing property. |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\ShopListings findAllActiveListingsByShop($shop_id, $limit, $sort_on, $sort_order, $offset, $keywords)
This endpoint is ready for production use.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
$apiInstance = new Swagger\Client\Api\ShopListingApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$shop_id = 56; // int | The unique positive non-zero numeric ID for an Etsy Shop.
$limit = 25; // int | The maximum number of results to return.
$sort_on = "created"; // string | The value to sort a search result of listings on. NOTES: a) `sort_on` only works when combined with one of the search options (keywords, region, etc.). b) when using `score` the returned results will always be in _descending_ order, regardless of the `sort_order` parameter.
$sort_order = "desc"; // string | The ascending(up) or descending(down) order to sort listings by. NOTE: sort_order only works when combined with one of the search options (keywords, region, etc.).
$offset = 0; // int | The number of records to skip before selecting the first result.
$keywords = "keywords_example"; // string | Search term or phrase that must appear in all results.
try {
$result = $apiInstance->findAllActiveListingsByShop($shop_id, $limit, $sort_on, $sort_order, $offset, $keywords);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ShopListingApi->findAllActiveListingsByShop: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
shop_id | int | The unique positive non-zero numeric ID for an Etsy Shop. | |
limit | int | The maximum number of results to return. | [optional] [default to 25] |
sort_on | string | The value to sort a search result of listings on. NOTES: a) `sort_on` only works when combined with one of the search options (keywords, region, etc.). b) when using `score` the returned results will always be in descending order, regardless of the `sort_order` parameter. | [optional] [default to created] |
sort_order | string | The ascending(up) or descending(down) order to sort listings by. NOTE: sort_order only works when combined with one of the search options (keywords, region, etc.). | [optional] [default to desc] |
offset | int | The number of records to skip before selecting the first result. | [optional] [default to 0] |
keywords | string | Search term or phrase that must appear in all results. | [optional] |
\Swagger\Client\Model\ShopListings
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\ShopListings findAllListingsActive($limit, $offset, $keywords, $sort_on, $sort_order, $min_price, $max_price, $taxonomy_id, $shop_location)
This endpoint is ready for production use.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
$apiInstance = new Swagger\Client\Api\ShopListingApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$limit = 25; // int | The maximum number of results to return.
$offset = 0; // int | The number of records to skip before selecting the first result.
$keywords = "keywords_example"; // string | Search term or phrase that must appear in all results.
$sort_on = "created"; // string | The value to sort a search result of listings on. NOTES: a) `sort_on` only works when combined with one of the search options (keywords, region, etc.). b) when using `score` the returned results will always be in _descending_ order, regardless of the `sort_order` parameter.
$sort_order = "desc"; // string | The ascending(up) or descending(down) order to sort listings by. NOTE: sort_order only works when combined with one of the search options (keywords, region, etc.).
$min_price = 3.4; // float | The minimum price of listings to be returned by a search result.
$max_price = 3.4; // float | The maximum price of listings to be returned by a search result.
$taxonomy_id = 56; // int | The numerical taxonomy ID of the listing. See [SellerTaxonomy](/documentation/reference#tag/SellerTaxonomy) and [BuyerTaxonomy](/documentation/reference#tag/BuyerTaxonomy) for more information.
$shop_location = "shop_location_example"; // string | Filters by shop location. If location cannot be parsed, Etsy responds with an error.
try {
$result = $apiInstance->findAllListingsActive($limit, $offset, $keywords, $sort_on, $sort_order, $min_price, $max_price, $taxonomy_id, $shop_location);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ShopListingApi->findAllListingsActive: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
limit | int | The maximum number of results to return. | [optional] [default to 25] |
offset | int | The number of records to skip before selecting the first result. | [optional] [default to 0] |
keywords | string | Search term or phrase that must appear in all results. | [optional] |
sort_on | string | The value to sort a search result of listings on. NOTES: a) `sort_on` only works when combined with one of the search options (keywords, region, etc.). b) when using `score` the returned results will always be in descending order, regardless of the `sort_order` parameter. | [optional] [default to created] |
sort_order | string | The ascending(up) or descending(down) order to sort listings by. NOTE: sort_order only works when combined with one of the search options (keywords, region, etc.). | [optional] [default to desc] |
min_price | float | The minimum price of listings to be returned by a search result. | [optional] |
max_price | float | The maximum price of listings to be returned by a search result. | [optional] |
taxonomy_id | int | The numerical taxonomy ID of the listing. See SellerTaxonomy and BuyerTaxonomy for more information. | [optional] |
shop_location | string | Filters by shop location. If location cannot be parsed, Etsy responds with an error. | [optional] |
\Swagger\Client\Model\ShopListings
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\ShopListings getFeaturedListingsByShop($shop_id, $limit, $offset)
This endpoint is ready for production use.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
$apiInstance = new Swagger\Client\Api\ShopListingApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$shop_id = 56; // int | The unique positive non-zero numeric ID for an Etsy Shop.
$limit = 25; // int | The maximum number of results to return.
$offset = 0; // int | The number of records to skip before selecting the first result.
try {
$result = $apiInstance->getFeaturedListingsByShop($shop_id, $limit, $offset);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ShopListingApi->getFeaturedListingsByShop: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
shop_id | int | The unique positive non-zero numeric ID for an Etsy Shop. | |
limit | int | The maximum number of results to return. | [optional] [default to 25] |
offset | int | The number of records to skip before selecting the first result. | [optional] [default to 0] |
\Swagger\Client\Model\ShopListings
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\ShopListingWithAssociations getListing($listing_id, $includes, $language)
This endpoint is ready for production use.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
$apiInstance = new Swagger\Client\Api\ShopListingApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$listing_id = 56; // int | The numeric ID for the [listing](/documentation/reference#tag/ShopListing) associated to this transaction.
$includes = array("includes_example"); // string[] | An enumerated string that attaches a valid association. Acceptable inputs are 'Shipping', 'Shop', 'Images', 'User', 'Translations' and 'Inventory'.
$language = "language_example"; // string | The IETF language tag for the language of this translation. Ex: `de`, `en`, `es`, `fr`, `it`, `ja`, `nl`, `pl`, `pt`.
try {
$result = $apiInstance->getListing($listing_id, $includes, $language);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ShopListingApi->getListing: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
listing_id | int | The numeric ID for the listing associated to this transaction. | |
includes | string[] | An enumerated string that attaches a valid association. Acceptable inputs are 'Shipping', 'Shop', 'Images', 'User', 'Translations' and 'Inventory'. | [optional] |
language | string | The IETF language tag for the language of this translation. Ex: `de`, `en`, `es`, `fr`, `it`, `ja`, `nl`, `pl`, `pt`. | [optional] |
\Swagger\Client\Model\ShopListingWithAssociations
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\ListingPropertyValues getListingProperties($shop_id, $listing_id)
This endpoint is ready for production use.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
$apiInstance = new Swagger\Client\Api\ShopListingApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$shop_id = 56; // int | The unique positive non-zero numeric ID for an Etsy Shop.
$listing_id = 56; // int | The numeric ID for the [listing](/documentation/reference#tag/ShopListing) associated to this transaction.
try {
$result = $apiInstance->getListingProperties($shop_id, $listing_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ShopListingApi->getListingProperties: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
shop_id | int | The unique positive non-zero numeric ID for an Etsy Shop. | |
listing_id | int | The numeric ID for the listing associated to this transaction. |
\Swagger\Client\Model\ListingPropertyValues
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\ListingPropertyValue getListingProperty($listing_id, $property_id)
Development for this endpoint is in progress. It will only return a 501 response.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
$apiInstance = new Swagger\Client\Api\ShopListingApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$listing_id = 56; // int | The numeric ID for the [listing](/documentation/reference#tag/ShopListing) associated to this transaction.
$property_id = 56; // int | The unique ID of an Etsy [listing property](/documentation/reference#operation/getListingProperties).
try {
$result = $apiInstance->getListingProperty($listing_id, $property_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ShopListingApi->getListingProperty: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
listing_id | int | The numeric ID for the listing associated to this transaction. | |
property_id | int | The unique ID of an Etsy listing property. |
\Swagger\Client\Model\ListingPropertyValue
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\ShopListingsWithAssociations getListingsByListingIds($listing_ids, $includes)
This endpoint is ready for production use.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
$apiInstance = new Swagger\Client\Api\ShopListingApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$listing_ids = array(56); // int[] | The list of numeric IDS for the listings in a specific Etsy shop.
$includes = array("includes_example"); // string[] | An enumerated string that attaches a valid association. Acceptable inputs are 'Shipping', 'Shop', 'Images', 'User', 'Translations' and 'Inventory'.
try {
$result = $apiInstance->getListingsByListingIds($listing_ids, $includes);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ShopListingApi->getListingsByListingIds: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
listing_ids | int[] | The list of numeric IDS for the listings in a specific Etsy shop. | |
includes | string[] | An enumerated string that attaches a valid association. Acceptable inputs are 'Shipping', 'Shop', 'Images', 'User', 'Translations' and 'Inventory'. | [optional] |
\Swagger\Client\Model\ShopListingsWithAssociations
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\ShopListingsWithAssociations getListingsByShop($shop_id, $state, $limit, $offset, $sort_on, $sort_order, $includes)
This endpoint is ready for production use.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Swagger\Client\Api\ShopListingApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$shop_id = 56; // int | The unique positive non-zero numeric ID for an Etsy Shop.
$state = "active"; // string | When _updating_ a listing, this value can be either `active` or `inactive`. Note: Setting a `draft` listing to `active` will also publish the listing on etsy.com and requires that the listing have an image set. Setting a `sold_out` listing to active will update the quantity to 1 and renew the listing on etsy.com.
$limit = 25; // int | The maximum number of results to return.
$offset = 0; // int | The number of records to skip before selecting the first result.
$sort_on = "created"; // string | The value to sort a search result of listings on. NOTES: a) `sort_on` only works when combined with one of the search options (keywords, region, etc.). b) when using `score` the returned results will always be in _descending_ order, regardless of the `sort_order` parameter.
$sort_order = "desc"; // string | The ascending(up) or descending(down) order to sort listings by. NOTE: sort_order only works when combined with one of the search options (keywords, region, etc.).
$includes = array("includes_example"); // string[] | An enumerated string that attaches a valid association. Acceptable inputs are 'Shipping', 'Shop', 'Images', 'User', 'Translations' and 'Inventory'.
try {
$result = $apiInstance->getListingsByShop($shop_id, $state, $limit, $offset, $sort_on, $sort_order, $includes);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ShopListingApi->getListingsByShop: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
shop_id | int | The unique positive non-zero numeric ID for an Etsy Shop. | |
state | string | When updating a listing, this value can be either `active` or `inactive`. Note: Setting a `draft` listing to `active` will also publish the listing on etsy.com and requires that the listing have an image set. Setting a `sold_out` listing to active will update the quantity to 1 and renew the listing on etsy.com. | [optional] [default to active] |
limit | int | The maximum number of results to return. | [optional] [default to 25] |
offset | int | The number of records to skip before selecting the first result. | [optional] [default to 0] |
sort_on | string | The value to sort a search result of listings on. NOTES: a) `sort_on` only works when combined with one of the search options (keywords, region, etc.). b) when using `score` the returned results will always be in descending order, regardless of the `sort_order` parameter. | [optional] [default to created] |
sort_order | string | The ascending(up) or descending(down) order to sort listings by. NOTE: sort_order only works when combined with one of the search options (keywords, region, etc.). | [optional] [default to desc] |
includes | string[] | An enumerated string that attaches a valid association. Acceptable inputs are 'Shipping', 'Shop', 'Images', 'User', 'Translations' and 'Inventory'. | [optional] |
\Swagger\Client\Model\ShopListingsWithAssociations
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\ShopListings getListingsByShopReceipt($receipt_id, $shop_id, $limit, $offset)
This endpoint is ready for production use.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Swagger\Client\Api\ShopListingApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$receipt_id = 56; // int | The numeric ID for the [receipt](/documentation/reference#tag/Shop-Receipt) associated to this transaction.
$shop_id = 56; // int | The unique positive non-zero numeric ID for an Etsy Shop.
$limit = 25; // int | The maximum number of results to return.
$offset = 0; // int | The number of records to skip before selecting the first result.
try {
$result = $apiInstance->getListingsByShopReceipt($receipt_id, $shop_id, $limit, $offset);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ShopListingApi->getListingsByShopReceipt: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
receipt_id | int | The numeric ID for the receipt associated to this transaction. | |
shop_id | int | The unique positive non-zero numeric ID for an Etsy Shop. | |
limit | int | The maximum number of results to return. | [optional] [default to 25] |
offset | int | The number of records to skip before selecting the first result. | [optional] [default to 0] |
\Swagger\Client\Model\ShopListings
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\ShopListings getListingsByShopReturnPolicy($return_policy_id, $shop_id)
This endpoint is ready for production use.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Swagger\Client\Api\ShopListingApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$return_policy_id = 56; // int | The numeric ID of the [Return Policy](/documentation/reference#operation/getShopReturnPolicies).
$shop_id = 56; // int | The unique positive non-zero numeric ID for an Etsy Shop.
try {
$result = $apiInstance->getListingsByShopReturnPolicy($return_policy_id, $shop_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ShopListingApi->getListingsByShopReturnPolicy: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
return_policy_id | int | The numeric ID of the Return Policy. | |
shop_id | int | The unique positive non-zero numeric ID for an Etsy Shop. |
\Swagger\Client\Model\ShopListings
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\ShopListings getListingsByShopSectionId($shop_id, $shop_section_ids, $limit, $offset, $sort_on, $sort_order)
This endpoint is ready for production use.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
$apiInstance = new Swagger\Client\Api\ShopListingApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$shop_id = 56; // int | The unique positive non-zero numeric ID for an Etsy Shop.
$shop_section_ids = array(56); // int[] | A list of numeric IDS for all sections in a specific Etsy shop.
$limit = 25; // int | The maximum number of results to return.
$offset = 0; // int | The number of records to skip before selecting the first result.
$sort_on = "created"; // string | The value to sort a search result of listings on. NOTES: a) `sort_on` only works when combined with one of the search options (keywords, region, etc.). b) when using `score` the returned results will always be in _descending_ order, regardless of the `sort_order` parameter.
$sort_order = "desc"; // string | The ascending(up) or descending(down) order to sort listings by. NOTE: sort_order only works when combined with one of the search options (keywords, region, etc.).
try {
$result = $apiInstance->getListingsByShopSectionId($shop_id, $shop_section_ids, $limit, $offset, $sort_on, $sort_order);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ShopListingApi->getListingsByShopSectionId: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
shop_id | int | The unique positive non-zero numeric ID for an Etsy Shop. | |
shop_section_ids | int[] | A list of numeric IDS for all sections in a specific Etsy shop. | |
limit | int | The maximum number of results to return. | [optional] [default to 25] |
offset | int | The number of records to skip before selecting the first result. | [optional] [default to 0] |
sort_on | string | The value to sort a search result of listings on. NOTES: a) `sort_on` only works when combined with one of the search options (keywords, region, etc.). b) when using `score` the returned results will always be in descending order, regardless of the `sort_order` parameter. | [optional] [default to created] |
sort_order | string | The ascending(up) or descending(down) order to sort listings by. NOTE: sort_order only works when combined with one of the search options (keywords, region, etc.). | [optional] [default to desc] |
\Swagger\Client\Model\ShopListings
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\ShopListing updateListing($shop_id, $listing_id, $image_ids, $title, $description, $materials, $should_auto_renew, $shipping_profile_id, $return_policy_id, $shop_section_id, $item_weight, $item_length, $item_width, $item_height, $item_weight_unit, $item_dimensions_unit, $is_taxable, $taxonomy_id, $tags, $who_made, $when_made, $featured_rank, $is_personalizable, $personalization_is_required, $personalization_char_count_max, $personalization_instructions, $state, $is_supply, $production_partner_ids, $type)
This endpoint is ready for production use.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Swagger\Client\Api\ShopListingApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$shop_id = 56; // int | The unique positive non-zero numeric ID for an Etsy Shop.
$listing_id = 56; // int | The numeric ID for the [listing](/documentation/reference#tag/ShopListing) associated to this transaction.
$image_ids = array(56); // int[] |
$title = "title_example"; // string |
$description = "description_example"; // string |
$materials = array("materials_example"); // string[] |
$should_auto_renew = true; // bool |
$shipping_profile_id = 56; // int |
$return_policy_id = 56; // int |
$shop_section_id = 56; // int |
$item_weight = 3.4; // float |
$item_length = 3.4; // float |
$item_width = 3.4; // float |
$item_height = 3.4; // float |
$item_weight_unit = "item_weight_unit_example"; // string |
$item_dimensions_unit = "item_dimensions_unit_example"; // string |
$is_taxable = true; // bool |
$taxonomy_id = 56; // int |
$tags = array("tags_example"); // string[] |
$who_made = "who_made_example"; // string |
$when_made = "when_made_example"; // string |
$featured_rank = 56; // int |
$is_personalizable = true; // bool |
$personalization_is_required = true; // bool |
$personalization_char_count_max = 56; // int |
$personalization_instructions = "personalization_instructions_example"; // string |
$state = "state_example"; // string |
$is_supply = true; // bool |
$production_partner_ids = array(56); // int[] |
$type = "type_example"; // string |
try {
$result = $apiInstance->updateListing($shop_id, $listing_id, $image_ids, $title, $description, $materials, $should_auto_renew, $shipping_profile_id, $return_policy_id, $shop_section_id, $item_weight, $item_length, $item_width, $item_height, $item_weight_unit, $item_dimensions_unit, $is_taxable, $taxonomy_id, $tags, $who_made, $when_made, $featured_rank, $is_personalizable, $personalization_is_required, $personalization_char_count_max, $personalization_instructions, $state, $is_supply, $production_partner_ids, $type);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ShopListingApi->updateListing: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
shop_id | int | The unique positive non-zero numeric ID for an Etsy Shop. | |
listing_id | int | The numeric ID for the listing associated to this transaction. | |
image_ids | int[] | [optional] | |
title | string | [optional] | |
description | string | [optional] | |
materials | string[] | [optional] | |
should_auto_renew | bool | [optional] | |
shipping_profile_id | int | [optional] | |
return_policy_id | int | [optional] | |
shop_section_id | int | [optional] | |
item_weight | float | [optional] | |
item_length | float | [optional] | |
item_width | float | [optional] | |
item_height | float | [optional] | |
item_weight_unit | string | [optional] | |
item_dimensions_unit | string | [optional] | |
is_taxable | bool | [optional] | |
taxonomy_id | int | [optional] | |
tags | string[] | [optional] | |
who_made | string | [optional] | |
when_made | string | [optional] | |
featured_rank | int | [optional] | |
is_personalizable | bool | [optional] | |
personalization_is_required | bool | [optional] | |
personalization_char_count_max | int | [optional] | |
personalization_instructions | string | [optional] | |
state | string | [optional] | |
is_supply | bool | [optional] | |
production_partner_ids | int[] | [optional] | |
type | string | [optional] |
\Swagger\Client\Model\ShopListing
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\ShopListing updateListingDeprecated($shop_id, $listing_id, $image_ids, $title, $description, $materials, $should_auto_renew, $shipping_profile_id, $shop_section_id, $item_weight, $item_length, $item_width, $item_height, $item_weight_unit, $item_dimensions_unit, $is_taxable, $taxonomy_id, $tags, $who_made, $when_made, $featured_rank, $is_personalizable, $personalization_is_required, $personalization_char_count_max, $personalization_instructions, $state, $is_supply, $production_partner_ids, $type)
This endpoint is ready for production use.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Swagger\Client\Api\ShopListingApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$shop_id = 56; // int | The unique positive non-zero numeric ID for an Etsy Shop.
$listing_id = 56; // int | The numeric ID for the [listing](/documentation/reference#tag/ShopListing) associated to this transaction.
$image_ids = array(56); // int[] |
$title = "title_example"; // string |
$description = "description_example"; // string |
$materials = array("materials_example"); // string[] |
$should_auto_renew = true; // bool |
$shipping_profile_id = 56; // int |
$shop_section_id = 56; // int |
$item_weight = 3.4; // float |
$item_length = 3.4; // float |
$item_width = 3.4; // float |
$item_height = 3.4; // float |
$item_weight_unit = "item_weight_unit_example"; // string |
$item_dimensions_unit = "item_dimensions_unit_example"; // string |
$is_taxable = true; // bool |
$taxonomy_id = 56; // int |
$tags = array("tags_example"); // string[] |
$who_made = "who_made_example"; // string |
$when_made = "when_made_example"; // string |
$featured_rank = 56; // int |
$is_personalizable = true; // bool |
$personalization_is_required = true; // bool |
$personalization_char_count_max = 56; // int |
$personalization_instructions = "personalization_instructions_example"; // string |
$state = "state_example"; // string |
$is_supply = true; // bool |
$production_partner_ids = array(56); // int[] |
$type = "type_example"; // string |
try {
$result = $apiInstance->updateListingDeprecated($shop_id, $listing_id, $image_ids, $title, $description, $materials, $should_auto_renew, $shipping_profile_id, $shop_section_id, $item_weight, $item_length, $item_width, $item_height, $item_weight_unit, $item_dimensions_unit, $is_taxable, $taxonomy_id, $tags, $who_made, $when_made, $featured_rank, $is_personalizable, $personalization_is_required, $personalization_char_count_max, $personalization_instructions, $state, $is_supply, $production_partner_ids, $type);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ShopListingApi->updateListingDeprecated: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
shop_id | int | The unique positive non-zero numeric ID for an Etsy Shop. | |
listing_id | int | The numeric ID for the listing associated to this transaction. | |
image_ids | int[] | [optional] | |
title | string | [optional] | |
description | string | [optional] | |
materials | string[] | [optional] | |
should_auto_renew | bool | [optional] | |
shipping_profile_id | int | [optional] | |
shop_section_id | int | [optional] | |
item_weight | float | [optional] | |
item_length | float | [optional] | |
item_width | float | [optional] | |
item_height | float | [optional] | |
item_weight_unit | string | [optional] | |
item_dimensions_unit | string | [optional] | |
is_taxable | bool | [optional] | |
taxonomy_id | int | [optional] | |
tags | string[] | [optional] | |
who_made | string | [optional] | |
when_made | string | [optional] | |
featured_rank | int | [optional] | |
is_personalizable | bool | [optional] | |
personalization_is_required | bool | [optional] | |
personalization_char_count_max | int | [optional] | |
personalization_instructions | string | [optional] | |
state | string | [optional] | |
is_supply | bool | [optional] | |
production_partner_ids | int[] | [optional] | |
type | string | [optional] |
\Swagger\Client\Model\ShopListing
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\ListingPropertyValue updateListingProperty($shop_id, $listing_id, $property_id, $value_ids, $values, $scale_id)
This endpoint is ready for production use.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Swagger\Client\Api\ShopListingApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$shop_id = 56; // int | The unique positive non-zero numeric ID for an Etsy Shop.
$listing_id = 56; // int | The numeric ID for the [listing](/documentation/reference#tag/ShopListing) associated to this transaction.
$property_id = 56; // int | The unique ID of an Etsy [listing property](/documentation/reference#operation/getListingProperties).
$value_ids = array(56); // int[] |
$values = array("values_example"); // string[] |
$scale_id = 56; // int |
try {
$result = $apiInstance->updateListingProperty($shop_id, $listing_id, $property_id, $value_ids, $values, $scale_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ShopListingApi->updateListingProperty: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
shop_id | int | The unique positive non-zero numeric ID for an Etsy Shop. | |
listing_id | int | The numeric ID for the listing associated to this transaction. | |
property_id | int | The unique ID of an Etsy listing property. | |
value_ids | int[] | [optional] | |
values | string[] | [optional] | |
scale_id | int | [optional] |
\Swagger\Client\Model\ListingPropertyValue
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]