# Offer

- [JSON representation](https://docs.cloud.google.com/channel/docs/reference/rest/v1/Offer#SCHEMA_REPRESENTATION)
- [Plan](https://docs.cloud.google.com/channel/docs/reference/rest/v1/Offer#Plan)
  - [JSON representation](https://docs.cloud.google.com/channel/docs/reference/rest/v1/Offer#Plan.SCHEMA_REPRESENTATION)
- [PaymentType](https://docs.cloud.google.com/channel/docs/reference/rest/v1/Offer#PaymentType)
- [Constraints](https://docs.cloud.google.com/channel/docs/reference/rest/v1/Offer#Constraints)
  - [JSON representation](https://docs.cloud.google.com/channel/docs/reference/rest/v1/Offer#Constraints.SCHEMA_REPRESENTATION)
- [CustomerConstraints](https://docs.cloud.google.com/channel/docs/reference/rest/v1/Offer#CustomerConstraints)
  - [JSON representation](https://docs.cloud.google.com/channel/docs/reference/rest/v1/Offer#CustomerConstraints.SCHEMA_REPRESENTATION)
- [PromotionalOrderType](https://docs.cloud.google.com/channel/docs/reference/rest/v1/Offer#PromotionalOrderType)
- [PriceByResource](https://docs.cloud.google.com/channel/docs/reference/rest/v1/Offer#PriceByResource)
  - [JSON representation](https://docs.cloud.google.com/channel/docs/reference/rest/v1/Offer#PriceByResource.SCHEMA_REPRESENTATION)
- [ResourceType](https://docs.cloud.google.com/channel/docs/reference/rest/v1/Offer#ResourceType)
- [Price](https://docs.cloud.google.com/channel/docs/reference/rest/v1/Offer#Price)
  - [JSON representation](https://docs.cloud.google.com/channel/docs/reference/rest/v1/Offer#Price.SCHEMA_REPRESENTATION)
- [DiscountComponent](https://docs.cloud.google.com/channel/docs/reference/rest/v1/Offer#DiscountComponent)
  - [JSON representation](https://docs.cloud.google.com/channel/docs/reference/rest/v1/Offer#DiscountComponent.SCHEMA_REPRESENTATION)
- [DiscountType](https://docs.cloud.google.com/channel/docs/reference/rest/v1/Offer#DiscountType)
- [PricePhase](https://docs.cloud.google.com/channel/docs/reference/rest/v1/Offer#PricePhase)
  - [JSON representation](https://docs.cloud.google.com/channel/docs/reference/rest/v1/Offer#PricePhase.SCHEMA_REPRESENTATION)
- [PriceTier](https://docs.cloud.google.com/channel/docs/reference/rest/v1/Offer#PriceTier)
  - [JSON representation](https://docs.cloud.google.com/channel/docs/reference/rest/v1/Offer#PriceTier.SCHEMA_REPRESENTATION)
- [ParameterDefinition](https://docs.cloud.google.com/channel/docs/reference/rest/v1/Offer#ParameterDefinition)
  - [JSON representation](https://docs.cloud.google.com/channel/docs/reference/rest/v1/Offer#ParameterDefinition.SCHEMA_REPRESENTATION)
- [ParameterType](https://docs.cloud.google.com/channel/docs/reference/rest/v1/Offer#ParameterType)

Represents an offer made to resellers for purchase. An offer is associated with a `https://docs.cloud.google.com/channel/docs/reference/rest/v1/Sku`, has a plan for payment, a price, and defines the constraints for buying.

| JSON representation |
|---|
| ``` { "name": string, "marketingInfo": { object (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/MarketingInfo`) }, "sku": { object (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/Sku`) }, "plan": { object (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/Offer#Plan`) }, "constraints": { object (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/Offer#Constraints`) }, "priceByResources": [ { object (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/Offer#PriceByResource`) } ], "startTime": string, "endTime": string, "parameterDefinitions": [ { object (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/Offer#ParameterDefinition`) } ], "dealCode": string } ``` |

| Fields ||
|---|---|
| `name` | `string` Resource Name of the Offer. Format: accounts/{account_id}/offers/{offer_id} |
| `marketingInfo` | ``object (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/MarketingInfo`)`` Marketing information for the Offer. |
| `sku` | ``object (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/Sku`)`` SKU the offer is associated with. |
| `plan` | ``object (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/Offer#Plan`)`` Describes the payment plan for the Offer. |
| `constraints` | ``object (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/Offer#Constraints`)`` Constraints on transacting the Offer. |
| `priceByResources[]` | ``object (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/Offer#PriceByResource`)`` Price for each monetizable resource type. |
| `startTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Start of the Offer validity time. Uses RFC 3339, where generated output is always Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `endTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. End of the Offer validity time. Uses RFC 3339, where generated output is always Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `parameterDefinitions[]` | ``object (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/Offer#ParameterDefinition`)`` Parameters required to use current Offer to purchase. |
| `dealCode` | `string` The deal code of the offer to get a special promotion or discount. |

## Plan

The payment plan for the Offer. Describes how to make a payment.

| JSON representation |
|---|
| ``` { "paymentPlan": enum (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/accounts.customers.entitlements#PaymentPlan`), "paymentType": enum (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/Offer#PaymentType`), "paymentCycle": { object (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/accounts.customers.entitlements#Period`) }, "trialPeriod": { object (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/accounts.customers.entitlements#Period`) }, "billingAccount": string } ``` |

| Fields ||
|---|---|
| `paymentPlan` | ``enum (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/accounts.customers.entitlements#PaymentPlan`)`` Describes how a reseller will be billed. |
| `paymentType` | ``enum (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/Offer#PaymentType`)`` Specifies when the payment needs to happen. |
| `paymentCycle` | ``object (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/accounts.customers.entitlements#Period`)`` Describes how frequently the reseller will be billed, such as once per month. |
| `trialPeriod` | ``object (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/accounts.customers.entitlements#Period`)`` Present for Offers with a trial period. For trial-only Offers, a paid service needs to start before the trial period ends for continued service. For Regular Offers with a trial period, the regular pricing goes into effect when trial period ends, or if paid service is started before the end of the trial period. |
| `billingAccount` | `string` Reseller Billing account to charge after an offer transaction. Only present for Google Cloud offers. |

## PaymentType

Specifies when the payment needs to happen.

| Enums ||
|---|---|
| `PAYMENT_TYPE_UNSPECIFIED` | Not used. |
| `PREPAY` | Prepay. Amount has to be paid before service is rendered. |
| `POSTPAY` | Postpay. Reseller is charged at the end of the Payment cycle. |

## Constraints

Represents the constraints for buying the Offer.

| JSON representation |
|---|
| ``` { "customerConstraints": { object (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/Offer#CustomerConstraints`) } } ``` |

| Fields ||
|---|---|
| `customerConstraints` | ``object (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/Offer#CustomerConstraints`)`` Represents constraints required to purchase the Offer for a customer. |

## CustomerConstraints

Represents constraints required to purchase the Offer for a customer.

| JSON representation |
|---|
| ``` { "allowedRegions": [ string ], "allowedCustomerTypes": [ enum (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/CloudIdentityInfo#CustomerType`) ], "promotionalOrderTypes": [ enum (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/Offer#PromotionalOrderType`) ] } ``` |

| Fields ||
|---|---|
| `allowedRegions[]` | `string` Allowed geographical regions of the customer. |
| `allowedCustomerTypes[]` | ``enum (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/CloudIdentityInfo#CustomerType`)`` Allowed Customer Type. |
| `promotionalOrderTypes[]` | ``enum (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/Offer#PromotionalOrderType`)`` Allowed Promotional Order Type. Present for Promotional offers. |

## PromotionalOrderType

Constraints type for Promotional offers.

| Enums ||
|---|---|
| `PROMOTIONAL_TYPE_UNSPECIFIED` | Not used. |
| `NEW_UPGRADE` | Order used for new customers, trial conversions and upgrades. |
| `TRANSFER` | All orders for transferring an existing customer. |
| `PROMOTION_SWITCH` | Orders for modifying an existing customer's promotion on the same SKU. |

## PriceByResource

Represents price by resource type.

| JSON representation |
|---|
| ``` { "resourceType": enum (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/Offer#ResourceType`), "price": { object (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/Offer#Price`) }, "pricePhases": [ { object (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/Offer#PricePhase`) } ] } ``` |

| Fields ||
|---|---|
| `resourceType` | ``enum (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/Offer#ResourceType`)`` Resource Type. Example: SEAT |
| `price` | ``object (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/Offer#Price`)`` Price of the Offer. Present if there are no price phases. |
| `pricePhases[]` | ``object (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/Offer#PricePhase`)`` Specifies the price by time range. |

## ResourceType

Represents the type for a monetizable resource(any entity on which billing happens). For example, this could be MINUTES for Google Voice and GB for Google Drive. One SKU can map to multiple monetizable resources.

| Enums ||
|---|---|
| `RESOURCE_TYPE_UNSPECIFIED` | Not used. |
| `SEAT` | Seat. |
| `MAU` | Monthly active user. |
| `GB` | GB (used for storage SKUs). |
| `LICENSED_USER` | Active licensed users(for Voice SKUs). |
| `MINUTES` | Voice usage. |
| `IAAS_USAGE` | For IaaS SKUs like Google Cloud, monetization is based on usage accrued on your billing account irrespective of the type of monetizable resource. This enum represents an aggregated resource/container for all usage SKUs on a billing account. Currently, only applicable to Google Cloud. |
| `SUBSCRIPTION` | For Google Cloud subscriptions like Anthos or SAP. |

## Price

Represents the price of the Offer.

| JSON representation |
|---|
| ``` { "basePrice": { object (`https://docs.cloud.google.com/channel/docs/reference/rest/Shared.Types/Money`) }, "discount": number, "effectivePrice": { object (`https://docs.cloud.google.com/channel/docs/reference/rest/Shared.Types/Money`) }, "pricePeriod": { object (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/accounts.customers.entitlements#Period`) }, "externalPriceUri": string, "discountComponents": [ { object (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/Offer#DiscountComponent`) } ] } ``` |

| Fields ||
|---|---|
| `basePrice` | ``object (`https://docs.cloud.google.com/channel/docs/reference/rest/Shared.Types/Money`)`` Base price. |
| `discount` | `number` Discount percentage, represented as decimal. For example, a 20% discount will be represent as 0.2. |
| `effectivePrice` | ``object (`https://docs.cloud.google.com/channel/docs/reference/rest/Shared.Types/Money`)`` Effective Price after applying the discounts. |
| `pricePeriod` | ``object (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/accounts.customers.entitlements#Period`)`` The time period with respect to which base and effective prices are defined. Example: 1 month, 6 months, 1 year, etc. |
| `externalPriceUri` | `string` Link to external price list, such as link to Google Voice rate card. |
| `discountComponents[]` | ``object (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/Offer#DiscountComponent`)`` Breakdown of the discount into its components. This will be empty if there is no discount present. |

## DiscountComponent

Represents a single component of the total discount applicable on a Price.

| JSON representation |
|---|
| ``` { "discountType": enum (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/Offer#DiscountType`), // Union field `discount_value` can be only one of the following: "discountPercentage": number, "discountAbsolute": { object (`https://docs.cloud.google.com/channel/docs/reference/rest/Shared.Types/Money`) } // End of list of possible types for union field `discount_value`. } ``` |

| Fields ||
|---|---|
| `discountType` | ``enum (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/Offer#DiscountType`)`` Type of the discount. |
| Union field `discount_value`. Specifies the contribution of this discount component to the total discount. `discount_value` can be only one of the following: ||
| `discountPercentage` | `number` Discount percentage, represented as decimal. For example, a 20% discount will be represented as 0.2. |
| `discountAbsolute` | ``object (`https://docs.cloud.google.com/channel/docs/reference/rest/Shared.Types/Money`)`` Fixed value discount. |

## DiscountType

Discount Type.

| Enums ||
|---|---|
| `DISCOUNT_TYPE_UNSPECIFIED` | Not used. |
| `REGIONAL_DISCOUNT` | Regional discount. |
| `PROMOTIONAL_DISCOUNT` | Promotional discount. |
| `SALES_DISCOUNT` | Sales-provided discount. |
| `RESELLER_MARGIN` | Reseller margin. |
| `DEAL_CODE` | Deal code discount. |

## PricePhase

Specifies the price by the duration of months. For example, a 20% discount for the first six months, then a 10% discount starting on the seventh month.

| JSON representation |
|---|
| ``` { "periodType": enum (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/accounts.customers.entitlements#PeriodType`), "firstPeriod": integer, "lastPeriod": integer, "price": { object (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/Offer#Price`) }, "priceTiers": [ { object (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/Offer#PriceTier`) } ] } ``` |

| Fields ||
|---|---|
| `periodType` | ``enum (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/accounts.customers.entitlements#PeriodType`)`` Defines the phase period type. |
| `firstPeriod` | `integer` Defines first period for the phase. |
| `lastPeriod` | `integer` Defines first period for the phase. |
| `price` | ``object (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/Offer#Price`)`` Price of the phase. Present if there are no price tiers. |
| `priceTiers[]` | ``object (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/Offer#PriceTier`)`` Price by the resource tiers. |

## PriceTier

Defines price at resource tier level. For example, an offer with following definition :

- Tier 1: Provide 25% discount for all seats between 1 and 25.
- Tier 2: Provide 10% discount for all seats between 26 and 100.
- Tier 3: Provide flat 15% discount for all seats above 100.

Each of these tiers is represented as a PriceTier.

| JSON representation |
|---|
| ``` { "firstResource": integer, "lastResource": integer, "price": { object (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/Offer#Price`) } } ``` |

| Fields ||
|---|---|
| `firstResource` | `integer` First resource for which the tier price applies. |
| `lastResource` | `integer` Last resource for which the tier price applies. |
| `price` | ``object (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/Offer#Price`)`` Price of the tier. |

## ParameterDefinition

Parameter's definition. Specifies what parameter is required to use the current Offer to purchase.

| JSON representation |
|---|
| ``` { "name": string, "parameterType": enum (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/Offer#ParameterType`), "minValue": { object (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/accounts.customers.entitlements#Value`) }, "maxValue": { object (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/accounts.customers.entitlements#Value`) }, "allowedValues": [ { object (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/accounts.customers.entitlements#Value`) } ], "optional": boolean } ``` |

| Fields ||
|---|---|
| `name` | `string` Name of the parameter. |
| `parameterType` | ``enum (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/Offer#ParameterType`)`` Data type of the parameter. Minimal value, Maximum value and allowed values will use specified data type here. |
| `minValue` | ``object (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/accounts.customers.entitlements#Value`)`` Minimal value of the parameter, if applicable. Inclusive. For example, minimal commitment when purchasing Anthos is 0.01. Applicable to INT64 and DOUBLE parameter types. |
| `maxValue` | ``object (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/accounts.customers.entitlements#Value`)`` Maximum value of the parameter, if applicable. Inclusive. For example, maximum seats when purchasing Google Workspace Business Standard. Applicable to INT64 and DOUBLE parameter types. |
| `allowedValues[]` | ``object (`https://docs.cloud.google.com/channel/docs/reference/rest/v1/accounts.customers.entitlements#Value`)`` If not empty, parameter values must be drawn from this list. For example, \[us-west1, us-west2, ...\] Applicable to STRING parameter type. |
| `optional` | `boolean` If set to true, parameter is optional to purchase this Offer. |

## ParameterType

Data type of the parameter.

| Enums ||
|---|---|
| `PARAMETER_TYPE_UNSPECIFIED` | Not used. |
| `INT64` | Int64 type. |
| `STRING` | String type. |
| `DOUBLE` | Double type. |
| `BOOLEAN` | Boolean type. |