---
title: "Add a membership to an invoice"
method: PUT
path: "/v1/invoices/{invoice_id}/memberships"
---

# Add a membership to an invoice

`PUT /v1/invoices/{invoice_id}/memberships`

## Request

- Base URL: `https://api.zenoti.com`
- URL: `https://api.zenoti.com/v1/invoices/{invoice_id}/memberships`
- Auth: none required
- TypeScript: <https://skmtc.dev/zenoti/apis/zenoti-authentication/docs/v1/invoices/:invoice_id/memberships/put.ts> (a function with typed inputs; its response is checked against the schema)

Supply the url parameter `invoice_id`, request body and this api will update the requested invoice by booking the memberships aand returns the invoice id as the response.

## Path parameters

- `invoice_id` string, required

## Response `200`

200

- object
  - `invoice_id` string
  - `success` boolean

## Other responses

- `400`: 400

---

[API](https://skmtc.dev/zenoti/apis/zenoti-authentication.md) - [All operations](https://skmtc.dev/zenoti/apis/zenoti-authentication/llms.txt) - [OpenAPI document](https://skmtc.dev/zenoti/apis/zenoti-authentication/revisions/e628f892391a?raw)
