My favorites | English | Sign in

More personalization in Google Friend Connect New!

Google Checkout

Google Checkout Promotion Notifications

Note: This is the latest documentation. The previous version of this page is identical — only the left nav differs.
Overview
Enabling the Promotion Notification Feature
Promotion Information in New Order Notifications
Promotion Information in Amount Notifications
XML Tag Definitions

Overview

This document explains a Google Checkout feature that enables merchants to receive information about Google promotions in notifications. From time to time, Google runs promotions in which it may contribute a portion of the cost of an order on the buyer's behalf. For example, Google might contribute $10 toward the cost of an order of $50 or more.

This feature is designed to help you to understand whether any portion of an order's total will be paid by a party other than the buyer. By clearly communicating this information to you, you will be able to accurately reflect the amount actually charged to the buyer in any emails or receipts that you send for your Checkout orders.

This feature does not affect the way that you charge or refund orders. If an order does include a promotion, you do not need to charge the buyer and Google separately for that order. Similarly, if you need to issue a refund for an order, you do not need to issue separate refunds to the buyer and to Google.

This document contains the following sections:

Enabling the Promotion Notification Feature

The following instructions explain how to enable this feature for your account. Please note that you must complete these steps for your sandbox and production accounts.

  • Log in to your merchant account.
  • Click on the Settings tab.
  • Click the Integration link on the left side of the page.
  • Expand the list of advanced settings and check the box next to the settings that says, "Notifications must include any amounts involving a Google promotion."
  • Click the Save button to update your settings.

After you enable this setting, Google will include information about Google promotions that affect your orders in new order notifications, charge amount notifications, refund amount notifications and chargeback amount notifications.

Promotion Information in New Order Notifications

Google will send information about any promotions applied to an order in the new order notification for that order. Please note that to receive new order notifications, you must have implemented the Notification API.

If you opt to receive information about promotions, your new order notifications may contain a <promotions> tag within the <new-order-notification> tag. (Please note that the <promotions> tag will only appear in a new order notification if there is at least one promotion being applied to the corresponding order.

The <promotions> tag, in turn, contains one or more <promotion> tags, each of which contains information about a single promotion that is being applied to the order. Each promotion tag contains the following information:

  • The <id> tag specifies a value that Google uses to uniquely identify a promotion.
  • The <name> tag identifies the name of the promotion.
  • The <total-amount> tag identifies the amount and currency associated with the promotion. For example, if Google ran a promotion for $10 off any $50 order, then the a href="#tag_total-amount"><total-amount> for any qualifying order would specify a value of $10.
  • The <description> tag, which is optional, contains a description of the promotion.

The following XML example shows the basic structure of a new order notification. Several tags have been removed from the example to highlight the change described in this document. Omitted tags are represented by ellipses (...). In addition, new tags that contain promotion information are shown in bold text.

<xml version="1.0" encoding="UTF-8"?>
<new-order-notification xmlns="http://checkout.google.com/schema/"
    serial-number="85f54628-44fc-8605-ae62364f6c71">
    ...
    <promotions>
        <promotion>
            <id>4910</id>
            <name>Google 10 off 50</name>
            <total-amount currency="USD">10</total-amount>
        </promotion>
    </promotions>
    ...
</new-order-notification>

Promotion Information in Amount Notifications

If you enable this feature, Google will also send promotion information in the following amount notifications:

For orders that use promotions, each of these notifications will include one new tag that indicates whether a portion of the charge, refund or chargeback is associated with a promotion.

The XML example below shows a charge amount notification for an order that uses a promotion in which Google contributes $10 toward any order of $50 or more. In this case, the merchant requested to fully charge an order of exactly $50.

<xml version="1.0" encoding="UTF-8"?>
<charge-amount-notification xmlns="http://checkout.google.com/schema/2"
    serial-number="95d44287-12b1-4722-bc56-cfaa73f4c0d1">
    <google-order-number>841171949013218</google-order-number>
    <latest-charge-amount currency="USD">50</latest-charge-amount>
    <latest-promotion-charge-amount currency="USD">10</latest-promotion-charge-amount>
    <total-charge-amount currency="USD">50</total-charge-amount>
    <timestamp>2007-03-19T15:06:26.051Z</timestamp>
</charge-amount-notification>

As shown in the example, the additional promotion-related tag identifies the portion of the charge that is associated with the promotion. Similarly, refund amount notifications include the <latest-promotion-refund-amount> tag and chargeback amount notifications include the <latest-promotion-chargeback-amount> tag.

XML Tag Definitions

Certain symbols may be displayed next to some subtags in the definitions below. These symbols, and their meanings, are:

? = optional subtag
* = zero or more instances of the subtag

description
Definition

As a subtag of <digital-content>, the <description> tag contains instructions for downloading a digital content item. Please use the <item-description> tag to provide the description of the item being purchased. Note: This field has a maximum length of 1024 characters and may contain HTML tags. (HTML tags must be XML-escaped as described in the Google Checkout Developer's Guide.)

As a subtag of <promotion>, the <description> tag contains information about a promotion that Google applied to an order.

Subtag of digital-content, promotion
Content Format String
Example <description>To download this item, link to the URL below and follow the instructions there. When prompted, enter the software key provided below.</description>

id
Definition

The <id> tag specifies a value that uniquely identifies a Google Checkout promotion.

Subtag of promotion
Content Format String
Example <id>

latest-promotion-charge-amount
Definition

The <latest-promotion-charge-amount> tag indicates how much Google contributed to the latest charge amount as a part of an ongoing promotion. For example, suppose Google offered a promotion in which a buyer who completed an order through Google Checkout received $10 off any purchase of $100 or more. If a merchant charged the customer the full amount of a $100 order, then the <latest-charge-amount> value would be $100 and the <latest-promotion-charge-amount> would be $10.

Attributes
NameFormatDescription
currency String The currency attribute identifies the unit of currency associated with the tag's value. The value of the currency attribute should be a three-letter ISO 4217 currency code.
Subtag of charge-amount-notification
Content Format Decimal
Example <latest-promotion-charge-amount currency="USD">10.00</latest-promotion-charge-amount>

latest-promotion-chargeback-amount
Definition

The <latest-promotion-chargeback-amount> tag indicates that a portion of the latest chargeback amount was originally paid by Google as a part of a promotion and is therefore being recouped by Google rather than by the customer. For example, suppose Google offered a promotion in which a buyer who completed an order through Google Checkout received $10 off any purchase of $100 or more. If a buyer had completed a $100 order, then the buyer would have paid $90 and Google would have paid $10 of the order total. If the buyer then disputed the charge, then the <latest-chargeback-amount> value would be $100 and the <latest-promotion-chargeback-amount> would be $10.

Attributes
NameFormatDescription
currency String The currency attribute identifies the unit of currency associated with the tag's value. The value of the currency attribute should be a three-letter ISO 4217 currency code.
Subtag of chargeback-amount-notification
Content Format Decimal
Example <latest-promotion-chargeback-amount currency="USD">10.00</latest-promotion-chargeback-amount>

latest-promotion-refund-amount
Definition

The <latest-promotion-refund-amount> tag indicates that a portion of the latest refund amount was originally paid by Google as a part of a promotion and is therefore being refunded to Google rather than to the customer. For example, suppose Google offered a promotion in which a buyer who completed an order through Google Checkout received $10 off any purchase of $100 or more. If a merchant refunded the customer the full amount of a $100 order, then the <latest-refund-amount> value would be $100 and the <latest-promotion-refund-amount> would be $10. Accordingly, the buyer would receive a $90 refund ($100 - $10).

Attributes
NameFormatDescription
currency String The currency attribute identifies the unit of currency associated with the tag's value. The value of the currency attribute should be a three-letter ISO 4217 currency code.
Subtag of refund-amount-notification
Content Format Decimal
Example <latest-promotion-refund-amount currency="USD">10.00</latest-promotion-refund-amount>

name
Definition

The <name> tag identifies the name that Google uses to identify a promotion in the Merchant Center.

Subtag of promotion
Content Format String
Example <name>

promotion
Definition

The <promotion> tag contains information about a single promotion that was applied to the cost of an order.

Subtag of promotions
Subtags description?, id, name, total-amount
Content Format Container
Example <promotion>

promotions
Definition

The <promotions> tag contains a list of promotions that were applied to the cost of an order.

Subtag of new-order-notification
Subtags promotion*
Content Format Container
Example <promotions>

total-amount
Definition

The <total-amount> tag specifies the amount that Google contributed to the cost of an order as a part of an ongoing promotion.

Attributes
NameFormatDescription
currency String The currency attribute identifies the unit of currency associated with the tag's value. The value of the currency attribute should be a three-letter ISO 4217 currency code.
Subtag of promotion
Content Format Decimal
Example <total-amount currency="USD">10.00</total-amount>