Decogro icon

Decogro

Decogro integration for n8n

Order → Add Manual Payment to Order

AI-generated

Overview

This node operation adds a manual payment to an existing order in the Decogro system. It is useful for scenarios where a payment has been made outside of automated payment gateways, such as bank transfers or cash payments, and needs to be recorded manually in the order management system. For example, a user can specify the order ID and provide payment details like description, payment subtype, amount, and additional information in JSON format to log the payment against the order.

Use Case Examples

  1. Adding a bank transfer payment to an order with ID 123 by providing payment details in JSON format.
  2. Recording a manual cash payment for an order to keep the order's payment status updated.

Properties

Name Meaning
Order ID The ID of the order to add a payment to, used to identify the specific order in Decogro.
JSON Body The JSON data containing payment details such as description, more_info, sub_type, and amount to be sent in the request body when adding the manual payment.

Output

JSON

  • operation - The operation performed, e.g., addManualPayment
  • data - The response data from Decogro API after adding the manual payment
  • metadata
    • method - HTTP method used for the request, typically POST
    • endpoint - API endpoint used for the request, e.g., order/{orderId}/payments
    • timestamp - Timestamp when the request was made

Dependencies

  • Decogro API with API key authentication

Troubleshooting

  • Ensure the Order ID provided exists in the Decogro system; otherwise, the API will return an error.
  • Validate the JSON Body input to be correctly formatted JSON; invalid JSON will cause the node to throw an error.
  • Check API key credentials are correctly set and have permissions to add payments to orders.
  • If the API returns an error, verify the payment details such as amount and subtype are valid and supported by Decogro.

Links

Discussion