Xsolla-logo

Set statuses for autoredirect

put/projects/{project_id}/autoredirect_from_status_page

Sets the payment status to automatically redirect users to the specified URL after they completed the payment. The settings passed in the Create token API call take priority. Refer to our documentation for detailed information about configuring redirects.

SecuritybasicAuth
Request
path Parameters
project_id
required
integer

Project ID.

Request Body schema: application/json
autoredirect_from_status_page
string

A payment status for automatic redirect.

Enum: Description
none

No redirect.

done

Redirect when a payment is successful.

final

Redirect when a payment is successful or canceled.

all

Redirect for any payment status.

Responses
204

No Content.

404

Not Found.

Request samples
application/json
{
  • "autoredirect_from_status_page": "none"
}