Close Session
π Close the old session
Use this endpoint to close the ignored opened session by the user.
π§ Endpoint
POST /subscription/close-session
π₯ Request Body
Field | Type | Description |
---|---|---|
track_id | string | Unique identifier of the subscription session to close |
β Example Request
{
"track_id": "a1b2c3d4-e5f6-7890-g1h2-i3j4k5l6m7n8"
}
π€ Response
Returns a redirect URL to complete the payment.
β Example Success Response
{
"message": "Subscription session closed successfully"
}
β Error Responses
Internal server error
{
"detail": "Internal server error, track_id: a1b2c3d4-e5f6-7890-g1h2-i3j4k5l6m7n8"
}