Mircate
  1. Product Supplier
Mircate
  • Introduction
  • Authentication
  • Errors
  • Change Logs
  • Promotion
    • Calculate
      POST
    • Start Transaction
      POST
    • Commit Transaction
      POST
    • Revert Transaction
      POST
    • Cancel Transaction
      POST
    • Get Active Promotions
      GET
  • Loyalty
    • Receive Event
      POST
    • Calculate
      POST
    • Start Transaction
      POST
    • Commit Transaction
      POST
    • Cancel Transaction
      POST
    • List Measurements
      POST
  • Wallet
    • Get Wallet
    • Create Wallet
    • Create Account
    • Get Account
    • Get Accounts
    • List Accounts
    • List Transactions
    • Add Account
    • Remove Account
    • Fix
    • Load
    • Spend
    • Refund
    • Cancel
  • PIM
    • Get Products
    • Get Product Settings
    • Get Catalog Settings
    • Upsert Product
    • Upsert Category
    • Bulk Product Upsert
    • Check Batch Status
    • Delete Product
    • Attach Product Attribute Image
    • Attach Category Image
    • Get Image
    • Upsert Attributes
    • Delete Attribute
    • Upsert Attribute Options
    • Upsert Attribute Option
    • Delete Attribute Option
  • 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 Price

Production
https://api.b2b.retter.io/5p1hp1d2t
Production
https://api.b2b.retter.io/5p1hp1d2t
POST
https://api.b2b.retter.io/5p1hp1d2t
/CALL/MerchantStockPriceImporter/receivePrice/{B2B_MERCHANT_PROJECT_ID}
Merchant - Product Supplier
Last modified:8 months ago
This function is responsible for receiving incoming price 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
B2B_MERCHANT_PROJECT_ID
string 
required
Header Params
x-api-key
string 
optional
{{STOCK_PRICE_API_KEY}}
Body Params application/json
frequency
integer 
optional
When bulk stock and price submissions create excessive load, the frequency value can be used to slow down the pushStock/pushPrice operations within each 500-unit batch. It takes values between 0 and 10 in seconds.
For example: If you set it to 1, it will introduce a 1-second delay between each push operation, completing the pushStock operations in approximately 500 seconds in total when sending 1.
bulkOperationId
string 
optional
All of the bulk stock/price submissions are tracked with the same operation ID, allowing batch operations to be monitored collectively with this ID. A batchId is created for every five hundred-unit batch. The bulkOperationId should be the same for all five-hundred-unit batches sent at the same time.
For example, if you have sent 10 receivePrice requests for 5000 products, all of them should have the same bulkOperationId.
items
array [object {4}] 
optional
prices
array [object {4}] 
optional
sku
string 
required
warehouseCode
string 
required
channel
string 
optional
Example
{
  "frequency": 0,
  "bulkOperationId": "string",
  "items": [
    {
      "prices": [
        {
          "priceType": "string",
          "price": 0,
          "startDate": "string",
          "endDate": "string"
        }
      ],
      "sku": "string",
      "warehouseCode": "string",
      "channel": "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
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
curl --location --request POST 'https://api.b2b.retter.io/5p1hp1d2t/CALL/MerchantStockPriceImporter/receivePrice/' \
--header 'Content-Type: application/json' \
--header 'x-api-key;' \
--data-raw '{
    "frequency": 0,
    "bulkOperationId": "string",
    "items": [
        {
            "prices": [
                {
                    "priceType": "string",
                    "price": 0,
                    "startDate": "string",
                    "endDate": "string"
                }
            ],
            "sku": "string",
            "warehouseCode": "string",
            "channel": "string"
        }
    ]
}'

Responses

🟢200OK
application/json
OK
Body
batchId
string 
required
bulkOperationId
string 
optional
frequency
integer 
optional
Example
{
  "batchId": "string",
  "bulkOperationId": "string",
  "frequency": 0
}
🟠400Bad Request
🟠403Forbidden
🟠404Record Not Found
Modified at 8 months ago
Previous
Receive Stock
Next
Get Stock/Price History
Built with