All URIs are relative to https://openapi.etsy.com
| Method | HTTP request | Description |
|---|---|---|
| createShopReadinessStateDefinition | POST /v3/application/shops/{shop_id}/readiness-state-definitions | |
| deleteShopReadinessStateDefinition | DELETE /v3/application/shops/{shop_id}/readiness-state-definitions/{readiness_state_definition_id} | |
| getShopReadinessStateDefinition | GET /v3/application/shops/{shop_id}/readiness-state-definitions/{readiness_state_definition_id} | |
| getShopReadinessStateDefinitions | GET /v3/application/shops/{shop_id}/readiness-state-definitions | |
| updateShopReadinessStateDefinition | PUT /v3/application/shops/{shop_id}/readiness-state-definitions/{readiness_state_definition_id} |
ShopProcessingProfile createShopReadinessStateDefinition(shopId, readinessState, minProcessingTime, maxProcessingTime, processingTimeUnit)
<div class=\"wt-display-flex-xs wt-align-items-center wt-mt-xs-2 wt-mb-xs-3\"><span class=\"wt-badge wt-badge–notificationPrimary wt-bg-slime-tint wt-mr-xs-2\">General Release</span><a class=\"wt-text-link\" href=\"https://github.com/etsy/open-api/discussions\" target=\"_blank\" rel=\"noopener noreferrer\">Report bug</a></div><div class=\"wt-display-flex-xs wt-align-items-center wt-mt-xs-2 wt-mb-xs-3\"><p class=\"wt-text-body-01 banner-text\">This endpoint is ready for production use.</p></div> Creates a new ReadinessStateDefinition. If an existing definition matches the input values, this endpoint will throw a Conflict error, please refer to the Content-Location header to obtain the get endpoint url for the values of the existing definition. Does not affect the product offering-readiness states definition relationship.
// Import classes:
//import com.etsy.infrastructure.*
//import com.etsy.models.*
val apiInstance = ShopProcessingProfilesApi()
val shopId : kotlin.Long = 789 // kotlin.Long | The unique positive non-zero numeric ID for an Etsy Shop.
val readinessState : kotlin.String = readinessState_example // kotlin.String | The readiness state of a product: \\\\\\\"1\\\\\\\" means \\\\\\\"ready_to_ship\\\\\\\", and \\\\\\\"2\\\\\\\" means \\\\\\\"made_to_order\\\\\\\"
val minProcessingTime : kotlin.Int = 56 // kotlin.Int | The minimum number of days or weeks for processing a specific product.
val maxProcessingTime : kotlin.Int = 56 // kotlin.Int | The maximum number of days or weeks for processing a specific product.
val processingTimeUnit : kotlin.String = processingTimeUnit_example // kotlin.String | The unit used to represent how long a processing time is. A week is equivalent to how many days the seller works per week as stated in their processing schedule. If none is provided, the unit is set to \\\\\\\"days\\\\\\\".
try {
val result : ShopProcessingProfile = apiInstance.createShopReadinessStateDefinition(shopId, readinessState, minProcessingTime, maxProcessingTime, processingTimeUnit)
println(result)
} catch (e: ClientException) {
println("4xx response calling ShopProcessingProfilesApi#createShopReadinessStateDefinition")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ShopProcessingProfilesApi#createShopReadinessStateDefinition")
e.printStackTrace()
}
| shopId | kotlin.Long| The unique positive non-zero numeric ID for an Etsy Shop. | | | readinessState | kotlin.String| The readiness state of a product: \\\\"1\\\\" means \\\\"ready_to_ship\\\\", and \\\\"2\\\\" means \\\\"made_to_order\\\\" | [enum: ready_to_ship, made_to_order] | | minProcessingTime | kotlin.Int| The minimum number of days or weeks for processing a specific product. | | | maxProcessingTime | kotlin.Int| The maximum number of days or weeks for processing a specific product. | | | Name | Type | Description | Notes | | ————- | ————- | ————- | ————- | | processingTimeUnit | kotlin.String| The unit used to represent how long a processing time is. A week is equivalent to how many days the seller works per week as stated in their processing schedule. If none is provided, the unit is set to \\\\"days\\\\". | [optional] [default to days] [enum: days, weeks] |
Configure api_key: ApiClient.apiKey[“x-api-key”] = “” ApiClient.apiKeyPrefix[“x-api-key”] = “” Configure oauth2: ApiClient.accessToken = “”
deleteShopReadinessStateDefinition(shopId, readinessStateDefinitionId)
<div class=\"wt-display-flex-xs wt-align-items-center wt-mt-xs-2 wt-mb-xs-3\"><span class=\"wt-badge wt-badge–notificationPrimary wt-bg-slime-tint wt-mr-xs-2\">General Release</span><a class=\"wt-text-link\" href=\"https://github.com/etsy/open-api/discussions\" target=\"_blank\" rel=\"noopener noreferrer\">Report bug</a></div><div class=\"wt-display-flex-xs wt-align-items-center wt-mt-xs-2 wt-mb-xs-3\"><p class=\"wt-text-body-01 banner-text\">This endpoint is ready for production use.</p></div> Deletes a ReadinessStateDefinition by given readiness state definition ID. If there any active offerings linked to the definition, this endpoint will throw a Bad Request error. If you want to delete a ReadinessStateDefinition that is linked to active offerings, you must link the offerings to a different readiness state definition.
// Import classes:
//import com.etsy.infrastructure.*
//import com.etsy.models.*
val apiInstance = ShopProcessingProfilesApi()
val shopId : kotlin.Long = 789 // kotlin.Long | The unique positive non-zero numeric ID for an Etsy Shop.
val readinessStateDefinitionId : kotlin.Long = 789 // kotlin.Long | The numeric ID of the [processing profile](/documentation/reference#operation/getShopReadinessStateDefinition) associated with the listing. Required when listing type is `physical`.
try {
apiInstance.deleteShopReadinessStateDefinition(shopId, readinessStateDefinitionId)
} catch (e: ClientException) {
println("4xx response calling ShopProcessingProfilesApi#deleteShopReadinessStateDefinition")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ShopProcessingProfilesApi#deleteShopReadinessStateDefinition")
e.printStackTrace()
}
| shopId | kotlin.Long| The unique positive non-zero numeric ID for an Etsy Shop. | | | Name | Type | Description | Notes | | ————- | ————- | ————- | ————- | | readinessStateDefinitionId | kotlin.Long| The numeric ID of the processing profile associated with the listing. Required when listing type is `physical`. | |
null (empty response body)
Configure api_key: ApiClient.apiKey[“x-api-key”] = “” ApiClient.apiKeyPrefix[“x-api-key”] = “” Configure oauth2: ApiClient.accessToken = “”
ShopProcessingProfile getShopReadinessStateDefinition(shopId, readinessStateDefinitionId)
<div class=\"wt-display-flex-xs wt-align-items-center wt-mt-xs-2 wt-mb-xs-3\"><span class=\"wt-badge wt-badge–notificationPrimary wt-bg-slime-tint wt-mr-xs-2\">General Release</span><a class=\"wt-text-link\" href=\"https://github.com/etsy/open-api/discussions\" target=\"_blank\" rel=\"noopener noreferrer\">Report bug</a></div><div class=\"wt-display-flex-xs wt-align-items-center wt-mt-xs-2 wt-mb-xs-3\"><p class=\"wt-text-body-01 banner-text\">This endpoint is ready for production use.</p></div> Retrieves a ProcessingProfile referenced by readiness state definition ID.
// Import classes:
//import com.etsy.infrastructure.*
//import com.etsy.models.*
val apiInstance = ShopProcessingProfilesApi()
val shopId : kotlin.Long = 789 // kotlin.Long | The unique positive non-zero numeric ID for an Etsy Shop.
val readinessStateDefinitionId : kotlin.Long = 789 // kotlin.Long | The numeric ID of the [processing profile](/documentation/reference#operation/getShopReadinessStateDefinition) associated with the listing. Required when listing type is `physical`.
try {
val result : ShopProcessingProfile = apiInstance.getShopReadinessStateDefinition(shopId, readinessStateDefinitionId)
println(result)
} catch (e: ClientException) {
println("4xx response calling ShopProcessingProfilesApi#getShopReadinessStateDefinition")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ShopProcessingProfilesApi#getShopReadinessStateDefinition")
e.printStackTrace()
}
| shopId | kotlin.Long| The unique positive non-zero numeric ID for an Etsy Shop. | | | Name | Type | Description | Notes | | ————- | ————- | ————- | ————- | | readinessStateDefinitionId | kotlin.Long| The numeric ID of the processing profile associated with the listing. Required when listing type is `physical`. | |
Configure api_key: ApiClient.apiKey[“x-api-key”] = “” ApiClient.apiKeyPrefix[“x-api-key”] = “” Configure oauth2: ApiClient.accessToken = “”
ShopProcessingProfiles getShopReadinessStateDefinitions(shopId, limit, offset)
<div class=\"wt-display-flex-xs wt-align-items-center wt-mt-xs-2 wt-mb-xs-3\"><span class=\"wt-badge wt-badge–notificationPrimary wt-bg-slime-tint wt-mr-xs-2\">General Release</span><a class=\"wt-text-link\" href=\"https://github.com/etsy/open-api/discussions\" target=\"_blank\" rel=\"noopener noreferrer\">Report bug</a></div><div class=\"wt-display-flex-xs wt-align-items-center wt-mt-xs-2 wt-mb-xs-3\"><p class=\"wt-text-body-01 banner-text\">This endpoint is ready for production use.</p></div> Retrieves a list of ProcessingProfiles available in the specific Etsy shop identified by its shop ID.
// Import classes:
//import com.etsy.infrastructure.*
//import com.etsy.models.*
val apiInstance = ShopProcessingProfilesApi()
val shopId : kotlin.Long = 789 // kotlin.Long | The unique positive non-zero numeric ID for an Etsy Shop.
val limit : kotlin.Int = 56 // kotlin.Int | The maximum number of results to return.
val offset : kotlin.Int = 56 // kotlin.Int | The number of records to skip before selecting the first result.
try {
val result : ShopProcessingProfiles = apiInstance.getShopReadinessStateDefinitions(shopId, limit, offset)
println(result)
} catch (e: ClientException) {
println("4xx response calling ShopProcessingProfilesApi#getShopReadinessStateDefinitions")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ShopProcessingProfilesApi#getShopReadinessStateDefinitions")
e.printStackTrace()
}
| shopId | kotlin.Long| The unique positive non-zero numeric ID for an Etsy Shop. | | | limit | kotlin.Int| The maximum number of results to return. | [optional] [default to 25] | | Name | Type | Description | Notes | | ————- | ————- | ————- | ————- | | offset | kotlin.Int| The number of records to skip before selecting the first result. | [optional] [default to 0] |
Configure api_key: ApiClient.apiKey[“x-api-key”] = “” ApiClient.apiKeyPrefix[“x-api-key”] = “” Configure oauth2: ApiClient.accessToken = “”
ShopProcessingProfile updateShopReadinessStateDefinition(shopId, readinessStateDefinitionId, readinessState, minProcessingTime, maxProcessingTime, processingTimeUnit)
<div class=\"wt-display-flex-xs wt-align-items-center wt-mt-xs-2 wt-mb-xs-3\"><span class=\"wt-badge wt-badge–notificationPrimary wt-bg-slime-tint wt-mr-xs-2\">General Release</span><a class=\"wt-text-link\" href=\"https://github.com/etsy/open-api/discussions\" target=\"_blank\" rel=\"noopener noreferrer\">Report bug</a></div><div class=\"wt-display-flex-xs wt-align-items-center wt-mt-xs-2 wt-mb-xs-3\"><p class=\"wt-text-body-01 banner-text\">This endpoint is ready for production use.</p></div> Updates an existing ReadinessStateDefinition. If an existing definition matches the input values, this endpoint will throw a Conflict error, please refer to the Content-Location header to obtain the get endpoint url for the values of the existing definition. Does not affect the product offering-readiness states definition relationship.
// Import classes:
//import com.etsy.infrastructure.*
//import com.etsy.models.*
val apiInstance = ShopProcessingProfilesApi()
val shopId : kotlin.Long = 789 // kotlin.Long | The unique positive non-zero numeric ID for an Etsy Shop.
val readinessStateDefinitionId : kotlin.Long = 789 // kotlin.Long | The numeric ID of the [processing profile](/documentation/reference#operation/getShopReadinessStateDefinition) associated with the listing. Required when listing type is `physical`.
val readinessState : kotlin.String = readinessState_example // kotlin.String | The readiness state of a product: \\\\\\\"1\\\\\\\" means \\\\\\\"ready_to_ship\\\\\\\", and \\\\\\\"2\\\\\\\" means \\\\\\\"made_to_order\\\\\\\"
val minProcessingTime : kotlin.Int = 56 // kotlin.Int | The minimum number of days or weeks for processing a specific product.
val maxProcessingTime : kotlin.Int = 56 // kotlin.Int | The maximum number of days or weeks for processing a specific product.
val processingTimeUnit : kotlin.String = processingTimeUnit_example // kotlin.String | The unit used to represent how long a processing time is. A week is equivalent to how many days the seller works per week as stated in their processing schedule. If none is provided, the unit is set to \\\\\\\"days\\\\\\\".
try {
val result : ShopProcessingProfile = apiInstance.updateShopReadinessStateDefinition(shopId, readinessStateDefinitionId, readinessState, minProcessingTime, maxProcessingTime, processingTimeUnit)
println(result)
} catch (e: ClientException) {
println("4xx response calling ShopProcessingProfilesApi#updateShopReadinessStateDefinition")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ShopProcessingProfilesApi#updateShopReadinessStateDefinition")
e.printStackTrace()
}
| shopId | kotlin.Long| The unique positive non-zero numeric ID for an Etsy Shop. | | | readinessStateDefinitionId | kotlin.Long| The numeric ID of the processing profile associated with the listing. Required when listing type is `physical`. | | | readinessState | kotlin.String| The readiness state of a product: \\\\"1\\\\" means \\\\"ready_to_ship\\\\", and \\\\"2\\\\" means \\\\"made_to_order\\\\" | [optional] [enum: ready_to_ship, made_to_order] | | minProcessingTime | kotlin.Int| The minimum number of days or weeks for processing a specific product. | [optional] | | maxProcessingTime | kotlin.Int| The maximum number of days or weeks for processing a specific product. | [optional] | | Name | Type | Description | Notes | | ————- | ————- | ————- | ————- | | processingTimeUnit | kotlin.String| The unit used to represent how long a processing time is. A week is equivalent to how many days the seller works per week as stated in their processing schedule. If none is provided, the unit is set to \\\\"days\\\\". | [optional] [default to days] [enum: days, weeks] |
Configure api_key: ApiClient.apiKey[“x-api-key”] = “” ApiClient.apiKeyPrefix[“x-api-key”] = “” Configure oauth2: ApiClient.accessToken = “”