wpify/kaufland-api-php-sdk

This is the Kaufland.de Seller API v2. You can find more information on [https://sellerapi.kaufland.com/](https://sellerapi.kaufland.com/)

dev-master 2023-05-31 16:33 UTC

This package is auto-updated.

Last update: 2024-10-30 02:16:23 UTC


README

This is the Kaufland.de Seller API v2. You can find more information on https://sellerapi.kaufland.com/

Installation & Usage

Requirements

PHP 7.4 and later. Should also work with PHP 8.0.

Composer

To install the bindings via Composer, add the following to composer.json:

{
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/wpify/kaufland-api-php-sdk.git"
    }
  ],
  "require": {
    "wpify/kaufland-api-php-sdk": "*@dev"
  }
}

Then run composer install

Manual Installation

Download the files and include autoload.php:

<?php
require_once('/path/to/OpenAPIClient-php/vendor/autoload.php');

Getting Started

Please follow the installation procedure and then run the following:

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




$apiInstance = new KauflandApiClient\Api\AttributesApi(
    // 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_attribute = 21; // int | The ID of the attribute
$storefront = new \KauflandApiClient\Model\Storefront(); // Storefront | Specifies the store by country
$locale = new \KauflandApiClient\Model\ProductDataLocale(); // ProductDataLocale | Allows clients to consume the data in languages that are different from the storefront-default locale

try {
    $result = $apiInstance->getAttribute($id_attribute, $storefront, $locale);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AttributesApi->getAttribute: ', $e->getMessage(), PHP_EOL;
}

API Endpoints

All URIs are relative to /v2

ClassMethodHTTP requestDescription
AttributesApigetAttributeGET /attributes/{id_attribute}Get attribute by ID
AttributesApigetAttributeByNameGET /attributes/by-name/{name}Get attribute by name
AttributesApigetAttributeListGET /attributesGet an attribute list
AttributesApigetAttributeListBySearchGET /attributes/searchGet attributes by search term
CarriersApigetCarriersGET /carriersGet a list of available carriers
CategoriesApidecideCategoryPOST /categories/decideGuess categories
CategoriesApigetCategoriesListGET /categoriesGet category list by search term
CategoriesApigetCategoryGET /categories/{id_category}Get category by ID
CategoriesApigetCategoryTreeGET /categories/treeGet complete category tree
ImportFilesApicreateInventoryCommandImportFilePOST /import-files/inventory-commandAdd an INVENTORY_COMMAND file URL
ImportFilesApicreateInventoryFeedImportFilePOST /import-files/inventory-feedAdd an INVENTORY_FEED file URL
ImportFilesApicreateOrderCommandImportFilePOST /import-files/order-commandAdd an ORDER_COMMAND file URL
ImportFilesApigetInventoryCommandImportFileGET /import-files/inventory-command/{id_import_file}Get an inventory command import file by ID
ImportFilesApigetInventoryCommandImportFilesGET /import-files/inventory-commandGet a list of your inventory command import files
ImportFilesApigetInventoryFeedImportFileGET /import-files/inventory-feed/{id_import_file}Get an inventory feed import file by ID
ImportFilesApigetInventoryFeedImportFilesGET /import-files/inventory-feedGet a list of your inventory feed import files
ImportFilesApigetOrderCommandImportFileGET /import-files/order-command/{id_import_file}Get an order command import file by ID
ImportFilesApigetOrderCommandImportFilesGET /import-files/order-commandGet a list of your order command import files
InfoApigetAllLocalesGET /info/localeGet values for parameter 'locale'
InfoApigetAllStorefrontsGET /info/storefrontGet values for parameter 'storefront'
OrderInvoicesApideleteOrderInvoiceDELETE /order-invoices/{id_order}/{id_invoice}Delete an order invoice by given order ID and invoice ID
OrderInvoicesApigetOrderInvoiceGET /order-invoices/{id_order}/{id_invoice}Get an order invoice by order ID and invoice ID
OrderInvoicesApigetOrderInvoicesGET /order-invoicesGet a list of order invoices
OrderInvoicesApiuploadOrderInvoicePOST /order-invoices/{id_order}Upload an order invoice to a given order
OrderUnitsApicancelOrderUnitPATCH /order-units/{id_order_unit}/cancelCancel an order unit
OrderUnitsApifulfilOrderUnitPATCH /order-units/{id_order_unit}/fulfilMark an order unit to be in fulfillment
OrderUnitsApigetOrderUnitGET /order-units/{id_order_unit}Get an order unit by ID
OrderUnitsApigetOrderUnitsGET /order-unitsGet a list of order units
OrderUnitsApirefundOrderUnitPATCH /order-units/{id_order_unit}/refundSend a refund to a customer
OrderUnitsApisendOrderUnitPATCH /order-units/{id_order_unit}/sendMark an order unit as sent
OrdersApigetOrderGET /orders/{id_order}Get an order by ID
OrdersApigetOrdersGET /ordersGet a list of orders
ProductDataApicreateProductDataPUT /product-dataAdd new product data for an EAN or replace your existing one
ProductDataApicreateProductDataFilePOST /product-data/import-filesAdd an import file URL
ProductDataApideleteProductDataDELETE /product-data/{ean}Delete your product data for an EAN
ProductDataApigetProductDataGET /product-data/{ean}Get your product data for an EAN
ProductDataApigetProductDataFileGET /product-data/import-files/{id_import_file}Get import file by ID
ProductDataApigetProductDataFileListGET /product-data/import-filesGet import files
ProductDataApigetProductDataStatusGET /product-data/status/{ean}Get the process status for your product data
ProductDataApiupdateProductDataPATCH /product-dataUpdate existing product data for an EAN
ProductsApigetProductGET /products/{id_product}Get product by ID
ProductsApigetProductByEanGET /products/ean/{ean}Get a product by EAN
ProductsApigetProductListGET /products/searchGet a list of products by search term
ReportsApigetReportGET /reports/{id_report}Get meta-data for a single report by ID
ReportsApigetReportsGET /reportsGet a list of your reports
ReportsApirequestAccountListingReportPOST /reports/account-listingQueue an inventory report
ReportsApirequestAccountListingWithShopPriceReportPOST /reports/account-listing-with-shop-priceQueue an inventory report
ReportsApirequestCancellationsReportPOST /reports/cancellationsQueue a cancellations report.
ReportsApirequestCompetitorsComparerReportPOST /reports/competitors-comparerQueue a competitors comparison report
ReportsApirequestEansNotFoundReportPOST /reports/eans-not-foundQueue an EANs not found report
ReportsApirequestNewBookingsReportPOST /reports/bookings-newQueue a bookings report
ReportsApirequestNewSalesReportPOST /reports/sales-newQueue a sales report
ReportsApirequestProductDataChangesReportPOST /reports/product-data-changesQueue a product data changes report
ReportsApirequestProductDataImportFileErrorsReportPOST /reports/product-data-import-file-errorsQueue a product data import file errors report
ReturnUnitsApiacceptReturnUnitPATCH /return-units/{id_return_unit}/acceptAccept a return unit
ReturnUnitsApiclarifyReturnUnitPATCH /return-units/{id_return_unit}/clarifyClarify a return unit
ReturnUnitsApigetReturnUnitGET /return-units/{id_return_unit}Get a return unit by ID
ReturnUnitsApigetReturnUnitsGET /return-unitsGet a list of return units
ReturnUnitsApirejectReturnUnitPATCH /return-units/{id_return_unit}/rejectReject a return unit
ReturnUnitsApirepairReturnUnitPATCH /return-units/{id_return_unit}/repairRepair a return unit
ReturnsApigetReturnGET /returns/{id_return}Get a return by ID
ReturnsApigetReturnsGET /returnsGet a list of returns
ReturnsApiinitiateReturnPOST /returnsInitialize a return
ReturnsApiupdateReturnPUT /returns/{id_return}Add one or more order units to an already existing return
ShipmentsApiaddShipmentPOST /shipmentsAdd a shipment to an order unit which is already marked as sent.
ShippingGroupsApigetShippingGroupGET /shipping-groups/{id_shipping_group}Get a shipping group by ID
ShippingGroupsApigetShippingGroupsGET /shipping-groupsGet the list of your predefined shipping groups
StatusApipingGET /status/pingPing the Marketplace Seller API by Kaufland
SubscriptionsApiaddSubscriptionPOST /subscriptionsSubscribe for event
SubscriptionsApideleteSubscriptionDELETE /subscriptions/{id_subscription}Unsubscribe from event
SubscriptionsApigetSubscriptionGET /subscriptions/{id_subscription}Get a push notification subscription by ID
SubscriptionsApigetSubscriptionsGET /subscriptionsGet a list of your push notification subscriptions
SubscriptionsApiupdateSubscriptionPATCH /subscriptions/{id_subscription}Update subscription
TicketsApicloseTicketPATCH /tickets/{id_ticket}/closeClose a ticket by ID
TicketsApicreateTicketMessagePOST /tickets/{id_ticket}/messagesCreate a new message for the ticket
TicketsApigetTicketGET /tickets/{id_ticket}Get a ticket by ID
TicketsApigetTicketMessagesGET /tickets/messagesGet a list of ticket messages
TicketsApigetTicketsGET /ticketsGet a list of tickets
TicketsApiopenTicketPOST /ticketsOpen a ticket
UnitsApicreateUnitPOST /unitsAdd a unit
UnitsApideleteUnitDELETE /units/{id_unit}Delete a unit
UnitsApigetUnitGET /units/{id_unit}Get a unit by ID
UnitsApigetUnitsGET /unitsGet a list of your units
UnitsApipatchUnitPATCH /units/{id_unit}Update some of the fields of a unit
WarehousesApicreateWarehousePOST /warehousesCreate a new Warehouse
WarehousesApideleteWarehouseDELETE /warehouses/{id_warehouse}Delete a warehouse
WarehousesApigetWarehouseGET /warehouses/{id_warehouse}Get a warehouse by its ID
WarehousesApigetWarehousesGET /warehousesGet a list of your Warehouses
WarehousesApiupdateWarehousePUT /warehouses/{id_warehouse}Update a Warehouse

Models

Authorization

All endpoints do not require authorization.

Tests

To run the tests, use:

composer install
vendor/bin/phpunit

Author

seller-api-support@kaufland-online.de

About this package

This PHP package is automatically generated by the OpenAPI Generator project:

  • API version: 2.10.1
  • Build package: org.openapitools.codegen.languages.PhpClientCodegen