Skip to content

Latest commit

 

History

History
59 lines (41 loc) · 2.19 KB

PlaygroundApi.md

File metadata and controls

59 lines (41 loc) · 2.19 KB

Kaufland\Seller\PlaygroundApi

All URIs are relative to /v2

Method HTTP request Description
createPlaygroundOrder POST /playground/orders Creates a dummy order on the kaufland playground API environment.

createPlaygroundOrder

\Kaufland\Seller\Model\BaseCollectionApiResponseCreatedOrder_ createPlaygroundOrder($body, $storefront)

Creates a dummy order on the kaufland playground API environment.

Create a playground order. THIS ENDPOINT IS ONLY EXPOSED ON THE PLAYGROUND ENVIRONMENT.

Example

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

$apiInstance = new Kaufland\Seller\Api\PlaygroundApi(
    // 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\CreateCollectionInputUnitsDetails_(); // \Kaufland\Seller\Model\CreateCollectionInputUnitsDetails_ | 
$storefront = new \Kaufland\Seller\Model\Storefront(); // \Kaufland\Seller\Model\Storefront | Locale of storefront

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

Parameters

Name Type Description Notes
body \Kaufland\Seller\Model\CreateCollectionInputUnitsDetails_
storefront \Kaufland\Seller\Model\Storefront Locale of storefront

Return type

\Kaufland\Seller\Model\BaseCollectionApiResponseCreatedOrder_

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]