Skip to content

Latest commit

 

History

History
260 lines (182 loc) · 8 KB

WarehousesApi.md

File metadata and controls

260 lines (182 loc) · 8 KB

Kaufland\Seller\WarehousesApi

All URIs are relative to /v2

Method HTTP request Description
createWarehouse POST /warehouses Create a new Warehouse
deleteWarehouse DELETE /warehouses/{id_warehouse} Delete a warehouse
getWarehouse GET /warehouses/{id_warehouse} Get a warehouse by its ID
getWarehouses GET /warehouses Get a list of your Warehouses
updateWarehouse PUT /warehouses/{id_warehouse} Update a Warehouse

createWarehouse

\Kaufland\Seller\Model\ApiResponseWarehouse_ createWarehouse($body)

Create a new Warehouse

Create a new warehouse.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$apiInstance = new Kaufland\Seller\Api\WarehousesApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$body = new \Kaufland\Seller\Model\WarehouseBodyRequest(); // \Kaufland\Seller\Model\WarehouseBodyRequest | Information about the warehouse that will be generated

try {
    $result = $apiInstance->createWarehouse($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling WarehousesApi->createWarehouse: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
body \Kaufland\Seller\Model\WarehouseBodyRequest Information about the warehouse that will be generated

Return type

\Kaufland\Seller\Model\ApiResponseWarehouse_

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

deleteWarehouse

deleteWarehouse($id_warehouse)

Delete a warehouse

Delete a warehouse.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$apiInstance = new Kaufland\Seller\Api\WarehousesApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$id_warehouse = 789; // int | Internal ID of Warehouse, unique across all Warehouses

try {
    $apiInstance->deleteWarehouse($id_warehouse);
} catch (Exception $e) {
    echo 'Exception when calling WarehousesApi->deleteWarehouse: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
id_warehouse int Internal ID of Warehouse, unique across all Warehouses

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getWarehouse

\Kaufland\Seller\Model\ApiResponseWarehouse_ getWarehouse($id_warehouse)

Get a warehouse by its ID

Gets a warehouse by id_warehouse.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$apiInstance = new Kaufland\Seller\Api\WarehousesApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$id_warehouse = 789; // int | Internal ID of Warehouse, unique across all Warehouses

try {
    $result = $apiInstance->getWarehouse($id_warehouse);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling WarehousesApi->getWarehouse: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
id_warehouse int Internal ID of Warehouse, unique across all Warehouses

Return type

\Kaufland\Seller\Model\ApiResponseWarehouse_

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getWarehouses

\Kaufland\Seller\Model\CollectionApiResponseWarehouse_ getWarehouses($limit, $offset)

Get a list of your Warehouses

Get a list of your warehouses.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$apiInstance = new Kaufland\Seller\Api\WarehousesApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$limit = 30; // int | Desired size of result set
$offset = 0; // int | Offset applied to result set

try {
    $result = $apiInstance->getWarehouses($limit, $offset);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling WarehousesApi->getWarehouses: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
limit int Desired size of result set [optional] [default to 30]
offset int Offset applied to result set [optional] [default to 0]

Return type

\Kaufland\Seller\Model\CollectionApiResponseWarehouse_

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

updateWarehouse

\Kaufland\Seller\Model\ApiResponseWarehouse_ updateWarehouse($body, $id_warehouse)

Update a Warehouse

Update a warehouse.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$apiInstance = new Kaufland\Seller\Api\WarehousesApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$body = new \Kaufland\Seller\Model\WarehouseBodyRequest(); // \Kaufland\Seller\Model\WarehouseBodyRequest | Update Object
$id_warehouse = 789; // int | Internal ID of Warehouse, unique across all Warehouses

try {
    $result = $apiInstance->updateWarehouse($body, $id_warehouse);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling WarehousesApi->updateWarehouse: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
body \Kaufland\Seller\Model\WarehouseBodyRequest Update Object
id_warehouse int Internal ID of Warehouse, unique across all Warehouses

Return type

\Kaufland\Seller\Model\ApiResponseWarehouse_

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]