# amazon-utils **Repository Path**: lyg945/amazon-utils ## Basic Information - **Project Name**: amazon-utils - **Description**: 亚马逊java api - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-09-20 - **Last Updated**: 2024-09-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # swagger-java-client Selling Partner API for Orders - API version: v0 - Build date: 2024-09-20T09:03:02.625+08:00 Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools. _Note:_ For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don't show up in the response). For more information, please visit [https://sellercentral.amazon.com/gp/mws/contactus.html](https://sellercentral.amazon.com/gp/mws/contactus.html) *Automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen)* ## Requirements Building the API client library requires: 1. Java 1.7+ 2. Maven/Gradle ## Installation To install the API client library to your local Maven repository, simply execute: ```shell mvn clean install ``` To deploy it to a remote Maven repository instead, configure the settings of the repository and execute: ```shell mvn clean deploy ``` Refer to the [OSSRH Guide](http://central.sonatype.org/pages/ossrh-guide.html) for more information. ### Maven users Add this dependency to your project's POM: ```xml io.swagger swagger-java-client 2.0 compile ``` ### Gradle users Add this dependency to your project's build file: ```groovy compile "io.swagger:swagger-java-client:2.0" ``` ### Others At first generate the JAR by executing: ```shell mvn clean package ``` Then manually install the following JARs: * `target/swagger-java-client-2.0.jar` * `target/lib/*.jar` ## Getting Started Please follow the [installation](#installation) instruction and execute the following Java code: ```java import io.swagger.client.*; import io.swagger.client.auth.*; import io.swagger.client.model.*; import io.swagger.client.api.SellersApi; import java.io.File; import java.util.*; public class SellersApiExample { public static void main(String[] args) { SellersApi apiInstance = new SellersApi(); try { GetAccountResponse result = apiInstance.getAccount(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling SellersApi#getAccount"); e.printStackTrace(); } } } ``` ## Documentation for API Endpoints All URIs are relative to *https://sellingpartnerapi-na.amazon.com* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- *SellersApi* | [**getAccount**](docs/SellersApi.md#getAccount) | **GET** /sellers/v1/account | *SellersApi* | [**getMarketplaceParticipations**](docs/SellersApi.md#getMarketplaceParticipations) | **GET** /sellers/v1/marketplaceParticipations | ```java import io.swagger.client.*; import io.swagger.client.auth.*; import io.swagger.client.model.*; import io.swagger.client.api.MerchantFulfillmentApi; import java.io.File; import java.util.*; public class MerchantFulfillmentApiExample { public static void main(String[] args) { MerchantFulfillmentApi apiInstance = new MerchantFulfillmentApi(); String shipmentId = "shipmentId_example"; // String | The Amazon-defined shipment identifier for the shipment to cancel. try { CancelShipmentResponse result = apiInstance.cancelShipment(shipmentId); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling MerchantFulfillmentApi#cancelShipment"); e.printStackTrace(); } } } ``` ## Documentation for API Endpoints All URIs are relative to *https://sellingpartnerapi-na.amazon.com* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- *MerchantFulfillmentApi* | [**cancelShipment**](docs/MerchantFulfillmentApi.md#cancelShipment) | **DELETE** /mfn/v0/shipments/{shipmentId} | *MerchantFulfillmentApi* | [**createShipment**](docs/MerchantFulfillmentApi.md#createShipment) | **POST** /mfn/v0/shipments | *MerchantFulfillmentApi* | [**getAdditionalSellerInputs**](docs/MerchantFulfillmentApi.md#getAdditionalSellerInputs) | **POST** /mfn/v0/additionalSellerInputs | *MerchantFulfillmentApi* | [**getEligibleShipmentServices**](docs/MerchantFulfillmentApi.md#getEligibleShipmentServices) | **POST** /mfn/v0/eligibleShippingServices | *MerchantFulfillmentApi* | [**getShipment**](docs/MerchantFulfillmentApi.md#getShipment) | **GET** /mfn/v0/shipments/{shipmentId} | ```java import io.swagger.client.*; import io.swagger.client.auth.*; import io.swagger.client.model.*; import io.swagger.client.api.OrdersV0Api; import java.io.File; import java.util.*; public class OrdersV0ApiExample { public static void main(String[] args) { OrdersV0Api apiInstance = new OrdersV0Api(); String orderId = "orderId_example"; // String | An Amazon-defined order identifier, in 3-7-7 format. ConfirmShipmentRequest payload = new ConfirmShipmentRequest(); // ConfirmShipmentRequest | Request body of `confirmShipment`. try { apiInstance.confirmShipment(orderId, payload); } catch (ApiException e) { System.err.println("Exception when calling OrdersV0Api#confirmShipment"); e.printStackTrace(); } } } ``` ## Documentation for API Endpoints All URIs are relative to *https://sellingpartnerapi-na.amazon.com* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- *OrdersV0Api* | [**confirmShipment**](docs/OrdersV0Api.md#confirmShipment) | **POST** /orders/v0/orders/{orderId}/shipmentConfirmation | *OrdersV0Api* | [**getOrder**](docs/OrdersV0Api.md#getOrder) | **GET** /orders/v0/orders/{orderId} | *OrdersV0Api* | [**getOrderAddress**](docs/OrdersV0Api.md#getOrderAddress) | **GET** /orders/v0/orders/{orderId}/address | *OrdersV0Api* | [**getOrderBuyerInfo**](docs/OrdersV0Api.md#getOrderBuyerInfo) | **GET** /orders/v0/orders/{orderId}/buyerInfo | *OrdersV0Api* | [**getOrderFulfillmentInstructions**](docs/OrdersV0Api.md#getOrderFulfillmentInstructions) | **GET** /orders/v0/orders/{orderId}/fulfillmentInstructions | *OrdersV0Api* | [**getOrderItems**](docs/OrdersV0Api.md#getOrderItems) | **GET** /orders/v0/orders/{orderId}/orderItems | *OrdersV0Api* | [**getOrderItemsBuyerInfo**](docs/OrdersV0Api.md#getOrderItemsBuyerInfo) | **GET** /orders/v0/orders/{orderId}/orderItems/buyerInfo | *OrdersV0Api* | [**getOrderRegulatedInfo**](docs/OrdersV0Api.md#getOrderRegulatedInfo) | **GET** /orders/v0/orders/{orderId}/regulatedInfo | *OrdersV0Api* | [**getOrders**](docs/OrdersV0Api.md#getOrders) | **GET** /orders/v0/orders | *OrdersV0Api* | [**updateVerificationStatus**](docs/OrdersV0Api.md#updateVerificationStatus) | **PATCH** /orders/v0/orders/{orderId}/regulatedInfo | *ShipmentApi* | [**updateShipmentStatus**](docs/ShipmentApi.md#updateShipmentStatus) | **POST** /orders/v0/orders/{orderId}/shipment | ```java import io.swagger.client.*; import io.swagger.client.auth.*; import io.swagger.client.model.*; import io.swagger.client.api.ListingsApi; import java.io.File; import java.util.*; public class ListingsApiExample { public static void main(String[] args) { ListingsApi apiInstance = new ListingsApi(); String sellerId = "sellerId_example"; // String | A selling partner identifier, such as a merchant account or vendor code. String sku = "sku_example"; // String | A selling partner provided identifier for an Amazon listing. List marketplaceIds = Arrays.asList("ATVPDKIKX0DER"); // List | A comma-delimited list of Amazon marketplace identifiers for the request. String issueLocale = "en_US"; // String | A locale for localization of issues. When not provided, the default language code of the first marketplace is used. Examples: `en_US`, `fr_CA`, `fr_FR`. Localized messages default to `en_US` when a localization is not available in the specified locale. try { ListingsItemSubmissionResponse result = apiInstance.deleteListingsItem(sellerId, sku, marketplaceIds, issueLocale); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ListingsApi#deleteListingsItem"); e.printStackTrace(); } } } ``` ## Documentation for API Endpoints All URIs are relative to *https://sellingpartnerapi-na.amazon.com* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- *ListingsApi* | [**deleteListingsItem**](docs/ListingsApi.md#deleteListingsItem) | **DELETE** /listings/2021-08-01/items/{sellerId}/{sku} | *ListingsApi* | [**getListingsItem**](docs/ListingsApi.md#getListingsItem) | **GET** /listings/2021-08-01/items/{sellerId}/{sku} | *ListingsApi* | [**patchListingsItem**](docs/ListingsApi.md#patchListingsItem) | **PATCH** /listings/2021-08-01/items/{sellerId}/{sku} | *ListingsApi* | [**putListingsItem**](docs/ListingsApi.md#putListingsItem) | **PUT** /listings/2021-08-01/items/{sellerId}/{sku} | *ListingsApi* | [**searchListingsItems**](docs/ListingsApi.md#searchListingsItems) | **GET** /listings/2021-08-01/items/{sellerId} | ```java import io.swagger.client.*; import io.swagger.client.auth.*; import io.swagger.client.model.*; import io.swagger.client.api.ProductPricingApi; import java.io.File; import java.util.*; public class ProductPricingApiExample { public static void main(String[] args) { ProductPricingApi apiInstance = new ProductPricingApi(); CompetitiveSummaryBatchRequest requests = new CompetitiveSummaryBatchRequest(); // CompetitiveSummaryBatchRequest | The batch of `getCompetitiveSummary` requests. try { CompetitiveSummaryBatchResponse result = apiInstance.getCompetitiveSummary(requests); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ProductPricingApi#getCompetitiveSummary"); e.printStackTrace(); } } } ``` ## Documentation for API Endpoints All URIs are relative to *https://sellingpartnerapi-na.amazon.com* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- *ProductPricingApi* | [**getCompetitiveSummary**](docs/ProductPricingApi.md#getCompetitiveSummary) | **POST** /batches/products/pricing/2022-05-01/items/competitiveSummary | *ProductPricingApi* | [**getFeaturedOfferExpectedPriceBatch**](docs/ProductPricingApi.md#getFeaturedOfferExpectedPriceBatch) | **POST** /batches/products/pricing/2022-05-01/offer/featuredOfferExpectedPrice | ## Documentation for Models - [Address](docs/Address.md) - [AddressExtendedFields](docs/AddressExtendedFields.md) - [AssociatedItem](docs/AssociatedItem.md) - [AssociationType](docs/AssociationType.md) - [AutomatedShippingSettings](docs/AutomatedShippingSettings.md) - [BusinessHours](docs/BusinessHours.md) - [BuyerCustomizedInfoDetail](docs/BuyerCustomizedInfoDetail.md) - [BuyerInfo](docs/BuyerInfo.md) - [BuyerRequestedCancel](docs/BuyerRequestedCancel.md) - [BuyerTaxInfo](docs/BuyerTaxInfo.md) - [BuyerTaxInformation](docs/BuyerTaxInformation.md) - [ConfirmShipmentErrorResponse](docs/ConfirmShipmentErrorResponse.md) - [ConfirmShipmentOrderItem](docs/ConfirmShipmentOrderItem.md) - [ConfirmShipmentOrderItemsList](docs/ConfirmShipmentOrderItemsList.md) - [ConfirmShipmentRequest](docs/ConfirmShipmentRequest.md) - [ConstraintType](docs/ConstraintType.md) - [DeliveryPreferences](docs/DeliveryPreferences.md) - [EasyShipShipmentStatus](docs/EasyShipShipmentStatus.md) - [ElectronicInvoiceStatus](docs/ElectronicInvoiceStatus.md) - [Error](docs/Error.md) - [ErrorList](docs/ErrorList.md) - [ExceptionDates](docs/ExceptionDates.md) - [FulfillmentInstruction](docs/FulfillmentInstruction.md) - [FulfillmentInstructions](docs/FulfillmentInstructions.md) - [FulfillmentLocation](docs/FulfillmentLocation.md) - [FulfillmentPlan](docs/FulfillmentPlan.md) - [FulfillmentPlanConstraintType](docs/FulfillmentPlanConstraintType.md) - [FulfillmentPlanItem](docs/FulfillmentPlanItem.md) - [FulfillmentPlanShippingConstraints](docs/FulfillmentPlanShippingConstraints.md) - [GetOrderAddressResponse](docs/GetOrderAddressResponse.md) - [GetOrderBuyerInfoResponse](docs/GetOrderBuyerInfoResponse.md) - [GetOrderFulfillmentInstructionsResponse](docs/GetOrderFulfillmentInstructionsResponse.md) - [GetOrderItemsBuyerInfoResponse](docs/GetOrderItemsBuyerInfoResponse.md) - [GetOrderItemsResponse](docs/GetOrderItemsResponse.md) - [GetOrderRegulatedInfoResponse](docs/GetOrderRegulatedInfoResponse.md) - [GetOrderResponse](docs/GetOrderResponse.md) - [GetOrdersResponse](docs/GetOrdersResponse.md) - [ItemBuyerInfo](docs/ItemBuyerInfo.md) - [MarketplaceTaxInfo](docs/MarketplaceTaxInfo.md) - [Measurement](docs/Measurement.md) - [Money](docs/Money.md) - [OpenInterval](docs/OpenInterval.md) - [OpenTimeInterval](docs/OpenTimeInterval.md) - [Order](docs/Order.md) - [OrderAddress](docs/OrderAddress.md) - [OrderBuyerInfo](docs/OrderBuyerInfo.md) - [OrderItem](docs/OrderItem.md) - [OrderItemBuyerInfo](docs/OrderItemBuyerInfo.md) - [OrderItemBuyerInfoList](docs/OrderItemBuyerInfoList.md) - [OrderItemList](docs/OrderItemList.md) - [OrderItems](docs/OrderItems.md) - [OrderItemsBuyerInfoList](docs/OrderItemsBuyerInfoList.md) - [OrderItemsInner](docs/OrderItemsInner.md) - [OrderItemsList](docs/OrderItemsList.md) - [OrderList](docs/OrderList.md) - [OrderRegulatedInfo](docs/OrderRegulatedInfo.md) - [OrdersList](docs/OrdersList.md) - [OtherDeliveryAttributes](docs/OtherDeliveryAttributes.md) - [PackageDetail](docs/PackageDetail.md) - [PaymentExecutionDetailItem](docs/PaymentExecutionDetailItem.md) - [PaymentExecutionDetailItemList](docs/PaymentExecutionDetailItemList.md) - [PaymentMethodDetailItemList](docs/PaymentMethodDetailItemList.md) - [PointsGrantedDetail](docs/PointsGrantedDetail.md) - [PreferredDeliveryTime](docs/PreferredDeliveryTime.md) - [PrescriptionDetail](docs/PrescriptionDetail.md) - [ProductInfoDetail](docs/ProductInfoDetail.md) - [PromotionIdList](docs/PromotionIdList.md) - [RegulatedInformation](docs/RegulatedInformation.md) - [RegulatedInformationField](docs/RegulatedInformationField.md) - [RegulatedOrderVerificationStatus](docs/RegulatedOrderVerificationStatus.md) - [RejectionReason](docs/RejectionReason.md) - [ShipmentStatus](docs/ShipmentStatus.md) - [ShippingConstraints](docs/ShippingConstraints.md) - [ShippingInstructions](docs/ShippingInstructions.md) - [SubstitutionOption](docs/SubstitutionOption.md) - [SubstitutionOptionList](docs/SubstitutionOptionList.md) - [SubstitutionPreferences](docs/SubstitutionPreferences.md) - [TaxClassification](docs/TaxClassification.md) - [TaxCollection](docs/TaxCollection.md) - [TransparencyCodeList](docs/TransparencyCodeList.md) - [UpdateShipmentStatusErrorResponse](docs/UpdateShipmentStatusErrorResponse.md) - [UpdateShipmentStatusRequest](docs/UpdateShipmentStatusRequest.md) - [UpdateVerificationStatusErrorResponse](docs/UpdateVerificationStatusErrorResponse.md) - [UpdateVerificationStatusRequest](docs/UpdateVerificationStatusRequest.md) - [UpdateVerificationStatusRequestBody](docs/UpdateVerificationStatusRequestBody.md) - [ValidVerificationDetail](docs/ValidVerificationDetail.md) - [VerificationDetails](docs/VerificationDetails.md) - [VerificationStatus](docs/VerificationStatus.md) ## Documentation for Authorization All endpoints do not require authorization. Authentication schemes defined for the API: ## Recommendation It's recommended to create an instance of `ApiClient` per thread in a multithreaded environment to avoid any potential issues. ## Author