cURL
curl --request POST \ --url https://api-eu.flexportal.io/v1/subscriptions/{subscriptionId}/early-return \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'Tenant-ID: <tenant-id>' \ --data ' { "tenantId": "<string>", "rentalId": "<string>", "returnCondition": "excellent", "reason": "<string>", "earlyReturnFee": 1, "damageAssessment": "<string>", "notes": "<string>" } '
{ "success": true, "rentalId": "<string>", "assetSerialNumber": "<string>", "earlyReturnFee": 1, "currency": "<string>", "actualMonthsRented": 60, "returnDate": "<string>", "message": "<string>" }
Customer returns the device before contract end. May incur early return fees.
API key obtained from FlexPortal dashboard
Your tenant identifier
The subscription ID
1
excellent
good
fair
poor
damaged
x >= 0
Early return completed
0 <= x <= 120