---
title: "Claim Shopify Install"
method: POST
path: "/api/shopify/claim-install"
tags: ["Shopify OAuth"]
---

# Claim Shopify Install

`POST /api/shopify/claim-install`

## Request

- Base URL: `https://api.soeru.biz` (the document declares no server; this is the origin it was published from)
- URL: `https://api.soeru.biz/api/shopify/claim-install`
- Auth: none declared. Required headers: `authorization`

Claim a pending Shopify install for the authenticated user.

This is called from the /setup/shopify page after the user logs in or
creates an account. It:
1. Validates the setup token
2. Creates a soeru shop for the user
3. Stores the Shopify access token in shop_settings
4. Deletes the pending install record

## Headers

- `authorization` string, required: Bearer <token>

## Request body

- ClaimShopifyInstallRequest: Request to claim a pending Shopify install for the authenticated user.
  - `setup_token` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/soeru/apis/soeru-api.md) · [All operations](https://skmtc.dev/soeru/apis/soeru-api/llms.txt) · [OpenAPI document](https://skmtc.dev/soeru/apis/soeru-api/revisions/63f8d371abed?raw)
