Shopware icon

Shopware

Shopware

Actions778

Country → Update Country

AI-generated

Overview

This node operation updates the details of a country in the Shopware system. It is useful for scenarios where you need to modify country information such as name, ISO codes, tax rules, address formats, and other country-specific settings. For example, updating the postal code pattern or enabling/disabling shipping availability for a country.

Use Case Examples

  1. Updating the name and ISO code of a country.
  2. Modifying tax rules or address format for a specific country.
  3. Changing the active status or shipping availability of a country.

Properties

Name Meaning
Id Identifier for the country, required to specify which country to update.
Response Data format for response, optional query parameter.
Name Name of the country.
Iso ISO code of the country.
Position Position or order of the country in listings.
Active Whether the country is active or not.
Shipping Available Whether shipping is available to the country.
Iso 3 Three-letter ISO code of the country.
Display State In Registration Whether to display state selection in registration forms.
Force State In Registration Whether to force state selection in registration forms.
Check Vat Id Pattern Whether to check VAT ID pattern for the country.
Vat Id Required Whether VAT ID is required for the country.
Vat Id Pattern Pattern for VAT ID validation.
Custom Fields Custom fields as JSON object for additional country data.
Customer Tax Customer tax settings as JSON object.
Company Tax Company tax settings as JSON object.
Postal Code Required Whether postal code is required for the country.
Check Postal Code Pattern Whether to check postal code pattern.
Check Advanced Postal Code Pattern Whether to check advanced postal code pattern.
Advanced Postal Code Pattern Advanced postal code pattern for validation.
Address Format Address format as JSON object.
Default Postal Code Pattern Default postal code pattern.
Is Eu Whether the country is part of the European Union.
Created At Creation timestamp of the country record.
Updated At Last update timestamp of the country record.
Translated Translated fields as JSON object.
States States within the country as JSON array.
Customer Addresses Customer addresses related to the country as JSON array.
Order Addresses Order addresses related to the country as JSON array.
Sales Channel Default Assignments Default sales channel assignments as JSON array.
Sales Channels Sales channels related to the country as JSON array.
Tax Rules Tax rules applicable to the country as JSON array.
Currency Country Roundings Currency rounding rules for the country as JSON array.

Output

JSON

  • id - Identifier of the updated country
  • name - Name of the updated country
  • iso - ISO code of the updated country
  • position - Position of the updated country
  • active - Active status of the updated country
  • shippingAvailable - Shipping availability status
  • iso3 - Three-letter ISO code
  • displayStateInRegistration - Flag to display state in registration
  • forceStateInRegistration - Flag to force state in registration
  • checkVatIdPattern - Flag to check VAT ID pattern
  • vatIdRequired - Flag indicating if VAT ID is required
  • vatIdPattern - VAT ID pattern string
  • customFields - Custom fields data
  • customerTax - Customer tax information
  • companyTax - Company tax information
  • postalCodeRequired - Flag indicating if postal code is required
  • checkPostalCodePattern - Flag to check postal code pattern
  • checkAdvancedPostalCodePattern - Flag to check advanced postal code pattern
  • advancedPostalCodePattern - Advanced postal code pattern string
  • addressFormat - Address format JSON object
  • defaultPostalCodePattern - Default postal code pattern string
  • isEu - Flag indicating if country is in the EU
  • createdAt - Creation timestamp
  • updatedAt - Last update timestamp
  • translated - Translated fields JSON object
  • states - States JSON array
  • customerAddresses - Customer addresses JSON array
  • orderAddresses - Order addresses JSON array
  • salesChannelDefaultAssignments - Sales channel default assignments JSON array
  • salesChannels - Sales channels JSON array
  • taxRules - Tax rules JSON array
  • currencyCountryRoundings - Currency country rounding rules JSON array

Dependencies

  • an API key credential for Shopware Admin API

Troubleshooting

  • Ensure the 'Id' property is provided and correctly identifies the country to update, otherwise the update will fail.
  • Invalid JSON in properties like 'customFields', 'customerTax', 'companyTax', 'addressFormat', 'translated', 'states', 'customerAddresses', 'orderAddresses', 'salesChannelDefaultAssignments', 'salesChannels', 'taxRules', or 'currencyCountryRoundings' can cause errors. Validate JSON format before sending.
  • Check API credentials and base URL configuration to ensure connectivity to the Shopware Admin API.
  • Timeout or proxy settings in 'Request Options' may need adjustment if requests fail or are slow.

Discussion