Create Refund

Issue a refund under the source-rail rule (see app/refunds.py): card-paid credit returns only to the original payment method via Stripe; USDC-funded credit returns only in USDC to the registered wallet / original funding address. Over-cap and exceptional USDC refunds escalate with a prepared summary — never silently fail.

post/v1/accounts/{account_id}/refunds

Request

  • Base URL: https://api.textforagents.com
  • URL: https://api.textforagents.com/v1/accounts/{account_id}/refunds
  • Auth: none declared

Path parameters

account_idstring required

Headers

authorizationstring nullable

Request body

amount_centsinteger required
idempotency_keystring nullable
railstring

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.