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

Receive Stock

Production
https://api.b2b.retter.io/5p1hp1d2t
Production
https://api.b2b.retter.io/5p1hp1d2t
POST
https://api.b2b.retter.io/5p1hp1d2t
/CALL/MerchantStockPriceImporter/receiveStock/{B2B_MERCHANT_PROJECT_ID}
Last modified:2024-09-17 11:22:35
This function is responsible for receiving incoming stock updates for a merchant's products. It conveys the products to MerchantStockPriceImporter, which checks if the received channels are valid for the merchant and process the stock updates in its unique state.

Request

Authorization
Add parameter in header
x-api-key
Example:
x-api-key: ********************
Path Params

Header Params

Body Params application/json

Example
{
    "frequency": 0,
    "bulkOperationId": "string",
    "items": [
        {
            "warehouseCode": "string",
            "sku": "string",
            "channel": "string",
            "quantity": 0
        }
    ]
}

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/MerchantStockPriceImporter/receiveStock/' \
--header 'Content-Type: application/json' \
--header 'x-api-key;' \
--data-raw '{
    "frequency": 0,
    "bulkOperationId": "string",
    "items": [
        {
            "warehouseCode": "string",
            "sku": "string",
            "channel": "string",
            "quantity": 0
        }
    ]
}'

Responses

🟢200OK
application/json
OK
Body

Example
{
    "batchId": "string",
    "bulkOperationId": "string",
    "frequency": 0
}
🟠400Bad Request
🟠403Forbidden
🟠404Record Not Found
Modified at 2024-09-17 11:22:35
Previous
Get Current Stock
Next
Receive Price
Built with