---
title: "Put Profit Settings"
method: PUT
path: "/api/v1/shopify/app/settings"
tags: ["shopify-app"]
---

# Put Profit Settings

`PUT /api/v1/shopify/app/settings`

## Request

- Base URL: `https://teraads.co` (the document declares no server; this is the origin it was published from)
- URL: `https://teraads.co/api/v1/shopify/app/settings`
- Auth: none declared

Save the business's margin, shipping cost and payment fee (only those fields change).

## Query parameters

- `brand_id` string, required

## Request body

- ProfitSettings: What Tera Ads subtracts from sales to estimate profit, in the store's own currency.
  - `margin_percent` number, required: Gross margin on products: price minus product cost
  - `shipping_cost` number, required: Average shipping cost per order
  - `payment_fee_percent` number, required: Payment processing fee per order

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/teraads/apis/tera-ads-api.md) · [All operations](https://skmtc.dev/teraads/apis/tera-ads-api/llms.txt) · [OpenAPI document](https://skmtc.dev/teraads/apis/tera-ads-api/revisions/fb2526b5cf3c?raw)
