Mircate
  1. Product Supplier
Mircate
  • Introduction
  • Authentication
  • Errors
  • Change Logs
  • PIM
    • Get Products
      POST
    • Get Product Settings
      GET
    • Get Catalog Settings
      GET
    • Upsert Product
      POST
    • Upsert Category
      POST
    • Bulk Product Upsert
      POST
    • Check Batch Status
      POST
    • Delete Product
      POST
    • Attach Product Attribute Image
      POST
    • Attach Category Image
      POST
    • Get Image
      GET
    • Upsert Attributes
      POST
    • Delete Attribute
      POST
    • Upsert Attribute Options
      POST
    • Upsert Attribute Option
      POST
    • Delete Attribute Option
      POST
  • Promotion
    • Calculate
    • Start Transaction
    • Commit Transaction
    • Revert Transaction
    • Cancel Transaction
    • Get Active Promotions
  • Loyalty
    • Receive Event
    • Calculate
    • Start Transaction
    • Commit Transaction
    • Cancel Transaction
    • List Measurements
  • Wallet
    • Get Wallet
    • Create Wallet
    • Create Account
    • Get Account
    • Get Accounts
    • List Accounts
    • List Transactions
    • Add Account
    • Remove Account
    • Fix
    • Load
    • Spend
    • Refund
    • Cancel
  • Talking Product
    • Create Product
    • Update Product
    • Delete Product
    • Get Product
    • List Product
  • Merchant
    • Sales Channel
      • Reserve Stock
      • Cancel Stock
      • Commit Stock
      • Refund Stock
      • Get Current Stock
    • Product Supplier
      • Receive Stock
        POST
      • Receive Price
        POST
      • Get Stock/Price History
        POST
      • Check Batch Status
        GET
      • Remove My Products
        POST
      • Clean My Products
        POST
      • Export Stock/Price
        POST
      • List Exports
        POST
      • Get Exported Files
        POST
    • Global Products
      • Receive Products
      • Get Global Products
      • Remove Global Products
  • Common
    • Dataset
      • Create
      • Update
      • Delete
      • Value Upsert
      • Value Delete
      • List Sources
      • List Values
  • How to
    • Creating a Promotion Template
    • Promotion Transaction Flow
    • Understanding PIM Product Statuses
  1. Product Supplier

Get Stock/Price History

Production
https://api.b2b.retter.io/5p1hp1d2t
Production
https://api.b2b.retter.io/5p1hp1d2t
POST
https://api.b2b.retter.io/5p1hp1d2t
/CALL/MerchantAccountProduct/getMerchantProductHistory/{MY_PROJECT_ID}-{MY_PRODUCT_ID}
Merchant - Product Supplier
Last modified:2024-09-17 11:22:35
The **Get Merchant Product History **method enables you to retrieve stock and price information through the API for a specific merchant's products.
If you prefer to use SKU instead of Product ID, you can utilize the following format for usage.
/CALL/MerchantAccountProduct/getMerchantProductHistory/
ACCOUNT_PRODUCT_{{YOUR_SALES_CHANNEL: exp: gratisWeb, pinarOnline}}_{{YOUR_B2B_PROJECT_ID}}!{{YOUR_PRODUCT_SKU}}

Request

Authorization
Add parameter in header
x-api-key
Example:
x-api-key: ********************
Path Params
MY_PROJECT_ID
string 
required
MY_PRODUCT_ID
string 
required
Body Params application/json
type
required
Allowed values:
STOCKPRICE
Example:
STOCK
nextToken
string 
optional
If the API call returns a large amount of data, it is used for paginating the results to be retrieved in a paged manner.
Example
{
    "type": "STOCK",
    "nextToken": "string"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.b2b.retter.io/5p1hp1d2t/CALL/MerchantAccountProduct/getMerchantProductHistory/-' \
--header 'Content-Type: application/json' \
--header 'x-api-key;' \
--data-raw '{
    "type": "STOCK",
    "nextToken": "string"
}'

Responses

🟢200OK
application/json
OK
Body
histories
array [object {13}] 
optional
previousLiveQuantity
integer 
optional
createdAt
string 
optional
productId
string 
optional
method
string 
optional
distributedQuantity
integer 
optional
reservedQuantity
integer 
optional
channel
string 
optional
incomingQuantity
integer 
optional
warehouse
string 
optional
sku
string 
optional
type
string 
optional
user
object 
optional
sortKey
string 
optional
Example
{
    "histories": [
        {
            "previousLiveQuantity": 0,
            "createdAt": "string",
            "productId": "string",
            "method": "string",
            "distributedQuantity": 0,
            "reservedQuantity": 0,
            "channel": "string",
            "incomingQuantity": 0,
            "warehouse": "string",
            "sku": "string",
            "type": "string",
            "user": {
                "name": "string",
                "surname": "string",
                "id": "string"
            },
            "sortKey": "string"
        }
    ]
}
🟠400Bad Request
🟠403Forbidden
🟠404Record Not Found
Modified at 2024-09-17 11:22:35
Previous
Receive Price
Next
Check Batch Status
Built with