Product Addons
Retrieve all addon products associated to a regular product.
Path parameters
ProductCodestringRequired
The code of the regular product
Header parameters
AcceptstringRequiredDefault:
application/jsonX-Avangate-AuthenticationstringRequired
Responses
200
List of associated addon products
application/json
ProductCodestringOptional
ProductNamestringOptional
ProductTypestring · enumOptionalPossible values:
404
Product not found
application/json
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 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/jsonX-Avangate-AuthenticationstringRequired
Responses
201
Addon associated successfully
application/json
booleanOptional
400
Invalid request (type mismatch, billing cycle mismatch, already associated)
application/json
404
Product or addon not found
application/json
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
trueRemove 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/jsonX-Avangate-AuthenticationstringRequired
Responses
200
Addon dissociated successfully
application/json
booleanOptional
404
Association not found
application/json
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
trueLast updated
Was this helpful?