ShipTown icon

ShipTown

Consume ShipTown API

Actions20

Overview

This node integrates with the ShipTown API to manage products and other related resources. Specifically, the "Product - Update" operation allows users to update an existing product's details by specifying its ID and providing additional properties in JSON format. This is useful for scenarios where product information needs to be modified dynamically, such as updating pricing, descriptions, or inventory details.

Practical examples include:

  • Updating a product's price or description after a promotional campaign.
  • Modifying product attributes based on supplier updates.
  • Correcting product data errors without recreating the product.

Properties

Name Meaning
Product ID The unique numeric identifier of the product to update.
Additional Fields A collection of optional fields; currently supports:
- Properties: A JSON object containing any additional product properties to update.

Example of Properties JSON:

{
  "name": "New Product Name",
  "price": 19.99,
  "description": "Updated product description"
}

Output

The node outputs the JSON response returned by the ShipTown API after updating the product. This typically includes the updated product details reflecting the changes made.

The output structure is an array of JSON objects, each representing the updated product data corresponding to each input item processed.

No binary data output is produced by this operation.

Dependencies

  • Requires an active connection to the ShipTown API.
  • Needs an API authentication token credential configured in n8n to authorize requests.
  • The base URL for API requests is taken from the configured credentials.

Troubleshooting

  • Common issues:

    • Invalid or missing Product ID will cause the API to return an error.
    • Malformed JSON in the "Properties" field can lead to request failures.
    • Insufficient permissions or invalid API credentials will result in authentication errors.
  • Error messages and resolutions:

    • "404 Not Found": The specified Product ID does not exist. Verify the ID.
    • "400 Bad Request": Check that the JSON in "Properties" is valid and matches expected schema.
    • "401 Unauthorized": Ensure the API key credential is correctly set up and has necessary permissions.
    • Network or timeout errors: Confirm network connectivity and API availability.

Links and References

Discussion