All URIs are relative to https://openapi.etsy.com
Method | HTTP request | Description |
---|---|---|
createShopShippingProfile | POST /v3/application/shops/{shop_id}/shipping-profiles | |
createShopShippingProfileDestination | POST /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/destinations | |
createShopShippingProfileUpgrade | POST /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/upgrades | |
deleteShopShippingProfile | DELETE /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id} | |
deleteShopShippingProfileDestination | DELETE /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/destinations/{shipping_profile_destination_id} | |
deleteShopShippingProfileUpgrade | DELETE /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/upgrades/{upgrade_id} | |
getShippingCarriers | GET /v3/application/shipping-carriers | |
getShopShippingProfile | GET /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id} | |
getShopShippingProfileDestinationsByShippingProfile | GET /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/destinations | |
getShopShippingProfileUpgrades | GET /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/upgrades | |
getShopShippingProfiles | GET /v3/application/shops/{shop_id}/shipping-profiles | |
updateShopShippingProfile | PUT /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id} | |
updateShopShippingProfileDestination | PUT /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/destinations/{shipping_profile_destination_id} | |
updateShopShippingProfileUpgrade | PUT /v3/application/shops/{shop_id}/shipping-profiles/{shipping_profile_id}/upgrades/{upgrade_id} |
\Swagger\Client\Model\ShopShippingProfile createShopShippingProfile($shop_id, $title, $origin_country_iso, $primary_cost, $secondary_cost, $min_processing_time, $max_processing_time, $processing_time_unit, $destination_country_iso, $destination_region, $origin_postal_code, $shipping_carrier_id, $mail_class, $min_delivery_days, $max_delivery_days)
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\ShopShippingProfileApi(
// 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.
$title = "title_example"; // string |
$origin_country_iso = "origin_country_iso_example"; // string |
$primary_cost = 3.4; // float |
$secondary_cost = 3.4; // float |
$min_processing_time = 56; // int |
$max_processing_time = 56; // int |
$processing_time_unit = "processing_time_unit_example"; // string |
$destination_country_iso = "destination_country_iso_example"; // string |
$destination_region = "destination_region_example"; // string |
$origin_postal_code = "origin_postal_code_example"; // string |
$shipping_carrier_id = 56; // int |
$mail_class = "mail_class_example"; // string |
$min_delivery_days = 56; // int |
$max_delivery_days = 56; // int |
try {
$result = $apiInstance->createShopShippingProfile($shop_id, $title, $origin_country_iso, $primary_cost, $secondary_cost, $min_processing_time, $max_processing_time, $processing_time_unit, $destination_country_iso, $destination_region, $origin_postal_code, $shipping_carrier_id, $mail_class, $min_delivery_days, $max_delivery_days);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ShopShippingProfileApi->createShopShippingProfile: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
shop_id | int | The unique positive non-zero numeric ID for an Etsy Shop. | |
title | string | [optional] | |
origin_country_iso | string | [optional] | |
primary_cost | float | [optional] | |
secondary_cost | float | [optional] | |
min_processing_time | int | [optional] | |
max_processing_time | int | [optional] | |
processing_time_unit | string | [optional] | |
destination_country_iso | string | [optional] | |
destination_region | string | [optional] | |
origin_postal_code | string | [optional] | |
shipping_carrier_id | int | [optional] | |
mail_class | string | [optional] | |
min_delivery_days | int | [optional] | |
max_delivery_days | int | [optional] |
\Swagger\Client\Model\ShopShippingProfile
- 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\ShopShippingProfileDestination createShopShippingProfileDestination($shop_id, $shipping_profile_id, $primary_cost, $secondary_cost, $destination_country_iso, $destination_region, $shipping_carrier_id, $mail_class, $min_delivery_days, $max_delivery_days)
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\ShopShippingProfileApi(
// 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.
$shipping_profile_id = 56; // int | The numeric ID of the [shipping profile](/documentation/reference#operation/getShopShippingProfile) associated with the listing. Required when listing type is `physical`.
$primary_cost = 3.4; // float |
$secondary_cost = 3.4; // float |
$destination_country_iso = "destination_country_iso_example"; // string |
$destination_region = "destination_region_example"; // string |
$shipping_carrier_id = 56; // int |
$mail_class = "mail_class_example"; // string |
$min_delivery_days = 56; // int |
$max_delivery_days = 56; // int |
try {
$result = $apiInstance->createShopShippingProfileDestination($shop_id, $shipping_profile_id, $primary_cost, $secondary_cost, $destination_country_iso, $destination_region, $shipping_carrier_id, $mail_class, $min_delivery_days, $max_delivery_days);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ShopShippingProfileApi->createShopShippingProfileDestination: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
shop_id | int | The unique positive non-zero numeric ID for an Etsy Shop. | |
shipping_profile_id | int | The numeric ID of the shipping profile associated with the listing. Required when listing type is `physical`. | |
primary_cost | float | [optional] | |
secondary_cost | float | [optional] | |
destination_country_iso | string | [optional] | |
destination_region | string | [optional] | |
shipping_carrier_id | int | [optional] | |
mail_class | string | [optional] | |
min_delivery_days | int | [optional] | |
max_delivery_days | int | [optional] |
\Swagger\Client\Model\ShopShippingProfileDestination
- 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\ShopShippingProfileUpgrade createShopShippingProfileUpgrade($shop_id, $shipping_profile_id, $type, $upgrade_name, $price, $secondary_price, $shipping_carrier_id, $mail_class, $min_delivery_days, $max_delivery_days)
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\ShopShippingProfileApi(
// 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.
$shipping_profile_id = 56; // int | The numeric ID of the [shipping profile](/documentation/reference#operation/getShopShippingProfile) associated with the listing. Required when listing type is `physical`.
$type = "type_example"; // string |
$upgrade_name = "upgrade_name_example"; // string |
$price = 3.4; // float |
$secondary_price = 3.4; // float |
$shipping_carrier_id = 56; // int |
$mail_class = "mail_class_example"; // string |
$min_delivery_days = 56; // int |
$max_delivery_days = 56; // int |
try {
$result = $apiInstance->createShopShippingProfileUpgrade($shop_id, $shipping_profile_id, $type, $upgrade_name, $price, $secondary_price, $shipping_carrier_id, $mail_class, $min_delivery_days, $max_delivery_days);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ShopShippingProfileApi->createShopShippingProfileUpgrade: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
shop_id | int | The unique positive non-zero numeric ID for an Etsy Shop. | |
shipping_profile_id | int | The numeric ID of the shipping profile associated with the listing. Required when listing type is `physical`. | |
type | string | [optional] | |
upgrade_name | string | [optional] | |
price | float | [optional] | |
secondary_price | float | [optional] | |
shipping_carrier_id | int | [optional] | |
mail_class | string | [optional] | |
min_delivery_days | int | [optional] | |
max_delivery_days | int | [optional] |
\Swagger\Client\Model\ShopShippingProfileUpgrade
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteShopShippingProfile($shop_id, $shipping_profile_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\ShopShippingProfileApi(
// 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.
$shipping_profile_id = 56; // int | The numeric ID of the [shipping profile](/documentation/reference#operation/getShopShippingProfile) associated with the listing. Required when listing type is `physical`.
try {
$apiInstance->deleteShopShippingProfile($shop_id, $shipping_profile_id);
} catch (Exception $e) {
echo 'Exception when calling ShopShippingProfileApi->deleteShopShippingProfile: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
shop_id | int | The unique positive non-zero numeric ID for an Etsy Shop. | |
shipping_profile_id | int | The numeric ID of the shipping profile associated with the listing. Required when listing type is `physical`. |
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]
deleteShopShippingProfileDestination($shop_id, $shipping_profile_id, $shipping_profile_destination_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\ShopShippingProfileApi(
// 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.
$shipping_profile_id = 56; // int | The numeric ID of the [shipping profile](/documentation/reference#operation/getShopShippingProfile) associated with the listing. Required when listing type is `physical`.
$shipping_profile_destination_id = 56; // int | The numeric ID of the shipping profile destination in the [shipping profile](/documentation/reference#tag/Shop-ShippingProfile) associated with the listing.
try {
$apiInstance->deleteShopShippingProfileDestination($shop_id, $shipping_profile_id, $shipping_profile_destination_id);
} catch (Exception $e) {
echo 'Exception when calling ShopShippingProfileApi->deleteShopShippingProfileDestination: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
shop_id | int | The unique positive non-zero numeric ID for an Etsy Shop. | |
shipping_profile_id | int | The numeric ID of the shipping profile associated with the listing. Required when listing type is `physical`. | |
shipping_profile_destination_id | int | The numeric ID of the shipping profile destination in the shipping profile associated with the listing. |
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]
deleteShopShippingProfileUpgrade($shop_id, $shipping_profile_id, $upgrade_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\ShopShippingProfileApi(
// 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.
$shipping_profile_id = 56; // int | The numeric ID of the shipping profile.
$upgrade_id = 56; // int | The numeric ID that is associated with a shipping upgrade
try {
$apiInstance->deleteShopShippingProfileUpgrade($shop_id, $shipping_profile_id, $upgrade_id);
} catch (Exception $e) {
echo 'Exception when calling ShopShippingProfileApi->deleteShopShippingProfileUpgrade: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
shop_id | int | The unique positive non-zero numeric ID for an Etsy Shop. | |
shipping_profile_id | int | The numeric ID of the shipping profile. | |
upgrade_id | int | The numeric ID that is associated with a shipping upgrade |
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\ShippingCarriers getShippingCarriers($origin_country_iso)
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\ShopShippingProfileApi(
// 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
);
$origin_country_iso = "origin_country_iso_example"; // string | The ISO code of the country from which the listing ships.
try {
$result = $apiInstance->getShippingCarriers($origin_country_iso);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ShopShippingProfileApi->getShippingCarriers: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
origin_country_iso | string | The ISO code of the country from which the listing ships. |
\Swagger\Client\Model\ShippingCarriers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\ShopShippingProfile getShopShippingProfile($shop_id, $shipping_profile_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\ShopShippingProfileApi(
// 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.
$shipping_profile_id = 56; // int | The numeric ID of the [shipping profile](/documentation/reference#operation/getShopShippingProfile) associated with the listing. Required when listing type is `physical`.
try {
$result = $apiInstance->getShopShippingProfile($shop_id, $shipping_profile_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ShopShippingProfileApi->getShopShippingProfile: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
shop_id | int | The unique positive non-zero numeric ID for an Etsy Shop. | |
shipping_profile_id | int | The numeric ID of the shipping profile associated with the listing. Required when listing type is `physical`. |
\Swagger\Client\Model\ShopShippingProfile
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\ShopShippingProfileDestinations getShopShippingProfileDestinationsByShippingProfile($shop_id, $shipping_profile_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\ShopShippingProfileApi(
// 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.
$shipping_profile_id = 56; // int | The numeric ID of the [shipping profile](/documentation/reference#operation/getShopShippingProfile) associated with the listing. Required when listing type is `physical`.
$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->getShopShippingProfileDestinationsByShippingProfile($shop_id, $shipping_profile_id, $limit, $offset);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ShopShippingProfileApi->getShopShippingProfileDestinationsByShippingProfile: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
shop_id | int | The unique positive non-zero numeric ID for an Etsy Shop. | |
shipping_profile_id | int | The numeric ID of the shipping profile associated with the listing. Required when listing type is `physical`. | |
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\ShopShippingProfileDestinations
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\ShopShippingProfileUpgrades getShopShippingProfileUpgrades($shop_id, $shipping_profile_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\ShopShippingProfileApi(
// 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.
$shipping_profile_id = 56; // int | The numeric ID of the [shipping profile](/documentation/reference#operation/getShopShippingProfile) associated with the listing. Required when listing type is `physical`.
try {
$result = $apiInstance->getShopShippingProfileUpgrades($shop_id, $shipping_profile_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ShopShippingProfileApi->getShopShippingProfileUpgrades: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
shop_id | int | The unique positive non-zero numeric ID for an Etsy Shop. | |
shipping_profile_id | int | The numeric ID of the shipping profile associated with the listing. Required when listing type is `physical`. |
\Swagger\Client\Model\ShopShippingProfileUpgrades
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\ShopShippingProfiles getShopShippingProfiles($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\ShopShippingProfileApi(
// 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.
try {
$result = $apiInstance->getShopShippingProfiles($shop_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ShopShippingProfileApi->getShopShippingProfiles: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
shop_id | int | The unique positive non-zero numeric ID for an Etsy Shop. |
\Swagger\Client\Model\ShopShippingProfiles
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\ShopShippingProfile updateShopShippingProfile($shop_id, $shipping_profile_id, $title, $origin_country_iso, $min_processing_time, $max_processing_time, $processing_time_unit, $origin_postal_code)
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\ShopShippingProfileApi(
// 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.
$shipping_profile_id = 56; // int | The numeric ID of the [shipping profile](/documentation/reference#operation/getShopShippingProfile) associated with the listing. Required when listing type is `physical`.
$title = "title_example"; // string |
$origin_country_iso = "origin_country_iso_example"; // string |
$min_processing_time = 56; // int |
$max_processing_time = 56; // int |
$processing_time_unit = "processing_time_unit_example"; // string |
$origin_postal_code = "origin_postal_code_example"; // string |
try {
$result = $apiInstance->updateShopShippingProfile($shop_id, $shipping_profile_id, $title, $origin_country_iso, $min_processing_time, $max_processing_time, $processing_time_unit, $origin_postal_code);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ShopShippingProfileApi->updateShopShippingProfile: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
shop_id | int | The unique positive non-zero numeric ID for an Etsy Shop. | |
shipping_profile_id | int | The numeric ID of the shipping profile associated with the listing. Required when listing type is `physical`. | |
title | string | [optional] | |
origin_country_iso | string | [optional] | |
min_processing_time | int | [optional] | |
max_processing_time | int | [optional] | |
processing_time_unit | string | [optional] | |
origin_postal_code | string | [optional] |
\Swagger\Client\Model\ShopShippingProfile
- 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\ShopShippingProfileDestination updateShopShippingProfileDestination($shop_id, $shipping_profile_id, $shipping_profile_destination_id, $primary_cost, $secondary_cost, $destination_country_iso, $destination_region, $shipping_carrier_id, $mail_class, $min_delivery_days, $max_delivery_days)
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\ShopShippingProfileApi(
// 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.
$shipping_profile_id = 56; // int | The numeric ID of the [shipping profile](/documentation/reference#operation/getShopShippingProfile) associated with the listing. Required when listing type is `physical`.
$shipping_profile_destination_id = 56; // int | The numeric ID of the shipping profile destination in the [shipping profile](/documentation/reference#tag/Shop-ShippingProfile) associated with the listing.
$primary_cost = 3.4; // float |
$secondary_cost = 3.4; // float |
$destination_country_iso = "destination_country_iso_example"; // string |
$destination_region = "destination_region_example"; // string |
$shipping_carrier_id = 56; // int |
$mail_class = "mail_class_example"; // string |
$min_delivery_days = 56; // int |
$max_delivery_days = 56; // int |
try {
$result = $apiInstance->updateShopShippingProfileDestination($shop_id, $shipping_profile_id, $shipping_profile_destination_id, $primary_cost, $secondary_cost, $destination_country_iso, $destination_region, $shipping_carrier_id, $mail_class, $min_delivery_days, $max_delivery_days);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ShopShippingProfileApi->updateShopShippingProfileDestination: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
shop_id | int | The unique positive non-zero numeric ID for an Etsy Shop. | |
shipping_profile_id | int | The numeric ID of the shipping profile associated with the listing. Required when listing type is `physical`. | |
shipping_profile_destination_id | int | The numeric ID of the shipping profile destination in the shipping profile associated with the listing. | |
primary_cost | float | [optional] | |
secondary_cost | float | [optional] | |
destination_country_iso | string | [optional] | |
destination_region | string | [optional] | |
shipping_carrier_id | int | [optional] | |
mail_class | string | [optional] | |
min_delivery_days | int | [optional] | |
max_delivery_days | int | [optional] |
\Swagger\Client\Model\ShopShippingProfileDestination
- 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\ShopShippingProfileUpgrade updateShopShippingProfileUpgrade($shop_id, $shipping_profile_id, $upgrade_id, $upgrade_name, $type, $price, $secondary_price, $shipping_carrier_id, $mail_class, $min_delivery_days, $max_delivery_days)
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\ShopShippingProfileApi(
// 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.
$shipping_profile_id = 56; // int | The numeric ID of the [shipping profile](/documentation/reference#operation/getShopShippingProfile) associated with the listing. Required when listing type is `physical`.
$upgrade_id = 56; // int | The numeric ID that is associated with a shipping upgrade
$upgrade_name = "upgrade_name_example"; // string |
$type = "type_example"; // string |
$price = 3.4; // float |
$secondary_price = 3.4; // float |
$shipping_carrier_id = 56; // int |
$mail_class = "mail_class_example"; // string |
$min_delivery_days = 56; // int |
$max_delivery_days = 56; // int |
try {
$result = $apiInstance->updateShopShippingProfileUpgrade($shop_id, $shipping_profile_id, $upgrade_id, $upgrade_name, $type, $price, $secondary_price, $shipping_carrier_id, $mail_class, $min_delivery_days, $max_delivery_days);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ShopShippingProfileApi->updateShopShippingProfileUpgrade: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
shop_id | int | The unique positive non-zero numeric ID for an Etsy Shop. | |
shipping_profile_id | int | The numeric ID of the shipping profile associated with the listing. Required when listing type is `physical`. | |
upgrade_id | int | The numeric ID that is associated with a shipping upgrade | |
upgrade_name | string | [optional] | |
type | string | [optional] | |
price | float | [optional] | |
secondary_price | float | [optional] | |
shipping_carrier_id | int | [optional] | |
mail_class | string | [optional] | |
min_delivery_days | int | [optional] | |
max_delivery_days | int | [optional] |
\Swagger\Client\Model\ShopShippingProfileUpgrade
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]