> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# ReceiveCloudChannelPush

# Package: businessEmail

# Namespace: GoogleSubscriptions

# Method link: https://dev.wix.com/docs/api-reference/account-level/premium/business-email/google-subscription-v1/receive-cloud-channel-push.md

## Introduction

Receives Google Cloud Channel push notifications about Business Email customers, and isn't intended to be called by apps.

---

## REST API

### Schema

```
 Method: receiveCloudChannelPush
 Description: Receives Google Cloud Channel push notifications about Business Email customers, and isn't intended to be called by apps.
 URL: https://www.wixapis.com/google-subscriptions/v1/google/cloud-channel-webhook
 Method: POST
 Method parameters:
   param name: body | type: body    
   param name: headers | type: array<headers>    
              - name: key | type: string | description:   
              - name: value | type: string | description:   
   param name: method | type: method    
   param name: pathParams | type: array<pathParams>    
              - name: key | type: string | description:   
              - name: value | type: string | description:   
   param name: queryParams | type: array<queryParams>    
              - name: key | type: string | description:   
              - name: value | type: string | description:   
   param name: rawPath | type: rawPath    
   param name: rawQuery | type: rawQuery    
 Return type: RawHttpResponse
  - name: body | type: bytes | description:   
  - name: statusCode | type: integer | description:   | validation: format uint32
  - name: headers | type: array<HeadersEntry> | description:   
     - name: key | type: string | description:   
     - name: value | type: string | description:   


```

### Examples

### Receive a Cloud Channel push notification
A push notification as Google Cloud Channel sends it, here for a customer whose primary domain changed. Google authenticates with an OIDC token in the Authorization header.

```curl
curl -X POST \
'https://www.wixapis.com/google-subscriptions/v1/google/cloud-channel-webhook' \
-H 'Authorization: Bearer <GOOGLE_OIDC_TOKEN>' \
-H 'Content-Type: application/json' \
-d '{
  "message": {
    "data": "eyJjdXN0b21lckV2ZW50Ijp7ImN1c3RvbWVyIjoiYWNjb3VudHMvQzAxeDdrMnFwL2N1c3RvbWVycy9TMDRtOXZkMmEiLCJldmVudFR5cGUiOiJQUklNQVJZX0RPTUFJTl9DSEFOR0VEIn19",
    "messageId": "9821736451092837",
    "publishTime": "2026-10-05T10:30:00.000Z"
  },
  "subscription": "projects/wix-cloud-channel/subscriptions/business-email-push"
}'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.premium.googleSubscriptions.receiveCloudChannelPush(options)
 Description: Receives Google Cloud Channel push notifications about Business Email customers, and isn't intended to be called by apps.
 Method parameters:
   param name: options | type: ReceiveCloudChannelPushOptions  none  
        - name: body | type: bytes | description:   
        - name: pathParams | type: array<PathParametersEntry> | description:   
           - name: key | type: string | description:   
           - name: value | type: string | description:   
        - name: queryParams | type: array<QueryParametersEntry> | description:   
           - name: key | type: string | description:   
           - name: value | type: string | description:   
        - name: headers | type: array<HeadersEntry> | description:   
           - name: key | type: string | description:   
           - name: value | type: string | description:   
        - name: method | type: string | description:   
        - name: rawPath | type: string | description:   
        - name: rawQuery | type: string | description:   
 Return type: PROMISE<RawHttpResponse>
  - name: body | type: bytes | description:   
  - name: statusCode | type: integer | description:   | validation: format uint32
  - name: headers | type: array<HeadersEntry> | description:   
     - name: key | type: string | description:   
     - name: value | type: string | description:   


```

### Examples

### Receive a Cloud Channel push notification
A push notification as Google Cloud Channel sends it, here for a customer whose primary domain changed.

```javascript
import { googleSubscriptions } from "@wix/premium";

async function receiveCloudChannelPush() {
  const response = await googleSubscriptions.receiveCloudChannelPush({
    method: "POST",
    rawPath: "/v1/google/cloud-channel-webhook",
    headers: [
      { key: "Authorization", value: "Bearer <GOOGLE_OIDC_TOKEN>" },
      { key: "Content-Type", value: "application/json" },
    ],
    body: "eyJtZXNzYWdlIjp7ImRhdGEiOiJleUpqZFhOMGIyMWxja1YyWlc1MElqcDdJbU4xYzNSdmJXVnlJam9pWVdOamIzVnVkSE12UXpBeGVEZHJNbkZ3TDJOMWMzUnZiV1Z5Y3k5VE1EUnRPWFprTW1FaUxDSmxkbVZ1ZEZSNWNHVWlPaUpRVWtsTlFWSlpYMFJQVFVGSlRsOURTRUZPUjBWRUluMTkiLCJtZXNzYWdlSWQiOiI5ODIxNzM2NDUxMDkyODM3IiwicHVibGlzaFRpbWUiOiIyMDI2LTEwLTA1VDEwOjMwOjAwLjAwMFoifSwic3Vic2NyaXB0aW9uIjoicHJvamVjdHMvd2l4LWNsb3VkLWNoYW5uZWwvc3Vic2NyaXB0aW9ucy9idXNpbmVzcy1lbWFpbC1wdXNoIn0=",
  });
}

/* Promise resolves to:
 * {
 *   "statusCode": "200",
 *   "headers": []
 * }
 */

```

### receiveCloudChannelPush (self-hosted)
Self-hosted SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md).

```javascript
import { createClient } from '@wix/sdk';
import { googleSubscriptions } from '@wix/premium';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

const myWixClient = createClient ({
  modules: { googleSubscriptions },
  // Include the auth strategy and host as relevant
});


async function receiveCloudChannelPush(options) {
  const response = await myWixClient.googleSubscriptions.receiveCloudChannelPush(options);
};
```

---