

AWS Marketplace API 參考已重組。如需支援的 API 操作的詳細資訊，請參閱 [AWS Marketplace API 參考](https://docs.aws.amazon.com/marketplace/latest/APIReference/Welcome.html)。

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 使用 AWS SDKs AWS Marketplace 協議 API 程式碼範例
<a name="service_code_examples_marketplace-agreement"></a>

下列程式碼範例示範如何搭配 AWS 軟體開發套件 (SDK) 使用 AWS Marketplace 協議 API。

如需 AWS SDK 開發人員指南和程式碼範例的完整清單，請參閱 [搭配 AWS SDK 使用此服務](sdk-general-information-section.md)。此主題也包含有關入門的資訊和舊版 SDK 的詳細資訊。

**Contents**
+ [協議](service_code_examples_marketplace-agreement_agreements.md)
  + [接受協議取消請求](marketplace-agreement_example_marketplace-agreement_AcceptAgreementCancellationRequest_section.md)
  + [接受協議付款請求](marketplace-agreement_example_marketplace-agreement_AcceptAgreementPaymentRequest_section.md)
  + [修改 SaaS 合約協議續約期間](marketplace-agreement_example_marketplace-agreement_AmendSaaSContractRenewalTerm_section.md)
  + [為用量定價模型修改 AMI ConfigurableUpfrontPricingTerm](marketplace-agreement_example_marketplace-agreement_AmendAmiConfigurableUpfrontPricingTermForUsagePricingModel_section.md)
  + [建立新的 AMI 免費試用協議](marketplace-agreement_example_marketplace-agreement_NewAmiFreeTrial_section.md)
  + [使用預付款建立新的 SaaS 合約協議](marketplace-agreement_example_marketplace-agreement_NewSaaSContractWithUpfrontPayment_section.md)
  + [取得所有協議 ID](marketplace-agreement_example_marketplace-agreement_GetAllAgreementsIds_section.md)
  + [取得所有協議](marketplace-agreement_example_marketplace-agreement_GetAllAgreements_section.md)
  + [從協議取得客戶 ID](marketplace-agreement_example_marketplace-agreement_GetAgreementCustomer_section.md)
  + [取得協議取消請求的詳細資訊](marketplace-agreement_example_marketplace-agreement_GetAgreementCancellationRequest_section.md)
  + [取得協議付款請求的詳細資訊](marketplace-agreement_example_marketplace-agreement_GetAgreementPaymentRequest_section.md)
  + [從協議取得財務詳細資訊](marketplace-agreement_example_marketplace-agreement_GetAgreementFinancialDetails_section.md)
  + [從協議取得免費試用詳細資訊](marketplace-agreement_example_marketplace-agreement_GetAgreementTermsFreeTrialDetails_section.md)
  + [取得協議的相關資訊](marketplace-agreement_example_marketplace-agreement_DescribeAgreement_section.md)
  + [從協議取得產品和優惠詳細資訊](marketplace-agreement_example_marketplace-agreement_GetProductAndOfferDetailFromAgreement_section.md)
  + [取得協議的 EULA](marketplace-agreement_example_marketplace-agreement_GetAgreementTermsEula_section.md)
  + [取得協議的自動續約條款](marketplace-agreement_example_marketplace-agreement_GetAgreementAutoRenewal_section.md)
  + [取得協議中購買的維度](marketplace-agreement_example_marketplace-agreement_GetAgreementTermsDimensionPurchased_section.md)
  + [取得協議中購買的每個維度的執行個體](marketplace-agreement_example_marketplace-agreement_GetAgreementTermsDimensionInstances_section.md)
  + [取得協議的付費排程](marketplace-agreement_example_marketplace-agreement_GetAgreementTermsPaymentSchedule_section.md)
  + [取得協議中每個維度的定價](marketplace-agreement_example_marketplace-agreement_GetAgreementTermsPricingEachDimension_section.md)
  + [取得協議的定價類型](marketplace-agreement_example_marketplace-agreement_GetAgreementPricingType_section.md)
  + [取得協議的產品類型](marketplace-agreement_example_marketplace-agreement_GetAgreementProductType_section.md)
  + [取得協議的狀態](marketplace-agreement_example_marketplace-agreement_GetAgreementStatus_section.md)
  + [取得協議的支援條款](marketplace-agreement_example_marketplace-agreement_GetAgreementTermsSupportTerm_section.md)
  + [取得協議的條款](marketplace-agreement_example_marketplace-agreement_GetAgreementTerms_section.md)
  + [列出協議取消請求](marketplace-agreement_example_marketplace-agreement_ListAgreementCancellationRequests_section.md)
  + [列出協議付款請求](marketplace-agreement_example_marketplace-agreement_ListAgreementPaymentRequests_section.md)
  + [拒絕協議取消請求](marketplace-agreement_example_marketplace-agreement_RejectAgreementCancellationRequest_section.md)
  + [拒絕協議付款請求](marketplace-agreement_example_marketplace-agreement_RejectAgreementPaymentRequest_section.md)
  + [以協議型優惠取代 SaaS 合約協議](marketplace-agreement_example_marketplace-agreement_ReplaceSaaSContractWithAgreementBasedOffer_section.md)
  + [將 SaaS 免費試用取代為使用定價的合約](marketplace-agreement_example_marketplace-agreement_ReplaceSaaSFreeTrialWithCCP_section.md)
  + [取代以 SaaS 用量為基礎的定價條款，並取消先前的協議](marketplace-agreement_example_marketplace-agreement_ReplaceSaaSUsageBasedPricingTermAndCancel_section.md)
  + [取代 AMI 用量型定價條款，但保留 ConfigurableUpfrontPricingTerm](marketplace-agreement_example_marketplace-agreement_ReplaceAmiUsageBasedPricingTermButNotCupt_section.md)
  + [依帳戶 ID 搜尋協議](marketplace-agreement_example_marketplace-agreement_SearchAgreementsByAccountId_section.md)
  + [依協議 ID 搜尋協議](marketplace-agreement_example_marketplace-agreement_SearchAgreementsById_section.md)
  + [依結束日期搜尋協議](marketplace-agreement_example_marketplace-agreement_SearchAgreementsByEndDate_section.md)
  + [依優惠 ID 搜尋協議](marketplace-agreement_example_marketplace-agreement_SearchAgreementsByOfferId_section.md)
  + [依產品 ID 搜尋協議](marketplace-agreement_example_marketplace-agreement_SearchAgreementsByProductId_section.md)
  + [依狀態搜尋協議](marketplace-agreement_example_marketplace-agreement_SearchAgreementsByByStatus_section.md)
  + [依照一個自訂篩選條件搜尋協議](marketplace-agreement_example_marketplace-agreement_SearchAgreementsByOneFilter_section.md)
  + [依照兩個自訂篩選條件搜尋協議](marketplace-agreement_example_marketplace-agreement_SearchAgreementsByTwoFilters_section.md)
  + [接受協議後更新採購訂單](marketplace-agreement_example_marketplace-agreement_UpdatePurchaseOrdersAfterAgreementAcceptance_section.md)