Some content on this site may not be available right now. We are aware and actively monitoring the situation.
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Product Addons

List addon associations

get

Retrieve all addon products associated to a regular product.

Path parameters
ProductCodestringRequired

The code of the regular product

Header parameters
AcceptstringRequiredDefault: application/json
X-Avangate-AuthenticationstringRequired
Responses
200

List of associated addon products

application/json
ProductCodestringOptional
ProductNamestringOptional
ProductTypestring · enumOptionalPossible values:
get/products/{ProductCode}/addons/
GET /rest/6.0/products/{ProductCode}/addons/ HTTP/1.1
Host: api.2checkout.com
Accept: application/json
X-Avangate-Authentication: text
[
  {
    "ProductCode": "text",
    "ProductName": "text",
    "ProductType": "ADDON"
  }
]

Associate addon to product

post

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

Path parameters
ProductCodestringRequired

The code of the regular product

AddonCodestringRequired

The code of the addon product

Header parameters
AcceptstringRequiredDefault: application/json
X-Avangate-AuthenticationstringRequired
Responses
201

Addon associated successfully

application/json
booleanOptional
post/products/{ProductCode}/addons/{AddonCode}/
POST /rest/6.0/products/{ProductCode}/addons/{AddonCode}/ HTTP/1.1
Host: api.2checkout.com
Accept: application/json
X-Avangate-Authentication: text
true

Dissociate addon from product

delete

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

Path parameters
ProductCodestringRequired

The code of the regular product

AddonCodestringRequired

The code of the addon product

Header parameters
AcceptstringRequiredDefault: application/json
X-Avangate-AuthenticationstringRequired
Responses
200

Addon dissociated successfully

application/json
booleanOptional
delete/products/{ProductCode}/addons/{AddonCode}/
DELETE /rest/6.0/products/{ProductCode}/addons/{AddonCode}/ HTTP/1.1
Host: api.2checkout.com
Accept: application/json
X-Avangate-Authentication: text
true

Last updated

Was this helpful?