ced_test1/mcf-sdk

There is no license information available for the latest version (dev-master) of this package.

The Selling Partner APIs to manage Reports, Catalog, Pricing, inventory, and fulfillment outbound orders.

dev-master 2023-03-17 09:42 UTC

This package is not auto-updated.

Last update: 2024-06-22 14:48:33 UTC


README

Ced-mcf

The Selling Partner API for Reports lets you retrieve and manage a variety of reports that can help selling partners manage their businesses.

For more information, please visit https://sellercentral.amazon.com/gp/mws/contactus.html.

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/GIT_USER_ID/GIT_REPO_ID.git"
    }
  ],
  "require": {
    "GIT_USER_ID/GIT_REPO_ID": "*@dev"
  }
}

Then run composer install

Manual Installation

Download the files and include autoload.php:

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

Getting Started

Please follow the installation procedure and then run the following:

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




$apiInstance = new Ced\Mcf\Api\ReportsApi(
    // 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()
);
$report_id = 'report_id_example'; // string | The identifier for the report. This identifier is unique only in combination with a seller ID.

try {
    $apiInstance->cancelReport($report_id);
} catch (Exception $e) {
    echo 'Exception when calling ReportsApi->cancelReport: ', $e->getMessage(), PHP_EOL;
}

API Endpoints

All URIs are relative to https://sellingpartnerapi-na.amazon.com

Class Method HTTP request Description
ReportsApi cancelReport DELETE /reports/2021-06-30/reports/{reportId}
ReportsApi cancelReportSchedule DELETE /reports/2021-06-30/schedules/{reportScheduleId}
ReportsApi createReport POST /reports/2021-06-30/reports
ReportsApi createReportSchedule POST /reports/2021-06-30/schedules
ReportsApi getReport GET /reports/2021-06-30/reports/{reportId}
ReportsApi getReportDocument GET /reports/2021-06-30/documents/{reportDocumentId}
ReportsApi getReportSchedule GET /reports/2021-06-30/schedules/{reportScheduleId}
ReportsApi getReportSchedules GET /reports/2021-06-30/schedules
ReportsApi getReports GET /reports/2021-06-30/reports

Models

Authorization

All endpoints do not require authorization.

Tests

To run the tests, use:

composer install
vendor/bin/phpunit

Author

About this package

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

  • API version: 2021-06-30
  • Build package: org.openapitools.codegen.languages.PhpClientCodegen