Sub Account Info API v2.0

The Sub Account API returns values displayed in the Hotel Ads Center's Account Info view. This information includes billing details and other account information.

Path

base_path/api_version/account_id/subaccounts

Where:

Path Parameter Description
base_path https://www.googleapis.com/travelpartner
api_version v2.0
account_id A parent account or sub account ID. If you specify a parent account, then data for all sub accounts in addition to the parent account is included.

Query String Parameters

None.

Supported Methods

HTTP Method Description
GET Gets information about your parent or sub account.

Examples

Gets account information for account 4200042:

GET https://www.googleapis.com/travelpartner/v2.0/4200042/subaccounts

Getting account information

To get information about a parent or sub account, submit a GET request by using the following syntax:

GET https://www.googleapis.com/travelpartner/v2.0/account_id/subaccounts

The following example shows details about the parent account 4200042. This parent account has three sub accounts. The sub accounts' information is also included in the response.

{
  "kind": "travelpartner#subaccountsGet",
  "account": {
    "kind": "travelpartner#subaccount",
    "subaccount_id": "4200042",
    "name": "Example Hotels",
    "billing_details": {
      "payment_type": "Invoice",
      "billing_currency": "EUR"
  },
  "subaccounts": [
    {
      "kind": "travelpartner#subaccount",
      "subaccount_id": "1000001",
      "name": "Sub Account 1",
      "billing_required": false,
      "billing_details": {
        "payment_type": "Parent Pays"
      }
    },
    {
      "kind": "travelpartner#subaccount",
      "subaccount_id": "1000002",
      "name": "Sub Account 2",
      "billing_required": true,
      "billing_details": {
        "payment_type": "Invoice",
        "billing_currency": "EUR"
      }
    },
    {
      "kind": "travelpartner#subaccount",
      "subaccount_id": "1000003",
      "name": "Sub Account 3",
      "billing_required": false,
      "billing_details": {
        "payment_type": "Parent Pays"
      }
    }
  ]
 }
}

For more information about the values in the Account Info view of the Hotel Ads Center, see Viewing Sub Account Information.

Sub Account Info API Changes

The Sub Account Info API is new for v2.0.

Send feedback about...

Need help? Visit our support page.