Skip to content

BatchUpdateWarehouse

Use this api to batch update specified warehouse.

POST /openapi/warehouse/v1/batch-update

Request Parameters

Parameter Type Required Description
warehouseUpdateDTOList array(WarehouseUpdateInfoDTO) true Warehouse update parameters

WarehouseUpdateInfoDTO

Parameter Type Required Description
warehouseId string true warehouse id
warehouseName string true warehouse name
warehouseCode string false warehouse code
warehouseType string true Please refer WarehouseType for details
provider string true Please refer WarehouseProvider for details
areaId string false area id
address string false warehouse address

Response Parameters

Name Type Description
successList array(SuccessWarehouse)
errorList array(ErrorWarehouse)

SuccessWarehouse

Name Type Description
warehouseId string Modify success warehouse id

ErrorWarehouse

Name Type Description
warehouseId string Modify error warehouse id
message string Error message

Request Example

Example

curl --location --request POST '{Ginee Host}/openapi/warehouse/v1/batch-update' \
--header 'Content-Type: application/json' \
--header 'X-Advai-Country: ID' \
--header 'Authorization: 2aedf7919e5e6cb4:n0IECNXloTKCTSSxeBEYhzmeVClHmgvw4ruI3W2f9eY=' \
--data-raw '{"warehouseUpdateDTOList" :
[
    {
    "warehouseCode": "4c3e3492-1fc8-7a45-0e3b001",
    "warehouseName": "威海威速仓库[6]+test003",
    "areaId": "",
    "address": "测试地址002",
    "status": true,
    "warehouseType": "THIRD_PARTY_WAREHOUSE",
    "provider": "YILIAN",
    "warehouseId": "WW61C56948652205000113CD6D"
    }
]
}'

Success

    {
    "code": "SUCCESS",
    "message": "成功",
    "data": {
        "successList": [
            {
                "warehouseId": "WW61C56948652205000113CD6D"
            }
        ],
        "errorList": []
    },
    "extra": null,
    "pricingStrategy": "PAY"
}