Bin Location Set

POST{{api_url}}/shop/inventory/bin_location_update

Set the bin location for a sku in a warehouses

Authorization

Bearer token, sent in the Authorization header. Inherited from the collection.

Headers

KeyValueDescription
Content-Typeapplication/json

Body

[
    {
        "sku": "CF226A-C",
        "warehouse_id": 9,
        "bin_location": "bin09"
    },
    {
        "sku": "CF281A-C",
        "warehouse_id": 14,
        "bin_location": "bin14"
    },
    {
        "sku": "CF281A-C",
        "warehouse_id": 80,
        "bin_location": "bin80"
    }
]

Example Request

curl --location --request POST '{{api_url}}/shop/inventory/bin_location_update' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{auth_token}}' \
--data '[
    {
        "sku": "CF226A-C",
        "warehouse_id": 9,
        "bin_location": "bin09"
    },
    {
        "sku": "CF281A-C",
        "warehouse_id": 14,
        "bin_location": "bin14"
    },
    {
        "sku": "CF281A-C",
        "warehouse_id": 80,
        "bin_location": "bin80"
    }
]'

Example Responses

Bin Location Set

Request

curl --location --request POST '{{api_url}}/shop/inventory/bin_location_update' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data '[
    {
        "sku": "CF226A-C",
        "warehouse_id": 9,
        "bin_location": "bin09"
    },
    {
        "sku": "CF281A-C",
        "warehouse_id": 14,
        "bin_location": "bin14"
    },
    {
        "sku": "CF281A-C",
        "warehouse_id": 80,
        "bin_location": "bin80"
    }
]'

Response 200 OK

[
    {
        "sku": "CF226A-C",
        "warehouse_id": 9,
        "bin_location": "bin09"
    },
    {
        "sku": "CF281A-C",
        "warehouse_id": 14,
        "bin_location": "bin14"
    },
    {
        "sku": "CF281A-C",
        "warehouse_id": 80,
        "bin_location": "bin80"
    }
]