API
Türkçe

API reference · Products

Update product name (by ProductId)

Changes the name of the product found by ProductId.

POST https://out.stockmount.com/api/Product/UpdateProductName
Changes data Product package required

Each call updates a single product; you cannot send several products in one call.

The product is identified only by ProductId. To update by product code, use the ByCode endpoint.

Only the product's main name (Name) changes. Stock, prices and variants are not changed; other fields are ignored. The one exception is CurrencyId: if you send a value greater than 0, the product currency changes too. Do not send it.

If the name actually changed, a product update is queued for each active marketplace listing of the product. Marketplaces are updated by background jobs, not during this call.

If the product is not found or does not belong to your account, the response is Result: false with ErrorCode: "70005" and ErrorMessage: "ProductNotFound". Database errors return ErrorCode 99999.

Accounts without an active Product package get error 70018; if the package cannot be verified, 99999 is returned.

Request fields

Field Type Description
ApiCode required string The API code returned by User/DoLogin.
ProductId required integer StockMount product ID. The product must belong to your account. Code is ignored by this endpoint.
Name required string New product name. Must not be empty. Values longer than 400 characters are truncated.

Response fields (Response)

Field Type Description
ProductId integer ID of the updated product.
Variants object[] Variants updated by this call. Empty array if you sent no variants.
Variants[]. Code string Variant code.
Variants[]. ProductVariantId integer Variant ID.

Error codes for this endpoint

CodeWhen
70005 The product was not found or does not belong to your account (ErrorMessage: ProductNotFound).
00003 ProductId is missing or less than 1 (ErrorMessage: "ProductId"). Name is empty (ErrorMessage: "Name").
70018 Your account has no active Product package.
99999 An unexpected server error occurred.

For session errors (00001, 00006) and every other code see error codes.

Related endpoints

Example request

{
  "ApiCode": "API_CODE",
  "ProductId": 184522,
  "Name": "Pamuklu Basic T-Shirt Kırmızı"
}

Example response

{
  "Result": true,
  "Response": {
    "ProductId": 184522,
    "Variants": []
  }
}

Try it

The request goes straight from your browser to out.stockmount.com. The ApiCode is not stored by this site; it is kept only while this tab is open.

Get an ApiCode before sending requests.

This endpoint changes real data in your account.

Use ↑ ↓ to move, Enter to open, Esc to close.

Connect to the Out API

DoLogin is called and the returned ApiCode is kept in this tab. Your API password is never sent to this site.