Create Truemed Session Refund
Record a refund you already issued on your own payment rail. Itemize the refunded lines with the item_details array — the refunded amount is derived from their totals, so there is no separate amount field — and Truemed updates the session history and adjusts the fee basis to match the reduced charge.
Authentication
x-truemed-api-keystring
Sales channel API key for merchant server-to-server authentication
Path parameters
truemed_session_id
The Truemed session ID from the URL path.
Request
Request body for CreateTruemedSessionRefundRequest
idempotency_key
A unique key making this request safely retryable.
item_details
Itemized attribution for the refund. Each entry refunds part of a line item, up to its refundable quantity and total from the session detail. The refunded amount is derived from these line totals, not a separate amount field.
Response
Successful response
refund_id
Truemed’s stable ID for this refund (mrt_refund_<id>).
refunded_amount_cents
Cumulative refunded amount on this session, in cents, including this refund.
truemed_session_id
The session the refund was recorded against.
Errors
400
Bad Request Error
404
Not Found Error
405
Method Not Allowed Error
500
Internal Server Error
501
Not Implemented Error