Seller.updateSellers

Action to update seller date. Only id field is mandatory, the rest are dependent on the changes made on SC side.

Execution frequency

Executed on seller profile update at SC > Administration > Seller Profile Configuration.

Request

JSON example:

[
  {
      "api":1,
      "method":"auth",
      "params":{
         "username":"...",
         "password":"..."
      },
      "id":1
   },
   {
    "api": 1,
    "method": "Seller.updateSellers",
    "params": {
      "sellerData": [
        {
          "id":"391309",
          "status": "inactive"
        },
        {
          "id": "2",
          "bank_account_name": "German bank name"
        },
        {
          "id": "3",
          "send_order_email": "0"
        },
        {
          "id": "999999999",
          "send_order_email": "0"
        },
        {
          "id": "1234567890",
        	"seller_custom_information": {
            "seller_custom_field_1": "seller_custom_field_1_value",
    				"seller_custom_field_2": "seller_custom_field_2_value"
          }
        }
      ]
    },
    "id": 1
  }
]

Request fields:

Field

Type

Value

Description

method

string

"Seller.updateSellers"

Action name

id

string

"391309"

Id of the seller

Other fields are optional and described within Seller.createSellers API.

Response

Returns an array with the id as key and true or false as value to indicate if the update was successfully. If no id was passed for some seller than a numeric index is created as well.

JSON example:

[  
   {  
      "api":1,
      "result":{  
         "39912":false,
         "39913":true
      },
      "id":1
   }
]

Response fields:

Field name

Type

Value

Description

result

undefined undefined

Array of seller Ids and the status of update:

  • true - if update succeeded;
  • false - if update failed.