Synca Superpharm icon

Synca Superpharm

Comprehensive Superpharm Marketplace API integration for Orders, Offers, Products, Inventory, Messages, Shipping, and more

Orders → Update Order Status

AI-generated

Overview

This node operation updates the status of order lines in the Superpharm marketplace. It is useful for scenarios where you need to programmatically change the status of multiple orders or order lines, such as marking items as shipped or delivered. For example, after shipping products, you can update the order status to 'SHIPPED' for the relevant order lines.

Use Case Examples

  1. Updating the status of multiple order lines to 'SHIPPED' after dispatching the items.
  2. Changing order line statuses to 'CANCELLED' if the customer cancels the order.

Properties

Name Meaning
Credentials Select the Superpharm API credentials to use for authentication.
Orders Data JSON array containing order status updates, including order IDs and the status of each order line.
Query Options Optional parameters for pagination, sorting, shop identification, and locale settings to customize the API request.
Advanced Options Additional options to control the API request behavior, such as returning the full response, handling rate limiting, and setting request timeout.

Output

JSON

  • order_id - The unique identifier of the order.
  • order_lines - Array of order lines with their updated statuses.
  • message - Informational message if no orders are found or other status messages.
  • count - Count of items returned in the response.
  • resource - The resource type, here it is 'orders'.
  • operation - The operation performed, here it is 'update_order_status'.

Dependencies

  • Superpharm API credentials for authentication

Troubleshooting

  • Common issues include invalid or expired API credentials, malformed JSON in the 'Orders Data' input, and network timeouts.
  • Error messages from the API may indicate rate limiting (HTTP 429), which can be handled automatically if the 'Handle Rate Limiting' option is enabled.
  • Timeout errors can be resolved by increasing the 'Request Timeout' setting in the advanced options.

Links

Discussion