---
title: "Verify a Google Play purchase token and upsert the resulting subscription/entitlement"
method: POST
path: "/billing/google/verify"
tags: ["Billing"]
---

# Verify a Google Play purchase token and upsert the resulting subscription/entitlement

`POST /billing/google/verify`

## Request

- Base URL: `https://whatareyoudo.ing/api/v1`
- URL: `https://whatareyoudo.ing/api/v1/billing/google/verify`
- Auth: HTTP bearer

## Request body

- VerifyGoogleReceiptRequest
  - `productId` string, required
  - `purchaseToken` string, required

## Response `200`

OK -- {paid: false} for an invalid/expired purchase, not an error

- object
  - `data` object, required
    - `plan` 'free' | 'pro', required
    - `paid` boolean, required
  - `meta` object, required
    - `requestId` string, required

## Other responses

- `503`: Google Play verification not configured

---

[API](https://skmtc.dev/whatareyoudo/apis/whatcha-api.md) · [All operations](https://skmtc.dev/whatareyoudo/apis/whatcha-api/llms.txt) · [OpenAPI document](https://skmtc.dev/whatareyoudo/apis/whatcha-api/revisions/48dd8a54abea?raw)
