---
title: "Add a bundle to a subscription contract"
method: POST
path: "/customers/{customerId}/subscriptions/{subscriptionId}/add-bab"
tags: ["Subscriptions"]
---

# Add a bundle to a subscription contract

`POST /customers/{customerId}/subscriptions/{subscriptionId}/add-bab`

Add a bundle to a subscription contract. It will create new subscription contract lines for the bundle items and update the subscription contract.

This endpoint is an abstraction of the "update lines" endpoint.

## Path parameters

- `customerId` string, required
- `subscriptionId` string, required

## Request body

- object
  - `bundleProps` object
  - `productVariantId` string
  - `selectedItems` string[]
  - `sellingPlan` object
    - `gId` string

## Response `200`

Lines updated

- object
  - `subscriptionContractId` string
  - `lines` LineResponse[]
    - `updatedPrices` object
      - `computedPrice` object
      - `computedPricingPolicy` object
      - `line` string
    - `operation` string
    - `variantId` string
    - `id` string
    - `title` string
    - `variantTitle` string
    - `productId` string
    - `quantity` integer
    - `customAttributes` object[]
    - `oneTimeAddon` boolean
  - `subscriptionContract` SubscriptionDynamo
    - `SubscriptionId` string — Identifier
    - `SubscriptionStatus` string — Status
    - `NextBillingDate` string, date-time — Date of the next billing

## Other responses

- `400` — Validation error

---

[API](https://skmtc.net/awtomic/apis/awtomic-api.md) · [All operations](https://skmtc.net/awtomic/apis/awtomic-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/awtomic/awtomic-api/revisions/dfe3dfce125c/schema)
