Charge → Cancel
AI-generatedSummary
Cancel a pending charge in HubPay by specifying its unique Charge ID.
Inputs
- Charge ID (required) — The unique identifier of the charge to cancel (e.g., 'chg_abc123...').
Output shape
a single JSON object representing the canceled charge or error details
Returns the HTTP response JSON from the HubPay API for the cancel request. If there is an error, it may throw a detailed NodeApiError or return an error message in the output if 'Continue On Fail' is enabled.
Examples
Example 1: Cancel a charge by its ID
Specify a 'Charge ID' parameter with the ID of the charge you want to cancel, e.g., 'chg_abc123...'. Upon execution, the node sends a DELETE request to HubPay's API to cancel the charge and returns the canceled charge data.