Synca Superpharm icon

Synca Superpharm

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

Orders → Cancel Order

AI-generated

Overview

This node operation cancels specific order lines in the Superpharm marketplace by sending cancellation data to the Superpharm API. It is useful for managing order cancellations programmatically, such as when a customer requests to cancel part or all of an order. For example, a user can specify the order ID and provide a JSON array detailing which order lines to cancel, including quantities and reasons for cancellation.

Use Case Examples

  1. Cancel specific lines of an order by providing the order ID and cancellation details in JSON format.
  2. Automate order cancellations based on customer requests or inventory issues.

Properties

Name Meaning
Credentials Select the Superpharm API credentials to use for authentication.
Order ID The unique identifier of the order to cancel.
Cancelations Data JSON array containing details of the order lines to cancel, including order_line_id, quantity, and reason for cancellation.
Query Options Optional parameters for pagination, sorting, locale, and shop ID to customize the API request.
Advanced Options Additional options such as returning the full API response, handling rate limiting automatically, and setting request timeout.

Output

JSON

  • json - The JSON response from the Superpharm API after attempting to cancel the order lines. This may include confirmation of cancellation or error messages.

Dependencies

  • Superpharm API credentials for authentication

Troubleshooting

  • Common issues include invalid order ID or cancellation data format errors. Ensure the order ID exists and the cancellation JSON array is correctly formatted with valid order_line_id, quantity, and reason fields.
  • API rate limiting may cause request failures; enabling automatic retry on rate limit errors can help mitigate this.
  • Timeout errors can occur if the request takes too long; adjust the request timeout in advanced options if needed.

Links

Discussion