---
title: "POST /accounts/{accountId}/credentials"
method: POST
path: "/accounts/{accountId}/credentials"
tags: ["accounts"]
---

# POST /accounts/{accountId}/credentials

`POST /accounts/{accountId}/credentials`

Uploads credentials for the Merchant Center account. If credentials already exist for this Merchant Center account and purpose, this method updates them.

## Path parameters

- `accountId` string, required

## Request body

- AccountCredentials — Credentials allowing Google to call a partner's API on behalf of a merchant.
  - `purpose` 'ACCOUNT_CREDENTIALS_PURPOSE_UNSPECIFIED' | 'SHOPIFY_ORDER_MANAGEMENT' | 'SHOPIFY_INTEGRATION' — Indicates to Google how Google should use these OAuth tokens.
  - `expiresIn` string, int64 — The amount of time, in seconds, after which the access token is no longer valid.
  - `accessToken` string — An OAuth access token.

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/content.md) · [All operations](https://skmtc.net/google/apis/content/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/content/versions/1033388fc86f/schema)
