Sapo Trường Tùy Chỉnh icon

Sapo Trường Tùy Chỉnh

Quản lý trường tùy chỉnh trên Sapo

Đơn Hàng → Xóa

AI-generated

Overview

This node manages custom metafields on resources within the Sapo platform. Specifically, for the "Đơn Hàng" (Orders) resource and the "Xóa" (Delete) operation, it deletes a specified custom metafield from an order by its ID.

Common scenarios include cleaning up or removing obsolete custom fields attached to orders in Sapo, such as removing outdated metadata or correcting data entry errors.

Practical example: If you have added a custom metafield to track special instructions on an order but no longer need it, this node can delete that metafield by specifying the order ID and the metafield ID.

Properties

Name Meaning
ID Tài Nguyên The numeric ID of the order resource from which the metafield will be deleted.
ID Trường Tùy Chỉnh The numeric ID of the custom metafield to delete from the specified order.

Output

The output JSON contains a single field:

  • success: A boolean indicating whether the deletion was successful (true).

Example output:

{
  "success": true
}

No binary data is output by this operation.

Dependencies

  • Requires an API authentication credential configured in n8n to connect to the Sapo platform.
  • Uses the Sapo API base class internally to perform metafield operations.
  • The node depends on the Sapo platform's metafield API endpoints to manage custom fields.

Troubleshooting

  • Common issues:

    • Providing an invalid or non-existent order ID or metafield ID will likely cause an error.
    • Insufficient permissions or incorrect API credentials may result in authorization failures.
    • Network connectivity problems can prevent communication with the Sapo API.
  • Error messages:

    • Errors returned from the Sapo API are caught and either thrown or returned as error objects depending on the node’s "Continue On Fail" setting.
    • Typical error messages might include "Resource not found," "Invalid metafield ID," or "Unauthorized."
  • Resolution tips:

    • Verify that the order ID and metafield ID exist and are correct.
    • Ensure the API credentials used have sufficient permissions.
    • Check network connectivity and API endpoint availability.
    • Enable "Continue On Fail" if you want the workflow to proceed despite individual errors.

Links and References

Discussion