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

FieldTypeDescription
track_idstringUnique 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"
}