maton stripe refund create
maton stripe refund create [flags]
Refund a charge or payment intent. Exactly one of –charge or –payment-intent must be provided. If –amount is omitted, the full remaining amount is refunded.
Options
-
--amount <string> - Amount in cents (defaults to full remaining)
-
--charge <string> - Charge ID to refund (one of --charge or --payment-intent required)
-
--connection <string> - Connection ID to route through (Maton-Connection header)
-
--dry-run - Print the request that would be sent without executing it
-
--format <string> - Output format: 'json' (default) or 'text' on supported commands
-q,--jq <expression>- Filter JSON output using a jq expression
-
--metadata <stringArray> - Metadata key=value pair (repeatable)
-
--paginate - Follow next_cursor and concatenate all pages (list commands only)
-
--payment-intent <string> - Payment intent ID to refund (one of --charge or --payment-intent required)
-
--reason <string> - Reason (duplicate, fraudulent, requested_by_customer)
-
--template <string> - Format JSON output using a Go template; see "maton help formatting"
Options inherited from parent commands
-p,--profile <string>- Profile to use for this invocation (overrides the active profile; also reads MATON_PROFILE)
Examples
$ maton stripe refund create --charge ch_123
$ maton stripe refund create --charge ch_123 --amount 1000
$ maton stripe refund create --payment-intent pi_123 --reason requested_by_customer