Create Refund
Authentication
Sales channel API key for merchant server-to-server authentication
Request
The amount you wish to refund in cents. Cannot be greater than the total_amount originally charged.
The id returned to the partner by Truemed in response to a create_payment_session request.
Why you are initiating this refund request: customer_request - the customer requested a refund; fraudulent - the payment was fraudulent; duplicate_payment - the user checked out with HSA/FSA multiple times for one purchase.
One of:
customer_request— The refund was requested by the customer.duplicate_payment— The charge was a duplicate.fraudulent— The charge was fraudulent; this feeds the fraud signal.
The id of the capture to refund, from captures[].id in the payment session status. Only required if the session has more than one capture; if omitted, the refund is applied across the session’s captures.