ops
ops-offers

Move offers to another seller

Changed on

Move one or more offers from one seller to another. Associated orders and sales agents will always be moved.

put/ops/offers/move

Request

  • Base URL
    https://api.topi-staging.eu
  • URL
    https://api.topi-staging.eu/ops/offers/move
  • Auth
    OAuth 2
    Authorization code: /oauth2/authorize
    Token URL: /oauth2/token scopes: ops-offer:edit

Request body

destination_seller_idstring

the seller ID the offers should be moved to

offer_idsstring[] required

list of offer IDs to move

Example request

{
  "destination_seller_id": "abc123",
  "offer_ids": [
    "abc123",
    "abc123"
  ]
}

Response

OK response.

moved_offersinteger required

number of offers updated

moved_ordersinteger required

number of associated orders updated

moved_sales_agentsinteger required

number of associated sales agents updated

Example response

{
  "moved_offers": 1,
  "moved_orders": 1,
  "moved_sales_agents": 1
}

Changes

    • info

      api operation id offer.moveOffersToSellerOps removed and replaced with offer#moveOffersToSellerOps

    • info

      api operation id offer#moveOffersToSellerOps removed and replaced with offer.moveOffersToSellerOps

    • info

      api tag ops-offers added