---
title: "updateGpaySubscription"
method: POST
path: "/subscripiton/updateGpaySubscription"
tags: ["subscripiton"]
---

# updateGpaySubscription

`POST /subscripiton/updateGpaySubscription`

Internal subscripiton/updateGpaySubscription operation. Authentication requirements are derived from the active route allowlist.

## Request body

- object
  - `gpay_response` object
    - `orderId` string
    - `quantity` integer
    - `productId` string
    - `packageName` string
    - `acknowledged` boolean
    - `autoRenewing` boolean
    - `purchaseTime` integer
    - `purchaseState` integer
    - `purchaseToken` string

## Response `200`

Standard successful response envelope.

- SuccessEnvelope
  - `status` 'success', required
  - `statusCode` integer, required
  - `message` string, required
  - `data` object, required
  - `error` unknown, required

## Other responses

- `400` — Standard API error envelope.
- `401` — Standard API error envelope.
- `403` — Standard API error envelope.
- `422` — Standard API error envelope.

---

[API](https://skmtc.dev/wowinvoice/apis/wow-invoice-internal-api.md) · [All operations](https://skmtc.dev/wowinvoice/apis/wow-invoice-internal-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/wowinvoice/wow-invoice-internal-api/revisions/9f6951d767bb/schema)
