Sapo Thực Hiện Đơn Hàng icon

Sapo Thực Hiện Đơn Hàng

Quản lý thực hiện đơn hàng trên Sapo

Overview

This node manages order fulfillments on the Sapo platform, specifically allowing users to update tracking information for a fulfillment. It is useful in e-commerce workflows where you need to programmatically update shipment tracking details after an order has been processed or shipped.

A practical example: After shipping an order, you can use this node to update the tracking number, carrier, and tracking URL so that customers and internal systems have the latest shipment status.

Properties

Name Meaning
ID Thực Hiện The numeric ID of the fulfillment to update the tracking information for (fulfillmentId).
Dữ Liệu Tracking JSON object containing tracking details to update, including:
- tracking_number: The shipment tracking number.
- tracking_company: The name of the shipping company/carrier.
- tracking_url: A URL to track the shipment online.

Output

The node outputs a JSON object representing the updated fulfillment tracking information as returned by the Sapo API. This typically includes confirmation of the updated tracking data and any related metadata from the fulfillment record.

No binary data output is produced by this operation.

Dependencies

  • Requires an active connection to the Sapo API via an API key credential configured in n8n.
  • The node depends on the SapoApiBase class which handles API requests to Sapo's fulfillment endpoints.

Troubleshooting

  • Common issues:

    • Invalid or missing fulfillment ID will cause errors when updating tracking.
    • Incorrectly formatted JSON in the tracking data property may lead to request failures.
    • Network or authentication errors with the Sapo API can prevent updates.
  • Error messages:

    • Errors from the API are surfaced with their message; ensure the fulfillment ID exists and the tracking data fields are valid.
    • If the node throws an error about credentials, verify the API key is correctly set up and has necessary permissions.

Links and References

Discussion