Shopware icon

Shopware

Shopware

Actions778

Currency Country Rounding → Create Currency Country Rounding

AI-generated

Overview

This node operation creates a new Currency Country Rounding entry in the Shopware system. It is useful for scenarios where you need to define or update rounding rules for currency amounts specific to a country, such as item rounding and total rounding. For example, it can be used to ensure that prices and totals are rounded correctly according to local currency regulations or business rules.

Use Case Examples

  1. Creating a new currency-country rounding rule to apply specific rounding for item prices and totals in a given country.
  2. Updating the rounding settings for a currency in a specific country to comply with local financial standards.

Properties

Name Meaning
Response Data format for the response, either basic or detailed.
Id Unique identifier for the currency country rounding entry.
Currency Id Identifier of the currency to which the rounding rules apply.
Country Id Identifier of the country to which the rounding rules apply.
Item Rounding JSON object defining the rounding rules for individual items.
Total Rounding JSON object defining the rounding rules for total amounts.
Created At Timestamp when the entry was created.
Updated At Timestamp when the entry was last updated.
Currency JSON object representing the currency details including nested related data.
Country JSON object representing the country details including nested related data.
Request Options Node execution options such as batching, SSL handling, proxy, and timeout settings.

Output

JSON

  • id - Unique identifier of the created currency country rounding entry.
  • currencyId - Identifier of the currency associated with the rounding.
  • countryId - Identifier of the country associated with the rounding.
  • itemRounding - Rounding rules applied to individual items.
  • totalRounding - Rounding rules applied to total amounts.
  • createdAt - Creation timestamp of the entry.
  • updatedAt - Last update timestamp of the entry.
  • currency - Detailed JSON object of the currency information.
  • country - Detailed JSON object of the country information.

Dependencies

  • An API key credential for Shopware Admin API

Troubleshooting

  • Ensure all required fields (id, currencyId, countryId, itemRounding, totalRounding) are provided and correctly formatted.
  • If the API returns authentication errors, verify the Shopware Admin API credentials and URL configuration.
  • For JSON fields (itemRounding, totalRounding, currency, country), ensure valid JSON syntax to avoid parsing errors.
  • Timeouts or network errors can be mitigated by adjusting the timeout and proxy settings in Request Options.

Discussion