Skip to content

Latest commit

 

History

History
56 lines (38 loc) · 1.98 KB

ShipmentsApi.md

File metadata and controls

56 lines (38 loc) · 1.98 KB

Kaufland\Seller\ShipmentsApi

All URIs are relative to /v2

Method HTTP request Description
addShipment POST /shipments Add a shipment to an order unit which is already marked as sent.

addShipment

addShipment($body)

Add a shipment to an order unit which is already marked as sent.

Add a shipment to an order unit which is already marked as sent by providing a carrier code and a tracking number.
Valid values for carrier_code can be found in the <a href="https://sellerapi.kaufland.com/?page=order-files#carrier-codes\" target="_blank">documentation.

Example

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

$apiInstance = new Kaufland\Seller\Api\ShipmentsApi(
    // 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\AddShipmentRequest(); // \Kaufland\Seller\Model\AddShipmentRequest | Request body containing information about a shipment related to an order unit

try {
    $apiInstance->addShipment($body);
} catch (Exception $e) {
    echo 'Exception when calling ShipmentsApi->addShipment: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
body \Kaufland\Seller\Model\AddShipmentRequest Request body containing information about a shipment related to an order unit

Return type

void (empty response body)

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]