Skip to main content
POST
/
v1
/
subscriptions
/
{subscriptionId}
/
buyout
Buyout a subscription
curl --request POST \
  --url https://api-eu.flexportal.io/v1/subscriptions/{subscriptionId}/buyout \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'Tenant-ID: <tenant-id>' \
  --data '
{
  "tenantId": "<string>",
  "rentalId": "<string>",
  "reason": "customer_request",
  "buyoutPrice": 1,
  "notes": "<string>"
}
'
{
  "success": true,
  "rentalId": "<string>",
  "assetSerialNumber": "<string>",
  "buyoutPrice": 1,
  "currency": "<string>",
  "effectiveDate": "<string>",
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

API key obtained from FlexPortal dashboard

Headers

Tenant-ID
string
required

Your tenant identifier

Path Parameters

subscriptionId
string
required

The subscription ID

Body

application/json
tenantId
string
required
Minimum string length: 1
rentalId
string
required
Minimum string length: 1
reason
enum<string>
required
Available options:
customer_request,
end_of_contract,
other
buyoutPrice
number
Required range: x >= 0
notes
string

Response

Buyout completed

success
boolean
required
rentalId
string
required
assetSerialNumber
string
required
buyoutPrice
number
required
Required range: x >= 0
currency
string
required
effectiveDate
string
required
message
string
required