

There are more AWS SDK examples available in the [AWS Doc SDK Examples](https://github.com/awsdocs/aws-doc-sdk-examples) GitHub repo.

# Code examples for AWS Marketplace Agreement API using AWS SDKs
<a name="marketplace-agreement_code_examples"></a>

The following code examples show you how to use AWS Marketplace Agreement API with an AWS software development kit (SDK).

**More resources**
+  **[AWS Marketplace Agreement API Seller Guide](https://docs.aws.amazon.com/marketplace/latest/userguide/what-is-marketplace.html)** – More information about AWS Marketplace Agreement API.
+ **[AWS Marketplace Agreement API API Reference](https://docs.aws.amazon.com/marketplace-agreements/latest/api-reference/welcome.html)** – Details about all available AWS Marketplace Agreement API actions.
+ **[AWS Developer Center](https://aws.amazon.com/developer/code-examples/?awsf.sdk-code-examples-product=product%23)** – Code examples that you can filter by category or full-text search.
+ **[AWS SDK Examples](https://github.com/awsdocs/aws-doc-sdk-examples)** – GitHub repo with complete code in preferred languages. Includes instructions for setting up and running the code.

**Contents**
+ [Agreements](marketplace-agreement_code_examples_agreements.md)
  + [Get all agreement IDs](marketplace-agreement_example_marketplace-agreement_GetAllAgreementsIds_section.md)
  + [Get all agreements](marketplace-agreement_example_marketplace-agreement_GetAllAgreements_section.md)
  + [Get customer ID from an agreement](marketplace-agreement_example_marketplace-agreement_GetAgreementCustomer_section.md)
  + [Get financial details from an agreement](marketplace-agreement_example_marketplace-agreement_GetAgreementFinancialDetails_section.md)
  + [Get free trial details from an agreement](marketplace-agreement_example_marketplace-agreement_GetAgreementTermsFreeTrialDetails_section.md)
  + [Get information about an agreement](marketplace-agreement_example_marketplace-agreement_DescribeAgreement_section.md)
  + [Get product and offer details from an agreement](marketplace-agreement_example_marketplace-agreement_GetProductAndOfferDetailFromAgreement_section.md)
  + [Get the EULA of an agreement](marketplace-agreement_example_marketplace-agreement_GetAgreementTermsEula_section.md)
  + [Get the auto renewal terms of an agreement](marketplace-agreement_example_marketplace-agreement_GetAgreementAutoRenewal_section.md)
  + [Get the dimensions purchased in an agreement](marketplace-agreement_example_marketplace-agreement_GetAgreementTermsDimensionPurchased_section.md)
  + [Get the instances of each dimension purchased in an agreement](marketplace-agreement_example_marketplace-agreement_GetAgreementTermsDimensionInstances_section.md)
  + [Get the payment schedule of an agreement](marketplace-agreement_example_marketplace-agreement_GetAgreementTermsPaymentSchedule_section.md)
  + [Get the pricing per dimension in an agreement](marketplace-agreement_example_marketplace-agreement_GetAgreementTermsPricingEachDimension_section.md)
  + [Get the pricing type of an agreement](marketplace-agreement_example_marketplace-agreement_GetAgreementPricingType_section.md)
  + [Get the product type of an agreement](marketplace-agreement_example_marketplace-agreement_GetAgreementProductType_section.md)
  + [Get the status of an agreement](marketplace-agreement_example_marketplace-agreement_GetAgreementStatus_section.md)
  + [Get the support terms of an agreement](marketplace-agreement_example_marketplace-agreement_GetAgreementTermsSupportTerm_section.md)
  + [Get the terms of an agreement](marketplace-agreement_example_marketplace-agreement_GetAgreementTerms_section.md)
  + [Search for agreements by account ID](marketplace-agreement_example_marketplace-agreement_SearchAgreementsByAccountId_section.md)
  + [Search for agreements by agreement ID](marketplace-agreement_example_marketplace-agreement_SearchAgreementsById_section.md)
  + [Search for agreements by end date](marketplace-agreement_example_marketplace-agreement_SearchAgreementsByEndDate_section.md)
  + [Search for agreements by offer ID](marketplace-agreement_example_marketplace-agreement_SearchAgreementsByOfferId_section.md)
  + [Search for agreements by product ID](marketplace-agreement_example_marketplace-agreement_SearchAgreementsByProductId_section.md)
  + [Search for agreements by status](marketplace-agreement_example_marketplace-agreement_SearchAgreementsByByStatus_section.md)
  + [Search for agreements with one custom filter](marketplace-agreement_example_marketplace-agreement_SearchAgreementsByOneFilter_section.md)
  + [Search for agreements with two custom filters](marketplace-agreement_example_marketplace-agreement_SearchAgreementsByTwoFilters_section.md)