Mircate
  1. Sales Channel
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
        POST
      • Cancel Stock
        POST
      • Commit Stock
        POST
      • Refund Stock
        POST
      • Get Current Stock
        POST
    • Product Supplier
      • Receive Stock
      • Receive Price
      • Get Stock/Price History
      • Check Batch Status
      • Remove My Products
      • Clean My Products
      • Export Stock/Price
      • List Exports
      • Get Exported Files
    • 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. Sales Channel

Get Current Stock

Production
https://api.b2b.retter.io/5p1hp1d2t
Production
https://api.b2b.retter.io/5p1hp1d2t
POST
https://api.b2b.retter.io/5p1hp1d2t
/CALL/{B2B_CHANNEL}/getCurrentStock/{B2B_MERCHANT_PROJECT_ID}
Merchant - Sales Channel
Last modified:2024-09-17 11:22:35
The Get Current Stock method is used to query the current stock quantity.

Request

Authorization
Add parameter in header
x-api-key
Example:
x-api-key: ********************
Path Params
B2B_CHANNEL
string 
required
B2B_MERCHANT_PROJECT_ID
string 
required
Body Params application/json
items
array [object {2}] 
optional
sku
string 
required
warehouse
string 
required
Example
{
    "items": [
        {
            "sku": "string",
            "warehouse": "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//getCurrentStock/' \
--header 'Content-Type: application/json' \
--header 'x-api-key;' \
--data-raw '{
    "items": [
        {
            "sku": "string",
            "warehouse": "string"
        }
    ]
}'

Responses

🟢200OK
application/json
OK
Body
items
array [object {3}] 
optional
warehouse
string 
optional
sku
string 
optional
currentQuantity
integer 
optional
Example
{
    "items": [
        {
            "warehouse": "string",
            "sku": "string",
            "currentQuantity": 0
        }
    ]
}
🟠400Bad Request
🟠403Forbidden
🟠404Record Not Found
Modified at 2024-09-17 11:22:35
Previous
Refund Stock
Next
Receive Stock
Built with