---
title: "Create advertising cost"
method: POST
path: "/shops/{SHOP_ID}/adv_costs"
tags: ["Transaction"]
---

# Create advertising cost

`POST /shops/{SHOP_ID}/adv_costs`

Create advertising cost

## Path parameters

- `SHOP_ID` integer, required

## Request body

- object
  - `params` object, required
    - `cost_date` string, date-time, required — Cost date
    - `transaction` object, required
      - `name` string, required — Transaction name
      - `is_locked` boolean — Locked
      - `note` string — Note
      - `status` string, required — Status
      - `time_incurred` string, date-time — Time incurred
      - `tags` string[] — Advertising tags
    - `items` object[], required — Advertising items
      - `cost` integer, required — Cost
      - `tax` integer — Tax percentage
      - `warehouse_id` string — Warehouse ID
      - `is_livestream` boolean — Is livestream
      - `product` string — Product ID
      - `pke_mkter` string — Marketer ID
      - `source` object — Source
        - `key` string
        - `account` string
      - `is_wholesale` boolean — Wholesale
      - `post_ids` string[] — Post IDs

## Response `200`

Success

- object
  - `success` boolean — Success status

---

[API](https://skmtc.dev/pancake/apis/pancake-pos-open-api.md) · [All operations](https://skmtc.dev/pancake/apis/pancake-pos-open-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pancake/pancake-pos-open-api/revisions/acb70aa4b3f5/schema)
