All URIs are relative to https://openapi.etsy.com
| Method | HTTP request | Description |
|---|---|---|
| consolidate_shop_return_policies | POST /v3/application/shops/{shop_id}/policies/return/consolidate | |
| create_shop_return_policy | POST /v3/application/shops/{shop_id}/policies/return | |
| delete_shop_return_policy | DELETE /v3/application/shops/{shop_id}/policies/return/{return_policy_id} | |
| get_shop_return_policies | GET /v3/application/shops/{shop_id}/policies/return | |
| get_shop_return_policy | GET /v3/application/shops/{shop_id}/policies/return/{return_policy_id} | |
| update_shop_return_policy | PUT /v3/application/shops/{shop_id}/policies/return/{return_policy_id} |
consolidate_shop_return_policies(shop_id, source_return_policy_id, destination_return_policy_id)
This endpoint is ready to use as defined below. Changes may occur before launch, but we received satisfactory feedback on the interface and don’t expect any breaking changes.
require 'time'
require 'etsy_api'
# setup authorization
EtsyApi.configure do |config|
# Configure API key authorization: api_key
config.api_key['api_key'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
# config.api_key_prefix['api_key'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
config.access_token = 'YOUR ACCESS TOKEN'
end
api_instance = EtsyApi::ShopReturnPolicyApi.new
shop_id = 56 # Integer | The unique positive non-zero numeric ID for an Etsy Shop.
source_return_policy_id = 56 # Integer | The numeric ID of the Return Policy.
destination_return_policy_id = 56 # Integer | The numeric ID of the Return Policy.
begin
result = api_instance.consolidate_shop_return_policies(shop_id, source_return_policy_id, destination_return_policy_id)
p result
rescue EtsyApi::ApiError => e
puts "Error when calling ShopReturnPolicyApi->consolidate_shop_return_policies: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> consolidate_shop_return_policies_with_http_info(shop_id, source_return_policy_id, destination_return_policy_id)
begin
data, status_code, headers = api_instance.consolidate_shop_return_policies_with_http_info(shop_id, source_return_policy_id, destination_return_policy_id)
p status_code # => 2xx
p headers # => { ... }
p data # => <ShopReturnPolicy>
rescue EtsyApi::ApiError => e
puts "Error when calling ShopReturnPolicyApi->consolidate_shop_return_policies_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| shop_id | Integer | The unique positive non-zero numeric ID for an Etsy Shop. | |
| source_return_policy_id | Integer | The numeric ID of the Return Policy. | |
| destination_return_policy_id | Integer | The numeric ID of the Return Policy. |
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
create_shop_return_policy(shop_id, accepts_returns, accepts_exchanges, opts)
This endpoint is ready to use as defined below. Changes may occur before launch, but we received satisfactory feedback on the interface and don’t expect any breaking changes.
require 'time'
require 'etsy_api'
# setup authorization
EtsyApi.configure do |config|
# Configure API key authorization: api_key
config.api_key['api_key'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
# config.api_key_prefix['api_key'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
config.access_token = 'YOUR ACCESS TOKEN'
end
api_instance = EtsyApi::ShopReturnPolicyApi.new
shop_id = 56 # Integer | The unique positive non-zero numeric ID for an Etsy Shop.
accepts_returns = true # Boolean |
accepts_exchanges = true # Boolean |
opts = {
return_deadline: 56 # Integer | The deadline for the Return Policy, measured in days. The value must be one of the following: [7, 14, 21, 30, 45, 60, 90].
}
begin
result = api_instance.create_shop_return_policy(shop_id, accepts_returns, accepts_exchanges, opts)
p result
rescue EtsyApi::ApiError => e
puts "Error when calling ShopReturnPolicyApi->create_shop_return_policy: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> create_shop_return_policy_with_http_info(shop_id, accepts_returns, accepts_exchanges, opts)
begin
data, status_code, headers = api_instance.create_shop_return_policy_with_http_info(shop_id, accepts_returns, accepts_exchanges, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <ShopReturnPolicy>
rescue EtsyApi::ApiError => e
puts "Error when calling ShopReturnPolicyApi->create_shop_return_policy_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| shop_id | Integer | The unique positive non-zero numeric ID for an Etsy Shop. | |
| accepts_returns | Boolean | ||
| accepts_exchanges | Boolean | ||
| return_deadline | Integer | The deadline for the Return Policy, measured in days. The value must be one of the following: [7, 14, 21, 30, 45, 60, 90]. | [optional] |
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
delete_shop_return_policy(shop_id, return_policy_id)
This endpoint is ready to use as defined below. Changes may occur before launch, but we received satisfactory feedback on the interface and don’t expect any breaking changes.
require 'time'
require 'etsy_api'
# setup authorization
EtsyApi.configure do |config|
# Configure API key authorization: api_key
config.api_key['api_key'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
# config.api_key_prefix['api_key'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
config.access_token = 'YOUR ACCESS TOKEN'
end
api_instance = EtsyApi::ShopReturnPolicyApi.new
shop_id = 56 # Integer | The unique positive non-zero numeric ID for an Etsy Shop.
return_policy_id = 56 # Integer | The numeric ID of the Return Policy.
begin
api_instance.delete_shop_return_policy(shop_id, return_policy_id)
rescue EtsyApi::ApiError => e
puts "Error when calling ShopReturnPolicyApi->delete_shop_return_policy: #{e}"
endThis returns an Array which contains the response data (nil in this case), status code and headers.
<Array(nil, Integer, Hash)> delete_shop_return_policy_with_http_info(shop_id, return_policy_id)
begin
data, status_code, headers = api_instance.delete_shop_return_policy_with_http_info(shop_id, return_policy_id)
p status_code # => 2xx
p headers # => { ... }
p data # => nil
rescue EtsyApi::ApiError => e
puts "Error when calling ShopReturnPolicyApi->delete_shop_return_policy_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| shop_id | Integer | The unique positive non-zero numeric ID for an Etsy Shop. | |
| return_policy_id | Integer | The numeric ID of the Return Policy. |
nil (empty response body)
- Content-Type: Not defined
- Accept: application/json
get_shop_return_policies(shop_id)
This endpoint is ready to use as defined below. Changes may occur before launch, but we received satisfactory feedback on the interface and don’t expect any breaking changes.
require 'time'
require 'etsy_api'
# setup authorization
EtsyApi.configure do |config|
# Configure API key authorization: api_key
config.api_key['api_key'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
# config.api_key_prefix['api_key'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
config.access_token = 'YOUR ACCESS TOKEN'
end
api_instance = EtsyApi::ShopReturnPolicyApi.new
shop_id = 56 # Integer | The unique positive non-zero numeric ID for an Etsy Shop.
begin
result = api_instance.get_shop_return_policies(shop_id)
p result
rescue EtsyApi::ApiError => e
puts "Error when calling ShopReturnPolicyApi->get_shop_return_policies: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_shop_return_policies_with_http_info(shop_id)
begin
data, status_code, headers = api_instance.get_shop_return_policies_with_http_info(shop_id)
p status_code # => 2xx
p headers # => { ... }
p data # => <ShopReturnPolicies>
rescue EtsyApi::ApiError => e
puts "Error when calling ShopReturnPolicyApi->get_shop_return_policies_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| shop_id | Integer | The unique positive non-zero numeric ID for an Etsy Shop. |
- Content-Type: Not defined
- Accept: application/json
get_shop_return_policy(shop_id, return_policy_id)
This endpoint is ready to use as defined below. Changes may occur before launch, but we received satisfactory feedback on the interface and don’t expect any breaking changes.
require 'time'
require 'etsy_api'
# setup authorization
EtsyApi.configure do |config|
# Configure API key authorization: api_key
config.api_key['api_key'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
# config.api_key_prefix['api_key'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
config.access_token = 'YOUR ACCESS TOKEN'
end
api_instance = EtsyApi::ShopReturnPolicyApi.new
shop_id = 56 # Integer | The unique positive non-zero numeric ID for an Etsy Shop.
return_policy_id = 56 # Integer | The numeric ID of the Return Policy.
begin
result = api_instance.get_shop_return_policy(shop_id, return_policy_id)
p result
rescue EtsyApi::ApiError => e
puts "Error when calling ShopReturnPolicyApi->get_shop_return_policy: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_shop_return_policy_with_http_info(shop_id, return_policy_id)
begin
data, status_code, headers = api_instance.get_shop_return_policy_with_http_info(shop_id, return_policy_id)
p status_code # => 2xx
p headers # => { ... }
p data # => <ShopReturnPolicy>
rescue EtsyApi::ApiError => e
puts "Error when calling ShopReturnPolicyApi->get_shop_return_policy_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| shop_id | Integer | The unique positive non-zero numeric ID for an Etsy Shop. | |
| return_policy_id | Integer | The numeric ID of the Return Policy. |
- Content-Type: Not defined
- Accept: application/json
update_shop_return_policy(shop_id, return_policy_id, accepts_returns, accepts_exchanges, return_deadline)
This endpoint is ready to use as defined below. Changes may occur before launch, but we received satisfactory feedback on the interface and don’t expect any breaking changes.
require 'time'
require 'etsy_api'
# setup authorization
EtsyApi.configure do |config|
# Configure API key authorization: api_key
config.api_key['api_key'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
# config.api_key_prefix['api_key'] = 'Bearer'
# Configure OAuth2 access token for authorization: oauth2
config.access_token = 'YOUR ACCESS TOKEN'
end
api_instance = EtsyApi::ShopReturnPolicyApi.new
shop_id = 56 # Integer | The unique positive non-zero numeric ID for an Etsy Shop.
return_policy_id = 56 # Integer | The numeric ID of the Return Policy.
accepts_returns = true # Boolean |
accepts_exchanges = true # Boolean |
return_deadline = 56 # Integer | The deadline for the Return Policy, measured in days. The value must be one of the following: [7, 14, 21, 30, 45, 60, 90].
begin
result = api_instance.update_shop_return_policy(shop_id, return_policy_id, accepts_returns, accepts_exchanges, return_deadline)
p result
rescue EtsyApi::ApiError => e
puts "Error when calling ShopReturnPolicyApi->update_shop_return_policy: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> update_shop_return_policy_with_http_info(shop_id, return_policy_id, accepts_returns, accepts_exchanges, return_deadline)
begin
data, status_code, headers = api_instance.update_shop_return_policy_with_http_info(shop_id, return_policy_id, accepts_returns, accepts_exchanges, return_deadline)
p status_code # => 2xx
p headers # => { ... }
p data # => <ShopReturnPolicy>
rescue EtsyApi::ApiError => e
puts "Error when calling ShopReturnPolicyApi->update_shop_return_policy_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| shop_id | Integer | The unique positive non-zero numeric ID for an Etsy Shop. | |
| return_policy_id | Integer | The numeric ID of the Return Policy. | |
| accepts_returns | Boolean | ||
| accepts_exchanges | Boolean | ||
| return_deadline | Integer | The deadline for the Return Policy, measured in days. The value must be one of the following: [7, 14, 21, 30, 45, 60, 90]. |
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json