ops
ops-assets

Overwrite asset IDs from the transaction log

Changed on

Use to overwrite the actual asset_id with the asset_id from the txlog

patch/ops/overwrite-asset-ids-with-txlog-asset-id

Request

  • Base URL
    https://api.topi-staging.eu
  • URL
    https://api.topi-staging.eu/ops/overwrite-asset-ids-with-txlog-asset-id
  • Auth
    OAuth 2
    Authorization code: /oauth2/authorize
    Token URL: /oauth2/token scopes: ops-order:edit

Request body

Example request

{
  "assets": [
    {
      "current_id": "739b63c2-9e58-4964-b38d-4ebb424de242",
      "new_id": "739b63c2-9e58-4964-b38d-4ebb424de242"
    }
  ]
}

Response

OK response.

unprocessed_idsstring[] required

The list of asset IDs that were not updated

Example response

{
  "unprocessed_ids": [
    "abc123"
  ],
  "updated_assets": [
    {
      "belongs_to_asset_id": "739b63c2-9e58-4964-b38d-4ebb424de242",
      "id": "739b63c2-9e58-4964-b38d-4ebb424de242",
      "offer_line_id": "739b63c2-9e58-4964-b38d-4ebb424de242",
      "product_id": "739b63c2-9e58-4964-b38d-4ebb424de242",
      "requires_serial_number": false,
      "seller_product_references": [
        {
          "reference": "123ab-5343",
          "source": "sap"
        }
      ],
      "serial_number": "BA-3456786-334-9",
      "status": "shipped",
      "title": "Pro Laptop 64GB",
      "tracking_url": "abc123"
    }
  ]
}

Changes

    • info

      api operation id order.overwriteAssetIDsWithTxlogAssetIDs removed and replaced with order#overwriteAssetIDsWithTxlogAssetIDs

    • info

      api operation id order#overwriteAssetIDsWithTxlogAssetIDs removed and replaced with order.overwriteAssetIDsWithTxlogAssetIDs

    • info

      api tag ops-assets added