---
title: "Create Transaction"
method: POST
path: "/2023-10/bundle/{id}/transaction"
---

# Create Transaction

`POST /2023-10/bundle/{id}/transaction`

## Path parameters

- `version` string, required
- `id` string, required

## Request body

- object
  - `boxSizeId` string — id
  - `discountId` string — id
  - `sellingPlanShopifyId` integer — Pass `null` to add bundle as a one-time purchase
  - `productVariants` object[]
    - `shopifyId` integer — shopifyId
    - `quantity` integer — total quantity of the varianty
  - `quantity` integer

## Response `200`

200

- object
  - `success` boolean
  - `message` string
  - `data` object
    - `txnId` string
  - `code` string
  - `pageInfo` unknown

## Other responses

- `400` — 400

---

[API](https://skmtc.net/loopwork/apis/storefront-api.md) · [All operations](https://skmtc.net/loopwork/apis/storefront-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/loopwork/storefront-api/versions/1524500daa02/schema)
