Shopware icon

Shopware

Shopware

Actions778

Currency Country Rounding → Update Currency Country Rounding

AI-generated

Overview

This node operation updates the currency country rounding settings in the Shopware system. It is useful for scenarios where you need to modify how currency rounding is handled for specific countries, such as adjusting item rounding or total rounding rules for transactions in different regions. For example, a business expanding to a new country might use this node to ensure prices are rounded according to local regulations.

Use Case Examples

  1. Updating the rounding rules for a specific currency in a particular country to comply with local tax laws.
  2. Modifying the total rounding settings to change how invoice totals are calculated and displayed for customers in a given country.

Properties

Name Meaning
Id Identifier for the currency_country_rounding, used to specify which rounding entry to update.
_response Data format for the response, used to specify the desired response format from the API.
currencyId Identifier for the currency associated with the rounding settings.
countryId Identifier for the country associated with the rounding settings.
itemRounding JSON object defining the rounding rules applied to individual items.
totalRounding JSON object defining the rounding rules applied to the total amount.
createdAt Timestamp indicating when the rounding entry was created.
updatedAt Timestamp indicating when the rounding entry was last updated.
currency JSON object containing detailed currency information, including nested rounding and sales channel assignments.
country JSON object containing detailed country information, including tax and state data.

Output

JSON

  • id - The unique identifier of the updated currency country rounding entry.
  • currencyId - The currency identifier associated with the updated rounding.
  • countryId - The country identifier associated with the updated rounding.
  • itemRounding - The updated item rounding rules as a JSON object.
  • totalRounding - The updated total rounding rules as a JSON object.
  • createdAt - The creation timestamp of the rounding entry.
  • updatedAt - The last update timestamp of the rounding entry.
  • currency - Detailed currency information related to the rounding entry.
  • country - Detailed country information related to the rounding entry.

Dependencies

  • An API key credential for Shopware Admin API

Troubleshooting

  • Ensure that the 'id' property is correctly set to the identifier of the currency country rounding entry you want to update; otherwise, the update will fail.
  • Verify that the JSON format for 'itemRounding' and 'totalRounding' is valid to avoid parsing errors.
  • Check API credentials and base URL configuration to ensure successful connection to the Shopware Admin API.
  • If SSL issues occur, consider enabling the 'Ignore SSL Issues' option in request settings, but be aware of security implications.

Discussion