saurabh-ced / mcf-sdk
Selling Partner API for Fulfillment Outbound 允许您创建应用程序,帮助卖家使用其在亚马逊履行网络中的库存完成多渠道履行订单。您可以获取潜在和现有履行订单的信息。
dev-master
2023-03-17 04:19 UTC
Requires
- php: ^7.4 || ^8.0
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^7.3
- guzzlehttp/psr7: ^1.7 || ^2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.5
- phpunit/phpunit: ^8.0 || ^9.0
This package is not auto-updated.
Last update: 2024-09-28 09:57:44 UTC
README
Selling Partner API for Fulfillment Outbound 允许您创建应用程序,帮助卖家使用其在亚马逊履行网络中的库存完成多渠道履行订单。您可以获取潜在和现有履行订单的信息。
更多信息,请访问 https://sellercentral.amazon.com/gp/mws/contactus.html.
安装和用法
要求
PHP 7.4及以后版本。也应与PHP 8.0兼容。
Composer
要使用Composer安装绑定,请在composer.json
中添加以下内容
{ "repositories": [ { "type": "vcs", "url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git" } ], "require": { "GIT_USER_ID/GIT_REPO_ID": "*@dev" } }
然后运行 composer install
手动安装
下载文件并包含autoload.php
<?php require_once('/path/to/OpenAPIClient-php/vendor/autoload.php');
入门
请按照安装程序进行操作,然后运行以下命令
<?php require_once(__DIR__ . '/vendor/autoload.php'); $apiInstance = new OpenAPI\Client\Api\FbaOutboundApi( // 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() ); $seller_fulfillment_order_id = 'seller_fulfillment_order_id_example'; // string | The identifier assigned to the item by the seller when the fulfillment order was created. try { $result = $apiInstance->cancelFulfillmentOrder($seller_fulfillment_order_id); print_r($result); } catch (Exception $e) { echo 'Exception when calling FbaOutboundApi->cancelFulfillmentOrder: ', $e->getMessage(), PHP_EOL; }
API端点
所有URI相对于 https://sellingpartnerapi-na.amazon.com
模型
- AdditionalLocationInfo
- 地址
- CODSettings
- CancelFulfillmentOrderResponse
- CreateFulfillmentOrderItem
- CreateFulfillmentOrderRequest
- CreateFulfillmentOrderResponse
- CreateFulfillmentReturnRequest
- CreateFulfillmentReturnResponse
- CreateFulfillmentReturnResult
- CreateReturnItem
- CurrentStatus
- DeliveryWindow
- Error
- EventCode
- Feature
- FeatureSettings
- FeatureSku
- Fee
- FulfillmentAction
- FulfillmentOrder
- FulfillmentOrderItem
- FulfillmentOrderStatus
- FulfillmentPolicy
- FulfillmentPreview
- FulfillmentPreviewItem
- FulfillmentPreviewShipment
- FulfillmentReturnItemStatus
- FulfillmentShipment
- FulfillmentShipmentItem
- FulfillmentShipmentPackage
- GetFeatureInventoryResponse
- GetFeatureInventoryResult
- GetFeatureSkuResponse
- GetFeatureSkuResult
- GetFeaturesResponse
- GetFeaturesResult
- GetFulfillmentOrderResponse
- GetFulfillmentOrderResult
- GetFulfillmentPreviewItem
- GetFulfillmentPreviewRequest
- GetFulfillmentPreviewResponse
- GetFulfillmentPreviewResult
- GetPackageTrackingDetailsResponse
- InvalidItemReason
- InvalidItemReasonCode
- InvalidReturnItem
- ListAllFulfillmentOrdersResponse
- ListAllFulfillmentOrdersResult
- ListReturnReasonCodesResponse
- ListReturnReasonCodesResult
- Money
- PackageTrackingDetails
- ReasonCodeDetails
- ReturnAuthorization
- ReturnItem
- ReturnItemDisposition
- ScheduledDeliveryInfo
- ShippingSpeedCategory
- TrackingAddress
- TrackingEvent
- UnfulfillablePreviewItem
- UpdateFulfillmentOrderItem
- UpdateFulfillmentOrderRequest
- UpdateFulfillmentOrderResponse
- Weight
Authorization
所有端点均无需授权。
测试
要运行测试,请使用
composer install vendor/bin/phpunit
作者
关于此包
此PHP包由OpenAPI Generator项目自动生成
- API版本:
2020-07-01
- 构建包:
org.openapitools.codegen.languages.PhpClientCodegen