# Buy subscription Endpoint: POST /api/user/v1/projects/{project_id}/subscriptions/buy Version: 2.0 Security: projectUserJwtAuth ## Query parameters: - `country` (string) ## Path parameters: - `project_id` (integer, required) ## Request fields (application/json): - `available_plans` (object,null) Plans d'abonnement à afficher dans l'interface de paiement. - `custom_parameters` (object,null) You can pass additional parameters in the token - `plan_external_id` (string,null) You must provide either a plan_external_id Example: "PlanExternalId" - `product_id` (integer,null) ID of the product associated with the plan Example: "12345" - `settings` (any,null) ## Response 200 fields (application/json): - `link_to_ps` (string, required) Example: "https://secure.xsolla.com/paystation2/?access_token=" ## Response 404 fields