Set Physical Inventory

Updated 2 months ago ​by nussi

Overview

This endpoint is used for setting the physical inventory of an individual product in a warehouse. To import physical inventory in bulk via the REST API, see this article.

In order to do that, you must be an authenticated user. For information on how you can authenticate, see: Authentication. As soon as you do authentication and receive a valid token, it needs to be sent in the next call to the API.

Endpoint

For the TT server, this endpoint will be: https://tt.api.sellercloud.com/rest/api/Inventory/SetPhysicalInventory/

For your server, this endpoint will be:

https://{your_server_id}.api.sellercloud.com/rest/api/Inventory/SetPhysicalInventory/

Request

  • Method Type: HttpPut
  • Authorization: Use Bearer Token + token received from token authentication
  • Header info: Content-Type: application/json
  • Body data:

    Parameter

    Data Type

    Description

    Is Required

    WarehouseID

    integer

    ID of existing warehouse

    Yes

    ProductID

    integer

    SKU of existing product

    Yes

    InventoryDate

    datetime

    Inventory Date

    No

    PhysicalQty

    integer

    Physical qty to set

    Yes

    SiteCost

    decimal

    Cost. Optional Field.

    No

    PinCode

    string

    PinCode for verification. Optional Field.

    No

Request Example

{
"WarehouseID": 108,
"ProductID": "test_sku",
"PhysicalQty": 100,
"SiteCost": 10.5,
"InventoryDate": "2019-11-20T11:52:32.385Z",
"PinCode": "test123"
}

Response

  • If server error appears, then response will be with status code 500 => Internal Server Error
  • If physical qty set is successful, response will be status code 200 => Ok


How did we do?