Actions35
- Order Actions
- Contact Actions
- Company Actions
- Files Actions
- Admin Actions
Order → Request Payment for Order
AI-generatedOverview
This node operation requests a payment for an existing order in the Decogro system. It is useful for scenarios where you need to trigger a payment request for a specific order, such as sending an invoice or payment link to a customer. For example, after creating an order, you can use this operation to request payment by specifying the order ID and payment details in JSON format.
Use Case Examples
- Request payment for order ID 123 with amount $100, payment methods card and ACH, sending the payment request via attached email to customer@example.com.
- Trigger payment request for order ID 456 using a predefined email template and custom message.
Properties
| Name | Meaning |
|---|---|
| Order ID | The ID of the order to request payment for. This identifies which order the payment request will be associated with. |
| JSON Body | The JSON data to send in the request body. This includes payment details such as amount, amount type, payment methods, send method, recipient email, and template ID for the payment request. |
Output
JSON
operation- The operation performed, e.g., 'requestPayment'.data- The response data returned from the Decogro API after requesting payment for the order.metadatamethod- The HTTP method used for the request, typically 'POST'.endpoint- The API endpoint used for the request, e.g., 'order/{orderId}/request-payment'.timestamp- The timestamp when the request was made.
Dependencies
- Decogro API with base URL and API key credentials
Troubleshooting
- Ensure the Order ID provided exists and is valid in the Decogro system to avoid 'order not found' errors.
- Validate the JSON Body format to be correct JSON; invalid JSON will cause errors.
- Check API key credentials and permissions to ensure the request is authorized.
- If the payment request fails, verify the payment methods and recipient email are correctly specified.
Links
- Decogro API Documentation - Request Payment for Order - Official API documentation for requesting payment on an order in Decogro.