Salla icon

Salla

Interact with Salla.sa e-commerce platform API

Actions45

Address → Update

AI-generated

Overview

This node operation updates an existing address resource in the Salla.sa e-commerce platform. It is useful for scenarios where you need to modify address details such as title, country, city, street address, postal code, geographic coordinates, or default status for a customer or user. For example, updating a customer's shipping address or correcting an address entry.

Use Case Examples

  1. Updating the street number and postal code of an existing address.
  2. Changing the default address for a customer by setting the 'Is Default' flag.

Properties

Name Meaning
ID The unique identifier of the address resource to update.
Address Fields Collection of address details to update, including title, country ID, city ID, address line, street number, block, postal code, latitude, longitude, and whether it is the default address.

Output

JSON

  • id - The ID of the updated address resource.
  • title - The updated address title.
  • country_id - The updated country identifier.
  • city_id - The updated city identifier.
  • address_line - The updated street address.
  • street_number - The updated street number.
  • block - The updated block or building identifier.
  • postal_code - The updated ZIP or postal code.
  • latitude - The updated geographic latitude coordinate.
  • longitude - The updated geographic longitude coordinate.
  • is_default - Indicates if the address is set as default.

Dependencies

  • Salla.sa API with OAuth2 authentication

Troubleshooting

  • Ensure the provided address ID exists; otherwise, the update will fail.
  • Verify that the address fields are correctly formatted and valid according to the API requirements.
  • Check OAuth2 credentials are correctly configured and have permission to update addresses.
  • Common error messages include 'The operation "update" is not supported for addresses!' if the operation parameter is incorrect, or API errors related to invalid or missing fields.

Discussion