Livo icon

Livo

Interact with Livo API for orders, products, customers, and repairs

Overview

The "Pay Order" operation in the Orders resource allows users to mark an existing order as paid by specifying the order ID and the payment method used. This node is useful in scenarios where you want to update the payment status of an order within an automated workflow, such as after receiving payment confirmation from a payment gateway or manually recording payments.

Practical examples:

  • Automatically marking an order as paid when a payment webhook is received.
  • Updating order payment status after manual verification.
  • Integrating with external accounting or ERP systems to sync payment statuses.

Properties

Name Meaning
Order ID The unique identifier of the order to be marked as paid.
Payment Method The method used to pay for the order. Options: Cash, Card, Bank Transfer, E-Wallet.

Output

The node outputs a JSON object representing the response from the API after attempting to pay the order. This typically includes confirmation details about the payment update. The exact structure depends on the API but generally confirms success or provides error information.

No binary data output is involved in this operation.

Dependencies

  • Requires an API key credential for authenticating requests to the Livo API.
  • Needs the base environment URL configured (likely via credentials or environment variables).
  • The node makes HTTP POST requests to the endpoint /api/order/payment-update with the order ID and payment method.

Troubleshooting

  • Common issues:

    • Invalid or missing Order ID will cause the API to reject the request.
    • Using an unsupported payment method value may result in errors.
    • Network or authentication failures if the API key or environment URL is incorrect.
  • Error messages:

    • Errors returned from the API will be included in the node output if "Continue On Fail" is enabled.
    • Typical errors might include "Order not found", "Invalid payment method", or "Unauthorized".
  • Resolution tips:

    • Verify that the Order ID exists and is correct.
    • Ensure the payment method matches one of the allowed options.
    • Check API key validity and network connectivity.

Links and References

  • Refer to the Livo API documentation for the /api/order/payment-update endpoint for detailed request and response formats.
  • n8n documentation on handling API credentials and HTTP request nodes for further customization.

Discussion