API
Türkçe

API reference · Products

Upload a product source file

Uploads the product content you send (e.g. XML) as a file to your product source address on StockMount.

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

Requires an active Product package; otherwise 70018 is returned.

The path of ProductSourceUrl must be /{userId}/out/{fileName}, where {userId} is your StockMount user ID left-padded with zeros to 8 digits (e.g. 00012345). The host name is not checked. A mismatch returns 60501.

ProductsText is written as UTF-8 to the /{userId}/out/ folder, using the file name from the URL. The content is not validated. On success Response is empty.

Error messages are inconsistent: a bad URL also returns ErrorMessage ProductsText. Rely on the code (60501).

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 API code returned by DoLogin.
ProductSourceUrl required string Address of the product source file; path /{8-digit userId}/out/{fileName}.
ProductsText required string Full file content (e.g. XML text).

Response fields (Response)

On success the Response field is empty; read the outcome from Result.

Error codes for this endpoint

CodeWhen
60501 ProductSourceUrl path does not match your folder (/{userId}/out/…), or the user folder could not be created.
60502 The out folder could not be created.
60503 The file could not be uploaded.
70018 No active Product package.
99999 Unexpected error.

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

Example request

{
  "ApiCode": "API_CODE",
  "ProductSourceUrl": "https://files.example.com/00012345/out/products.xml",
  "ProductsText": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><Products><Product><Code>KUPA-350</Code><Name>Seramik Kupa 350 ml</Name><Price>129.90</Price><Quantity>40</Quantity></Product></Products>"
}

Example response

{
  "Result": true
}

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.