ops
ops-assets

Calculate an asset's termination fees

Changed on

Calculate termination fees for asset

post/ops/asset/{id}/calculate-termination-fees

Request

  • Base URL
    https://api.topi-staging.eu
  • URL
    https://api.topi-staging.eu/ops/asset/{id}/calculate-termination-fees
  • Auth
    OAuth 2
    Authorization code: /oauth2/authorize
    Token URL: /oauth2/token scopes: ops-order:edit

Path parameters

idstring regexp required

topi asset ID

Example:739b63c2-9e58-4964-b38d-4ebb424de242

Request body

actual_tenure_overrideinteger

Actual tenure override

fetch_realtime_trade_in_priceboolean required

Whether to fetch the realtime trade in price from partner

trade_in_price_overrideinteger

Trade-in price override (in cents)

Example request

{
  "actual_tenure_override": 1,
  "fetch_realtime_trade_in_price": false,
  "trade_in_price_override": 1
}

Response

OK response.

Example response

{
  "asset_details": {
    "id": "739b63c2-9e58-4964-b38d-4ebb424de242",
    "offer_id": "739b63c2-9e58-4964-b38d-4ebb424de242",
    "serial_number": "BA-3456786-334-9",
    "status": "shipped",
    "subtitle": "abc123",
    "title": "Pro Laptop 64GB",
    "txlog_status": "abc123"
  },
  "buy_out_fee_net": {
    "amount": 34000,
    "currency": "EUR"
  },
  "calculation_details": {
    "buy_out_profit_loading_percent": 1,
    "collected_rent_actual_tenure": 1,
    "contract_start_date": "1970-01-01T00:00:01Z",
    "difference_to_expected_revenue": 1,
    "expected_revenue_total": 1,
    "gross_profit_in_percent": 1,
    "purchase_price_net": {
      "amount": 34000,
      "currency": "EUR"
    },
    "rv_in_percent": 1,
    "target_margin_in_percent": 1,
    "tenure_actual": 1,
    "tenure_on_contract": 1,
    "tenure_remaining": 1,
    "total_revenue": 1,
    "trade_in_price": 1
  },
  "return_fee_net": {
    "amount": 34000,
    "currency": "EUR"
  }
}

Changes

    • info

      api operation id Asset.calculateTerminationFeesOps removed and replaced with Asset#calculateTerminationFeesOps

    • info

      api operation id Asset#calculateTerminationFeesOps removed and replaced with Asset.calculateTerminationFeesOps

    • info

      api tag ops-assets added