Request headers

Only registered user can perform this action
  Authentication - string - required
    Example of Authentication header : "Bearer TOKEN_FETCHED_FROM_SERVER_DURING_REGISTRATION"

Success response body

{
  "proration_amount": 89999,
  "with_coupon": false
}

Status 403 error message

{
  permissions: ['denied'],
  message: 'permissions_denied'
}

Status 404 error message

{
  "message": "subscription not found"
}

Errors

Code Description
unauthorized
forbidden
not_found

Params

Param name Description
plan_id
required

ID of plan

Validations:

  • Must be a Integer