Skip to main content

CheckoutRequestDto

returnUrlstring

URL to send the user back to after Stripe Checkout completes. Must match an origin allow-listed on the agent (any of agent.redirectUris host, or agent.productDomain). On localhost any port is allowed in non-production. The post-Stripe redirect appends ?subscription=success&session_id={CHECKOUT_SESSION_ID} (or ?subscription=cancelled on cancel). For free tiers, the returnUrl is echoed back on the response so the FE can navigate immediately.

Example: http://localhost:5173/
CheckoutRequestDto
{
"returnUrl": "http://localhost:5173/"
}