---
title: "Updates a bundle purchase"
method: PUT
path: "/bundle_purchases/{id}"
tags: ["Bundle Purchases"]
---

# Updates a bundle purchase

`PUT /bundle_purchases/{id}`

## Path parameters

- `id` integer, required

## Query parameters

- `client_id` integer, required

## Headers

- `X-Subdomain` string

## Request body

- BundlePurchaseRequest
  - `bundle_id` integer — ID of the bundle to purchase
  - `my_client_client_id` integer — Client ID
  - `location_id` integer — Location ID
  - `validity_start_time` string, date-time — When the bundle purchase becomes valid
  - `validity_end_time` string, date-time — When the bundle purchase expires
  - `price` number — Price of the bundle purchase
  - `client_only` boolean — Whether the bundle is for the client only
  - `my_client_child_id` integer — Child ID if the bundle is for a child
  - `commission_type` integer — 0 - package price / 1 - retail price
  - `commission_employee_id` integer — Employee ID for commission
  - `uuid` string — UUID for the bundle purchase
  - `bundle_purchase_item_groups_attributes` BundlePurchaseItemGroupRequest[] — Bundle purchase item groups
    - `bundle_item_group_id` integer
    - `quantity` integer

## Response `200`

Bundle purchase response

- object
  - `bundle_purchase` BundlePurchase
    - `id` integer
    - `bundle_id` integer
    - `my_client_client_id` integer
    - `location_id` integer
    - `company_id` integer
    - `bundle_company_id` integer — company_id of the bundle used when this purchase was purchased
    - `name` string
    - `validity_start_time` string, date-time
    - `validity_end_time` string, date-time
    - `price` number
    - `amount` number
    - `amount_before_discount` number
    - `status` 'active' | 'inactive' | 'refunded'
    - `client_only` boolean
    - `my_client_child_id` integer
    - `commission_type` integer — 0 - package price / 1 - retail price
    - `commission_employee_id` integer
    - `for_child` boolean
    - `includes_used_usages` boolean
    - `created_at` string, date-time
    - `updated_at` string, date-time
    - `uuid` string
    - `external_id` string
    - `bundle_purchase_item_groups` BundlePurchaseItemGroup[] — Returned if bundle_purchase_item_groups or bundle_all param is set
      - `id` integer
      - `bundle_purchase_id` integer
      - `bundle_item_group_id` integer
      - `name` string
      - `default_quantity` integer
      - `remaining_quantity` integer
      - `include_all_skus` boolean
      - `include_all_variations` boolean
      - `include_all_classes` boolean
    - `bundle_purchase_events` BundlePurchaseEvent[] — Returned if bundle_purchase_events or bundle_all param is set
      - `id` integer
      - `bundle_purchase_id` integer
      - `event_type` string
      - `created_at` string, date-time

## Other responses

- `422` — Invalid parameters

---

[API](https://skmtc.net/mytime/apis/mytime-partners-api.md) · [All operations](https://skmtc.net/mytime/apis/mytime-partners-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mytime/mytime-partners-api/versions/65d3a27fcb1a/schema)
