ops
ops-trade-ins

Start a trade-in

Changed on

Start trade in process requested by Ops

post/ops/trade-ins/start

Request

  • Base URL
    https://api.topi-staging.eu
  • URL
    https://api.topi-staging.eu/ops/trade-ins/start
  • Auth
    OAuth 2
    Authorization code: /oauth2/authorize
    Token URL: /oauth2/token scopes: ops-trade-in:edit

Request body

asset_idstring regexp required

The asset ID

contract_start_datestring date-time required
trade_in_typestring required

Trade in type, e.g. return_in_progress

user_emailstring email required

E-mail of the user that requested the trade-in process

Example request

{
  "asset_id": "739b63c2-9e58-4964-b38d-4ebb424de242",
  "contract_start_date": "1970-01-01T00:00:01Z",
  "override_address": {
    "city": "aaa",
    "country_code": "DE",
    "line1": "aaa",
    "line2": "aaa",
    "postal_code": "aaa",
    "region": "aaa"
  },
  "trade_in_type": "abc123",
  "user_email": "alice@example.com"
}

Response

OK response.

Changes

    • warning

      the / request property's maxLength was set to 255

    • warning

      the / request property's maxLength was set to 255

    • warning

      the / request property's maxLength was set to 255

    • warning

      the / request property's maxLength was set to 255

    • warning

      the / request property's maxLength was set to 255

    • info

      api operation id Trade in.startTradeInProcessOps removed and replaced with Trade in#startTradeInProcessOps