GetOfferTerms
Returns the terms attached to an offer, such as pricing terms (usage-based, contract, BYOL, free trial), legal terms, payment schedules, validity terms, support terms, and renewal terms.
Request Syntax
POST /2026-02-05/getOfferTerms HTTP/1.1
Content-type: application/json
{
"locale": "string",
"maxResults": number,
"nextToken": "string",
"offerId": "string"
}
URI Request Parameters
The request does not use any URI parameters.
Request Body
The request accepts the following data in JSON format.
- offerId
-
The unique identifier of the offer whose terms to retrieve.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 255.
Pattern:
[\w\-]+Required: Yes
- locale
-
A BCP 47 language tag or comma-separated priority list specifying the preferred locale for response content. See
Localefor supported values, constraints, fallback behavior, and the default locale. If omitted, the service returns content in the default locale.Type: String
Length Constraints: Minimum length of 1. Maximum length of 256.
Pattern:
[^;,]+(\s*,\s*[^;,]+){0,1}Required: No
- maxResults
-
The maximum number of results that are returned per call. You can use
nextTokento get more results.Type: Integer
Valid Range: Minimum value of 1. Maximum value of 25.
Required: No
- nextToken
-
If
nextTokenis returned, there are more results available. Make the call again using the returned token to retrieve the next page.Type: String
Length Constraints: Minimum length of 0. Maximum length of 8192.
Pattern:
[a-zA-Z0-9+/=]+Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"locale": "string",
"nextToken": "string",
"offerTerms": [
{ ... }
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
- offerTerms
-
The terms attached to the offer. Each element contains exactly one term type.
Type: Array of OfferTerm objects
- locale
-
The locale of the returned content. Indicates whether the response contains content in the requested locale, or fell back to the default locale. See
Localefor details.Type: String
Length Constraints: Minimum length of 1. Maximum length of 256.
Pattern:
[^;,]+(\s*,\s*[^;,]+){0,1} - nextToken
-
If
nextTokenis returned, there are more results available. Make the call again using the returned token to retrieve the next page.Type: String
Length Constraints: Minimum length of 0. Maximum length of 8192.
Pattern:
[a-zA-Z0-9+/=]+
Errors
For information about the errors that are common to all actions, see Common Error Types.
- AccessDeniedException
-
You don't have sufficient access to perform this action.
HTTP Status Code: 403
- InternalServerException
-
Unexpected error during processing of the request.
HTTP Status Code: 500
- ResourceNotFoundException
-
The specified resource doesn't exist.
HTTP Status Code: 404
- ThrottlingException
-
The request was denied due to request throttling.
HTTP Status Code: 429
- ValidationException
-
The input fails to satisfy the constraints specified by the service.
- reason
-
The reason that the input fails to satisfy the constraints specified by the service.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: