> For the complete documentation index, see [llms.txt](https://docs.2checkout.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.2checkout.com/api-reference/reference/product-addons.md).

# Product Addons

## List addon associations

> Retrieve all addon products associated to a regular product.

```json
{"openapi":"3.0.0","info":{"title":"API REST Documentation","version":"6.0-oas3"},"servers":[{"url":"https://api.2checkout.com/rest/6.0"}],"paths":{"/products/{ProductCode}/addons/":{"get":{"tags":["Product Addons"],"summary":"List addon associations","description":"Retrieve all addon products associated to a regular product.","parameters":[{"name":"Accept","in":"header","required":true,"schema":{"type":"string","default":"application/json"}},{"name":"X-Avangate-Authentication","in":"header","required":true,"schema":{"type":"string"}},{"name":"ProductCode","in":"path","description":"The code of the regular product","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"List of associated addon products","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"ProductCode":{"type":"string"},"ProductName":{"type":"string"},"ProductType":{"type":"string","enum":["ADDON"]}}}}}}},"404":{"description":"Product not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/inline_response_400"}}}}}}}},"components":{"schemas":{"inline_response_400":{"type":"object","properties":{"error_code":{"type":"string"},"message":{"type":"string"}}}}}}
```

## Associate addon to product

> Associate an addon product to a regular product. Both must have matching billing cycles.

```json
{"openapi":"3.0.0","info":{"title":"API REST Documentation","version":"6.0-oas3"},"servers":[{"url":"https://api.2checkout.com/rest/6.0"}],"paths":{"/products/{ProductCode}/addons/{AddonCode}/":{"post":{"tags":["Product Addons"],"summary":"Associate addon to product","description":"Associate an addon product to a regular product. Both must have matching billing cycles.","parameters":[{"name":"Accept","in":"header","required":true,"schema":{"type":"string","default":"application/json"}},{"name":"X-Avangate-Authentication","in":"header","required":true,"schema":{"type":"string"}},{"name":"ProductCode","in":"path","description":"The code of the regular product","required":true,"schema":{"type":"string"}},{"name":"AddonCode","in":"path","description":"The code of the addon product","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Addon associated successfully","content":{"application/json":{"schema":{"type":"boolean"}}}},"400":{"description":"Invalid request (type mismatch, billing cycle mismatch, already associated)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/inline_response_400"}}}},"404":{"description":"Product or addon not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/inline_response_400"}}}}}}}},"components":{"schemas":{"inline_response_400":{"type":"object","properties":{"error_code":{"type":"string"},"message":{"type":"string"}}}}}}
```

## Dissociate addon from product

> Remove the association between an addon product and a regular product.

```json
{"openapi":"3.0.0","info":{"title":"API REST Documentation","version":"6.0-oas3"},"servers":[{"url":"https://api.2checkout.com/rest/6.0"}],"paths":{"/products/{ProductCode}/addons/{AddonCode}/":{"delete":{"tags":["Product Addons"],"summary":"Dissociate addon from product","description":"Remove the association between an addon product and a regular product.","parameters":[{"name":"Accept","in":"header","required":true,"schema":{"type":"string","default":"application/json"}},{"name":"X-Avangate-Authentication","in":"header","required":true,"schema":{"type":"string"}},{"name":"ProductCode","in":"path","description":"The code of the regular product","required":true,"schema":{"type":"string"}},{"name":"AddonCode","in":"path","description":"The code of the addon product","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Addon dissociated successfully","content":{"application/json":{"schema":{"type":"boolean"}}}},"404":{"description":"Association not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/inline_response_400"}}}}}}}},"components":{"schemas":{"inline_response_400":{"type":"object","properties":{"error_code":{"type":"string"},"message":{"type":"string"}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.2checkout.com/api-reference/reference/product-addons.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
