---
title: "Generate a refresh_token based on provided auth_code for shop configuration."
method: POST
path: "/shops/authorize"
tags: ["shops"]
---

# Generate a refresh_token based on provided auth_code for shop configuration.

`POST /shops/authorize`

ADD ENDPOINT DESCRIPTION HERE

## Request body

- ShopAuthorizeRequest
  - `shopType` 'AMAZON' | 'WIX' | 'OTTO_MARKETPLACE' | 'SHOPIFY' | 'TIKTOK', required
  - `oauthCode` string
  - `redirectUri` string
  - `authUrl` string
  - `state` string

## Response `200`

successful operation

- ShopAuthorizeResult
  - `status` string
  - `refreshToken` string
  - `message` string
  - `shopId` integer

---

[API](https://skmtc.net/writechoiceorg/apis/connector.md) · [All operations](https://skmtc.net/writechoiceorg/apis/connector/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/writechoiceorg/connector/revisions/7ce09a4b2a4e/schema)
