Salla icon

Salla

Interact with Salla.sa e-commerce platform API

Actions45

Order → Update Status

AI-generated

Overview

This node operation updates the status of an order in the Salla e-commerce platform. It allows users to change the order status to predefined statuses such as 'In Progress', 'In Review', 'Preparing', 'In Transit', 'Shipped', 'Delivered', 'Restoring', 'Restored', and 'Completed'. Additionally, it supports setting a custom status ID if the predefined statuses are not applicable. Users can also choose to restore items to inventory when updating the status, which is typically used with restoring or restored statuses. This operation is useful for managing order workflows and inventory adjustments in an automated manner.

Use Case Examples

  1. Automatically update order status to 'Shipped' when the shipment is dispatched.
  2. Set a custom order status ID for special order processing scenarios.
  3. Restore inventory items when an order status is updated to 'Restoring' or 'Restored'.

Properties

Name Meaning
ID The ID of the order to update the status for.
Status Slug Predefined order status slug to set the order status. Includes options like 'In Progress', 'In Review', 'Preparing', etc. Selecting 'Custom Status' allows using a custom status ID instead.
Custom Status ID Custom sub-status ID for the order, used when the predefined status slugs are not applicable.
Restore Items Boolean flag indicating whether to restore items to inventory when updating the status, typically used with restoring/restored statuses.

Output

JSON

  • status_id - The custom status ID set for the order if a custom status is used.
  • slug - The predefined status slug set for the order.
  • restore_items - Flag indicating whether items were restored to inventory during the status update.

Dependencies

  • Salla API with OAuth2 authentication

Troubleshooting

  • Ensure the order ID provided is valid and exists in the Salla platform to avoid errors.
  • If using a custom status ID, verify that the ID is correct and applicable to the order.
  • Check API credentials and permissions if the request fails due to authentication issues.
  • The 'Restore Items' option should be used carefully as it affects inventory counts; ensure it is only enabled when appropriate.

Discussion